Inventory
Track and update stock levels for pets in the store.
授权
Authorizationstring必填
Pass your API key as a Bearer token in the Authorization header.
响应
200
An array of inventory entries.
application/json
petIdinteger · int64必填Example:
The ID of the animal this entry tracks.
1quantityinteger必填Example:
Current stock count.
3statusstring · enum必填可能的值:
401
Missing or invalid API key.
application/json
get
/inventory授权
Authorizationstring必填
Pass your API key as a Bearer token in the Authorization header.
路径参数
petIdinteger · int64必填
The ID of the pet to update stock for.
请求体
quantityinteger必填Example:
The new stock count.
5响应
200
Updated inventory entry.
application/json
petIdinteger · int64必填Example:
The ID of the animal this entry tracks.
1quantityinteger必填Example:
Current stock count.
3statusstring · enum必填可能的值:
400
The request body is missing required fields or contains invalid values.
application/json
401
Missing or invalid API key.
application/json
404
The requested resource could not be found.
application/json
patch
/inventory/{petId}最后更新于