How it Works • Key Features • Documentation • License
Optic is like Git, but for your APIs
Similar to
git init
Add the Optic Proxy so Optic can learn how your API works. It only takes 5 minutes and will save you hours if you write OpenAPI manually today.
yarn add global @useoptic/cli
api init
api start
[optic] Starting ToDo API on Port: 3005, with npm run server-start
Similar to
git diff
,git add
andgit commit
Optic constantly diffs your API's actual behavior against its specification. Optic shows you the API diff and makes it easy to:
- Add new API Endpoints to your specification
- Update the specification when it observes new behavior for an existing API Endpoint
- Catch bugs and unexpected API behavior early :)
📝Accurate API Documentation - We built Optic to make maintaining accurate specs for your APIs automatic and developer friendly. Once you add Optic to your API repo, it automatically tracks your API’s behavior and maintains a change log of its behavior over time.
It’s kind of like Git, but instead of tracking files, Optic automatically diffs and tracks API endpoints. When new behavior is observed, Optic makes it easy to update the spec.
⚙️ Automated Testing - Automate most of your contract testing. Optic uses live testing with spec coverage to make testing APIs easy.
👍 Beautiful Docs - Stripe-style documentation for every API managed by Optic.
👋100% Open Source, Runs locally, data is only stored in your API Repo
Documentation https://docs.useoptic.com
Read the full docs at: docs.useoptic.com
MIT