summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-12 22:45:51 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-12 22:45:57 -0800
commita877b09a6beda83c86e4d4c4747589ec19f35665 (patch)
treeb56b74faa4f92657aff97340c4091e9dce321b41
parentc5514958a8d339dd8abdcc0f5579adc158068659 (diff)
downloadfatcat-a877b09a6beda83c86e4d4c4747589ec19f35665.tar.gz
fatcat-a877b09a6beda83c86e4d4c4747589ec19f35665.zip
switch to HTTPS in schema def
But rewrite to http for python codegen.
-rw-r--r--fatcat-openapi2.yml3
-rwxr-xr-xpython/codegen_python_client.sh2
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/ \