Skip to content

Latest commit

 

History

History

bookstore-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A demo repository with a book store API example.

Local usage

  • Run optic run on the main branch
  • make some changes to openapi.yml
  • run optic run again.

CI setup

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 as OPTIC_TOKEN in your CI env
  • add a GITHUB_TOKEN or OPTIC_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.

Advanced

  • Configure custom governance rules in optic.yml: read the docs