-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
13 additions
and
3,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
We use [swaggerhub](https://app.swaggerhub.com/apis/supertokens/CDI) to host the API spec. | ||
|
||
It is written in a `.yaml` (starting from >= v2.8.0). To edit it: | ||
### Overview | ||
- The api spec is written in a `.yaml` file | ||
- When releasing a new CDI version, add the spec to swaggerhub from this repo | ||
|
||
### Branching | ||
- Each version has its own branch | ||
- When making changes, create a sub-branch of the appropriate version. For example if the changes are meant to reflect in version `2.8.2` you would create a branch from `2.8` (Your final Pull Request should also target `2.8` as the base branch) | ||
- Changes are not made to the `master` branch directly | ||
- The master branch will be synchronised with the latest spec when a new version is release | ||
|
||
### Making changes | ||
When making changes to the `api_spec.yaml` file | ||
- 1) Go to [the swagger editor](https://editor.swagger.io/) | ||
- 2) Copy / paste the contents of the `.yaml` file into the editor, and then you should see the API docs on the right of the screen. | ||
- 3) Make changes to the online editor and then copy / paste the content back into the `.yaml` file | ||
- 4) Issue a PR | ||
|
||
When releasing a new CDI version, add the spec to swaggerhub from this repo. | ||
- 4) Issue a PR to the appropriate branch (refer to the branching section above) |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.