-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the API via OpenAPI #3252
Document the API via OpenAPI #3252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Can you please separate the circleci config upgrade from the addition of openapi/stoplight?
@elia commits separated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic @aldesantis, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition @aldesantis!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
Documents our API endpoints using the OpenAPI Specification.
With this format, we have machine-readable API documentation that can be consumed by a number of different tools to generate static HTML documentation, spin up a mock server, validate the documentation against a real API and much more.
Currently, this documentation is managed and hosted on Stoplight. The idea is that we put it in this GitHub repository, then update it whenever the API is changed. A CircleCI job will then copy the documentation to Stoplight and publish a new version of the static documentation when a Solidus version is released. The minor Solidus version (e.g. 2.9) will be used as the Stoplight version.
As a nice bonus, the CircleCI configuration has also been updated to take advantage of 2.1 features such as executors and commands.
Checklist: