Insert API reference in your docs
Insert complete API reference from your OpenAPI spec or pick individual operation or schemas.
Last updated
Was this helpful?
Insert complete API reference from your OpenAPI spec or pick individual operation or schemas.
Last updated
Was this helpful?
GitBook allows you to automatically generate pages related to the endpoints you have in your OpenAPI spec. These pages will contain OpenAPI operation blocks, allowing you and your visitors to test your endpoints and explore them further based on the information found in the spec.
Endpoints added from your spec will continue to be updated anytime your spec is updated. See the Update your specification section for more info.
After you’ve added your OpenAPI spec, you can generate endpoint pages by inserting an OpenAPI Reference in the table of contents of a Space.
In the space you’d like to generate endpoint pages, click the Add new... button from the bottom of your space’s table of contents.
From here, click OpenAPI Reference.
GitBook will automatically generate pages based on your OpenAPI spec and the tags set inside it’s definition.
Head to Structuring your API reference to learn more about organizing your operations through your OpenAPI spec.
Alternatively, you can add OpenAPI operations or schemas from your spec individually to pages throughout your docs.
We’re currently improving how you build API documentation in GitBook. This page covers features that are being gradually rolled out. If you don’t see them yet, hang tight—they’re on the way!