summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-13 12:45:22 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-13 12:47:01 -0800
commitd14e86155fc0ae718954871f7adb59e415d98602 (patch)
tree91600a536d163f83c6496960612603f39d75623b
parente8a2925394f4cce0b8b4514f58d2bd19f9d7490b (diff)
downloadfatcat-d14e86155fc0ae718954871f7adb59e415d98602.tar.gz
fatcat-d14e86155fc0ae718954871f7adb59e415d98602.zip
set default host in swagger spec to api.fatcat.wiki
-rw-r--r--fatcat-openapi2.yml2
-rwxr-xr-xpython/codegen_python_client.sh2
-rw-r--r--python/fatcat_client/README.md2
-rw-r--r--python/fatcat_client/configuration.py2
-rw-r--r--rust/fatcat-api-spec/README.md2
-rw-r--r--rust/fatcat-api-spec/api.yaml2
-rw-r--r--rust/fatcat-api-spec/api/swagger.yaml1
-rw-r--r--rust/fatcat-api-spec/examples/client.rs2
8 files changed, 8 insertions, 7 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index 4027ccf4..feaa87cd 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -7,7 +7,7 @@ info:
version: 0.1.0
schemes: [https]
basePath: /v0
-#host: api.fatcat.wiki
+host: api.fatcat.wiki
consumes:
- application/json
produces:
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
diff --git a/rust/fatcat-api-spec/README.md b/rust/fatcat-api-spec/README.md
index 1a8125d5..db4730fa 100644
--- a/rust/fatcat-api-spec/README.md
+++ b/rust/fatcat-api-spec/README.md
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
- API version: 0.1.0
-- Build date: 2018-11-13T06:41:46.913Z
+- Build date: 2018-11-13T20:46:32.121Z
This autogenerated project defines an API crate `fatcat` which contains:
* An `Api` trait defining the API in Rust.
diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml
index 4027ccf4..feaa87cd 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -7,7 +7,7 @@ info:
version: 0.1.0
schemes: [https]
basePath: /v0
-#host: api.fatcat.wiki
+host: api.fatcat.wiki
consumes:
- application/json
produces:
diff --git a/rust/fatcat-api-spec/api/swagger.yaml b/rust/fatcat-api-spec/api/swagger.yaml
index 71d7fa78..ded102e6 100644
--- a/rust/fatcat-api-spec/api/swagger.yaml
+++ b/rust/fatcat-api-spec/api/swagger.yaml
@@ -5,6 +5,7 @@ info:
\ and file metadata"
version: "0.1.0"
title: "fatcat"
+host: "api.fatcat.wiki"
basePath: "/v0"
tags:
- name: "containers"
diff --git a/rust/fatcat-api-spec/examples/client.rs b/rust/fatcat-api-spec/examples/client.rs
index 43f002fc..cb025d5c 100644
--- a/rust/fatcat-api-spec/examples/client.rs
+++ b/rust/fatcat-api-spec/examples/client.rs
@@ -65,7 +65,7 @@ fn main() {
]).required(true)
.index(1),
).arg(Arg::with_name("https").long("https").help("Whether to use HTTPS or not"))
- .arg(Arg::with_name("host").long("host").takes_value(true).default_value("localhost").help("Hostname to contact"))
+ .arg(Arg::with_name("host").long("host").takes_value(true).default_value("api.fatcat.wiki").help("Hostname to contact"))
.arg(Arg::with_name("port").long("port").takes_value(true).default_value("8080").help("Port to contact"))
.get_matches();