A demo repository with a book store API example.
- Run
optic run
on the main branch - make some changes to
openapi.yml
- run
optic run
again.
The repo is setup with Gitlab CI and Github Action configuration files:
- fork the repository
- grab an Optic organization token from https://app.useoptic.com
tokens
tab, and set it asOPTIC_TOKEN
in your CI env - add a
GITHUB_TOKEN
orOPTIC_GITLAB_TOKEN
with comment permission to your CI env (more about this in the docs) - create a pull request containing breaking changes in
openapi.yml
to see Optic in action.
- Configure custom governance rules in
optic.yml
: read the docs