Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e985305

Browse filesBrowse 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
Copy full SHA for e985305

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed

‎endpoints/getting-started/openapi-appengine.yaml

Copy file name to clipboardExpand all lines: endpoints/getting-started/openapi-appengine.yaml
-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.