From a877b09a6beda83c86e4d4c4747589ec19f35665 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Nov 2018 22:45:51 -0800 Subject: switch to HTTPS in schema def But rewrite to http for python codegen. --- fatcat-openapi2.yml | 3 +-- python/codegen_python_client.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml index fe1cf3e2..4027ccf4 100644 --- a/fatcat-openapi2.yml +++ b/fatcat-openapi2.yml @@ -5,8 +5,7 @@ info: description: A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata version: 0.1.0 -# Actually HTTPS in QA and production -schemes: [http] +schemes: [https] basePath: /v0 #host: api.fatcat.wiki consumes: diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh index 4cd30c44..f99986bb 100755 --- a/python/codegen_python_client.sh +++ b/python/codegen_python_client.sh @@ -6,7 +6,7 @@ set -o pipefail OUTPUT=`pwd`/codegen-out mkdir -p $OUTPUT # Strip tags, so entire API is under a single class -cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml +cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" | sed 's/\[https\]/\[http\]/g' > $OUTPUT/api.yml docker run \ -v $OUTPUT:/tmp/swagger/ \ -- cgit v1.2.3