Operationele pagina's
OpenAPI-blok
Add a new pet to the store.
Vereiste scopes
Dit endpoint vereist de volgende scopes:
- : modify pets in your account
- : read your pets
Autorisaties
OAuth2implicitVereist
Authorization URL:
Body
idinteger Β· int64OptioneelExample:
10namestringVereistExample:
doggiephotoUrlsstring[]Vereist
statusstring Β· enumOptioneelMogelijke waarden:
pet status in the store
Antwoorden
200
Successful operation
idinteger Β· int64OptioneelExample:
10namestringVereistExample:
doggiephotoUrlsstring[]Vereist
statusstring Β· enumOptioneelMogelijke waarden:
pet status in the store
400
Invalid input
422
Validation exception
default
Unexpected error
post/pet
POST /api/v3/pet HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"text"
],
"tags": [
{
"id": 1,
"name": "text"
}
],
"status": "available"
}{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"text"
],
"tags": [
{
"id": 1,
"name": "text"
}
],
"status": "available"
}