Optic is like Git, but for your APIs
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
Optic constantly diffs your API's actual behavior against its specification. Optic shows you the API diff and makes it easy to:
????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
Read the full docs at: docs.useoptic.com