Add a new pet to the store
POST
/petRequisição
[message.bodyParameter]application/x-www-form-urlencoded
name
string
required
Pet Name
Example:
Hello Kitty
status
string
required
Pet Sales Status
Example:
sold
Exemplos de Requisição
[api.label.responses]
OK(201)
Código HTTP: 201
Tipo de Conteúdo: JSONapplication/json
[response.label.jsonSchema]
code
integer
required
>= 0<= 0
data
object (Pet)
required
id
integer <int64>
required
Pet ID
>= 1
category
object (Category)
required
group
name
string
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}]
required
tag
status
enum<string>
required
Pet Sales Status
Allowed values:
availablependingsold
[api.label.example]
{
"code": 0,
"data": {
"name": "Hello Kitty",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Cat"
},
"tags": [
{
"id": 22,
"name": "Cat"
}
],
"status": "sold"
}
}
[updatedIn] 3 months ago