Welcome to the GitBook Petstore API

This GitBook API documentation template serves as a starting point for creating clear, interactive, and user-friendly API documentation.

Use this template to explore best practices in structuring your docs, showcasing endpoints, and guiding users through your API. Everything here can be adapted to fit your own product.

How this demo works

This reference is automatically generated from an OpenAPI spec uploaded to this GitBook space. GitBook reads the spec and creates a page for each tag, with interactive endpoint blocks for every operation — no manual authoring required.

A few things worth noticing as you explore:

  • Page groups — tags with no endpoints (like Store and Pets) become navigation sections automatically, keeping related endpoints grouped without any extra configuration.

  • Auto-split pages## headings inside info.description are automatically split into separate pages in the navigation, which is how this welcome section is structured.

  • Stability badges — some endpoints are marked experimental or beta using the x-stability extension. You'll see these highlighted on the endpoint itself.

  • Deprecation warningsGET /pets/{petId} is marked deprecated with a sunset date, surfaced as a warning banner on that endpoint's page.

  • Code samples — each endpoint includes hand-written examples in cURL, JavaScript, and Python via x-codeSamples, supplementing the auto-generated snippets.

  • Try it panel — most endpoints have a live testing panel on the right. GET /store/orders has it disabled via x-hideTryItPanel to show that control is per-endpoint.

To use this template for your own API, replace the spec with your own OpenAPI file and adjust the info.description to match your product.

Last updated