Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I'm updating all the openapi files in the getting-started sample in all the sample repos to remove basePath: "/"
Here's the reason from simonz130:

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.
  • Loading branch information
navinger authored and JustinBeckwith committed Nov 19, 2018
1 parent 61b5c40 commit 0ede568
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0ede568

Please sign in to comment.