From d14e86155fc0ae718954871f7adb59e415d98602 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Nov 2018 12:45:22 -0800 Subject: set default host in swagger spec to api.fatcat.wiki --- python/codegen_python_client.sh | 2 +- python/fatcat_client/README.md | 2 +- python/fatcat_client/configuration.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh index 7cc7aa63..4c146f3f 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$" | sed 's/\[https\]/\[http\]/g' > $OUTPUT/api.yml +cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml docker run \ -v $OUTPUT:/tmp/swagger/ \ diff --git a/python/fatcat_client/README.md b/python/fatcat_client/README.md index 0d072dde..75d9b2ad 100644 --- a/python/fatcat_client/README.md +++ b/python/fatcat_client/README.md @@ -64,7 +64,7 @@ except ApiException as e: ## Documentation for API Endpoints -All URIs are relative to *http://localhost/v0* +All URIs are relative to *https://api.fatcat.wiki/v0* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/python/fatcat_client/configuration.py b/python/fatcat_client/configuration.py index d64bb932..1dc47841 100644 --- a/python/fatcat_client/configuration.py +++ b/python/fatcat_client/configuration.py @@ -47,7 +47,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): def __init__(self): """Constructor""" # Default Base url - self.host = "http://localhost/v0" + self.host = "https://api.fatcat.wiki/v0" # Temp file folder for downloading files self.temp_folder_path = None -- cgit v1.2.3