Skip to content

ArinCantCode/optic

 
 

Repository files navigation



Optic

APIs that Document & Test Themselves

How it WorksKey FeaturesDocumentationLicense

How it Works

Optic is like Git, but for your APIs

Add Optic to your Development Enviroment

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

Use the Optic Proxy to Monitor your API's Behavior

api start
[optic] Starting ToDo API on Port: 3005, with npm run server-start

Use Optic to Manage your API Specification

Similar to git diff, git add and git 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 :)

gif

Key Features

📝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

License

MIT

About

APIs that Document & Test Themselves

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 47.6%
  • JavaScript 44.2%
  • TypeScript 7.4%
  • HTML 0.5%
  • Shell 0.1%
  • Makefile 0.1%
  • Other 0.1%