Last updated 9 days ago
GitBook's OpenAPI block is powered by Scalar, so you can test your APIs directly from your docs.
Add a new pet to the store
/pet
10
doggie
pet status in the store
available
pending
sold
curl -L \ --request POST \ --url '/api/v3/pet' \ --header 'Content-Type: application/json' \ --data '{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }'
<?xml version="1.0"?> <pet> <id>10</id> <name>doggie</name> <category> <id>1</id> <name>Dogs</name> </category> <photoUrls> <photoUrl>text</photoUrl> </photoUrls> <tags> <tag> <id>1</id> <name>text</name> </tag> </tags> <status>available</status> </pet>