The main repository is hosted in gitlab.com/ravimosharksas/apis/global/documentation but it is automaticaly mirrored to github.com and to gitlab.com/singletonsd/ravimosharksas/apis/global/documentation. If you are in the Github page it may occur that is not updated to the last version.
Swagger documentation of global API. See HTML documentation in https://ravimosharksas.gitlab.io/apis/global/documentation
- Reference Documentation (ReDoc)
- OpenAPI Raw Files: JSON YAML
- ReDoc Repository Example
Warning: All above links are updated only after Travis CI finishes deployment
Starts the development server.
Bundles the spec and prepares web_deploy folder with static assets.
Validates the spec.
Deploys docs to GitHub/Gitlab Pages.
- Write each path specification in separate file.
- The file name will be the object name with the same spelling and casing.
- Write each path specification in separate file
- Filename is mapped to path by replacing
@
with/
, i.e.user@{username}.yaml
matches touser/{username}
path
When using OpenAPI 2 you can minimize headers duplications by using headers
global object (similar to definitions
, responses
).
During build process all references to global headers
will be inlined and headers
will be removed from the resulting spec (global headers
are not allowed by OpenAPI 2 spec). Example:
...
headers:
Rate-Limit-Limit:
description: The number of allowed requests in the current period
type: integer
...
paths:
/api-keys:
get:
summary: Retrieve a list of api keys
responses:
200:
description: A list of api keys was retrieved successfully
headers:
Rate-Limit-Limit:
$ref: "#/headers/Rate-Limit-Limit"
Contributions to this repository are very welcome.
To contribute, please fork this repository on GitLab and send a pull request with a clear description of your changes. If appropriate, please ensure that the user documentation in this README is updated.
If you have submitted a PR and not received any feedback for a while, feel free to ping me on Twitter or find me on facebook
x-code-samples
Path <lang>/<path>/<HTTP verb>.<extension>
where:
<lang>
- name of the language from this list.<path>
- path of the target method, where all/
are replaced with@
.<HTTP verb>
- verb of target method.<extension>
- ignored.
- Config tool to generate models diagram.
- Config client libraries on commit.
- Config swagger hub integration.
- Upload html documentation to gitlab pages.
- Upload html documentation to servers.
- Use scripts from remote repository.
- Gitlab ci-cd template from remote repository.
- Split swagger.yaml into multiple files.
- Use ReDoc documentation framework.
© Singleton, Argentina, 2019.