bottle
list bottle
Changed onList all bottles in account optionally filtering by year
get/cellar/accounts/{accountID}/bottles
Request
- Base URLhttp://localhost:8081
- URLhttp://localhost:8081/cellar/accounts/{accountID}/bottles
- Authnone declared
Path parameters
accountIDinteger required
Account ID
Query parameters
yearsinteger[]
Filter by years
Response
OK
Example response
[
{
"account": {
"href": "/accounts/1",
"id": 1,
"name": "test"
},
"href": "/accounts/1/bottles/1",
"id": 1,
"links": {
"account": {
"href": "/accounts/1",
"id": 1
}
},
"name": "Number 8",
"rating": 3,
"varietal": "Merlot",
"vineyard": "Asti",
"vintage": 2012
},
{
"account": {
"href": "/accounts/1",
"id": 1,
"name": "test"
},
"href": "/accounts/1/bottles/1",
"id": 1,
"links": {
"account": {
"href": "/accounts/1",
"id": 1
}
},
"name": "Number 8",
"rating": 3,
"varietal": "Merlot",
"vineyard": "Asti",
"vintage": 2012
}
]Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking