mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-07 09:58:57 +00:00
27a8069f28
* ITS-21: Make the spec ready for ReDoc * ITS-21: Make it possible to define paths in subdirs * ITS-21: Translate tags back to English + abuse x-displayName * ITS-21: Introduce Makefile * ITS-21: Describe analytics operations more * ITS-21: Describe analytics definitions more * ITS-21: Fix tag descriptions a bit * ITS-21: Describe geo operations * ITS-21: Translate common parameter descriptions * ITS-21: Describe invoice/payments operations and definitions * ITS-21 Make shop/party activation/suspension truly idempotent. Fix UpdateShopArgs definition * ITS-21: Describe payments/tokens operations and definitions * ITS-21: Describe invoice.reason property * ITS-21: Describe user interactions * ITS-21: Unskuccaite all the paths backs * ITS-21: Fix warnings + use hack w/ allOf where applicable * ITS-21 Rename all Args to Params * ITS-21 Rename context to metadata |
||
---|---|---|
scripts | ||
spec | ||
web | ||
.gitignore | ||
gulpfile.js | ||
LICENSE | ||
Makefile | ||
package.json | ||
README.md |
RBKmoney OpenAPI Specification
Steps to finish
- Enable Travis for your repository (note: you already have
.travis.yml
file) - Create GitHub access token; check
public_repo
onSelect scopes
section. - Use the token value as a value for Travis environment variable with the name
GH_TOKEN
- Make a test commit to trigger CI:
git commit --allow-empty -m "Test Travis CI" && git push
- Wait until Travis build is finished. You can check progress by clicking on the
Build Status
badge at the top - If you did everything correct, https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/ will lead to your new docs
- [Optional] You can setup custom domain (just create
web/CNAME
file) - Start writing/editing your OpenAPI spec: check out usage section below
- [Optional] If you document public API consider adding it into APIs.guru directory using this form.
- Delete this section 😄
Links
- Documentation(ReDoc): https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/
- SwaggerUI: https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/swagger-ui/
- Look full spec:
- JSON https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/swagger.json
- YAML https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/swagger.yaml
- Preview spec version for branch
[branch]
: https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/preview/[branch]
Warning: All above links are updated only after Travis CI finishes deployment
Working on specification
Install
- Install Node JS
- Clone repo and
cd
- Run
npm install
- Run
Usage
- Run
npm start
- Checkout console output to see where local server is started. You can use all links (except
preview
) by replacing https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/ with url from the message:Server started <url>
- Make changes using your favorite editor or
swagger-editor
(look for URL in console output) - All changes are immediately propagated to your local server, moreover all documentation pages will be automagically refreshed in a browser after each change
TIP: you can open
swagger-editor
, documentation andswagger-ui
in parallel - Once you finish with the changes you can run tests using:
npm test
- Share you changes with the rest of the world by pushing to GitHub 😄