Example Petstore

OpenAPI reference · version 1.0.0 · 3 endpoints · generated from the petstore spec

Data model: Pet

FieldTypeRequired
idstringyes
namestringyes
tagstringno

Endpoints

GET /pets — List pets

Returns a paged array of pets (HTTP 200).

ParameterLocationRequiredType
limitquerynointeger

POST /pets — Create a pet

Creates a new pet. Request body is required and uses the Pet schema; returns the created pet (HTTP 201).

GET /pets/{petId} — Info for a specific pet

Returns details for a single pet (HTTP 200).

ParameterLocationRequiredType
petIdpathyesstring

Quick summary