Optic's documentation lives alongside your repository. Anyone who clones your API project also gets the latest documentation. To share documentation with a broader audience, a copy of the documentation needs to live somewhere accessible. Optic integrates with the Optic Cloud, allowing you to host your documentation at a URL that can be shared with your team and your consumers. Anyone with the URL can view your latest documentation without having to clone or pull your project repository.
Documentation can be shared via the Optic Cloud by clicking the Share button at the upper-right hand corner of the documentation page.
The Share button is not available when comparing diffs of older documentation versions. If you don't see the Share button on the documentation page, check to see if the Compare Versions button reads Latest.... If so, click it and select Latest from the drop-down.
A modal dialog will pop up, asking you if you wish to share with your team or with external consumers. Both will give you a URL you can share with whomever needs to see your documentation. Click through either Team or External Consumer which will take you to the login flow.
Once completing the login flow, you'll see a new modal on the Optic dashboard. It providess a link to your Optic Cloud documentation, and a Markdown badge to add to your project's
README.md. It will show how many endpoints in your API are documented, and link to the Optic Cloud documentation.
As your API changes, so will your documentation. Once you are ready to release your next version and share the documentation changes to go along with it, repeat the sharing process above. You will get a new Optic Cloud URL to the latest version of your specification, which can be shared and updated in your project's
All of your documentation history will be available on every update to the Optic Cloud, and the latest documentation will be the best place to not only see your API's current documentation, but behavior changes that have been detected while using Optic.
If you have an existing process for updating your documentation, or other systems such as mocks that can make use of an up to date specification, check out exporting an OpenAPI Specification. Once you're comfortable with exporting your OpenAPI specification, automate your integrations with other systems using Optic Scripts