diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-12 22:45:51 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-12 22:45:57 -0800 |
commit | a877b09a6beda83c86e4d4c4747589ec19f35665 (patch) | |
tree | b56b74faa4f92657aff97340c4091e9dce321b41 | |
parent | c5514958a8d339dd8abdcc0f5579adc158068659 (diff) | |
download | fatcat-a877b09a6beda83c86e4d4c4747589ec19f35665.tar.gz fatcat-a877b09a6beda83c86e4d4c4747589ec19f35665.zip |
switch to HTTPS in schema def
But rewrite to http for python codegen.
-rw-r--r-- | fatcat-openapi2.yml | 3 | ||||
-rwxr-xr-x | 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/ \ |