8000 Remove basePath: "/" (#1444) · codeinpeace/python-docs-samples@e985305 · GitHub
[go: up one dir, main page]

Skip to content

Commit e985305

Browse files
navingerandrewsg
authored andcommitted
Remove basePath: "/" (GoogleCloudPlatform#1444)
We need to remove this from all OpenAPI specs in the getting-started sample. From the OpenAPI 2 spec: * basePath: "If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). " * Paths for methods: "A relative path to an individual endpoint. The field name MUST begin with a slash. The path is appended to the basePath in order to construct the full URL." This OpenAPI getting-started sample have basePath="/", which (per strict spec interpretation) means all the paths start with double-slashes. (e.g "//v1/shelves" rather than "/v1/shelves"). Removing basepath="/" fixes that.
1 parent d9c5a10 commit e985305

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

endpoints/getting-started/openapi-appengine.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ info:
66
version: "1.0.0"
77
host: "YOUR-PROJECT-ID.appspot.com"
88
# [END swagger]
9-
basePath: "/"
109
consumes:
1110
- "application/json"
1211
produces:

0 commit comments

Comments
 (0)
0