We use swaggerhub to host the API spec.
- The api spec is written in a
.yaml
file - When releasing a new CDI version, add the spec to swaggerhub from this repo
- 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 from2.8
(Your final Pull Request should also target2.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
When making changes to the api_spec.yaml
file
-
- Go to the swagger editor
-
- 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.
- Copy / paste the contents of the
-
- Make changes to the online editor and then copy / paste the content back into the
.yaml
file
- Make changes to the online editor and then copy / paste the content back into the
-
- Issue a PR to the appropriate branch (refer to the branching section above)