Wine Comments
Get all Wine Comments
This endpoint retrieves all wine comments associated to current user.
warning
This endpoint gives you all wine comments, even if there is no bottle in cellar. Please use consolidated cellar endpoint to get wine comments associated to quantity.
HTTP Request
GET /v1/wine-comments
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
[
{
"id": 9548,
"comment": "My sku 1",
"created_at": "2019-06-11T18:12:58+02:00",
"updated_at": "2019-06-11T18:12:58+02:00",
"format": "0.75",
"wine": "Chateau des Bertrands",
"wine-id": 4251
},
{
"id": 9549,
"comment": "My sku 2",
"created_at": "2018-12-05T22:51:47+01:00",
"updated_at": "2018-12-05T22:51:47+01:00",
"format": "0.33",
"wine": "Chateau des Bertrands",
"wine-id": 4251
},
...
]
Get a specific Wine Comment
This endpoint lets you get a specific wine comment.
HTTP Request
GET /v1/wine-comments/single
Query parameters
| Name | Required | Type | Details |
|---|---|---|---|
| format | required | string | ex: 0.75 |
| wine_id | required | int |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/wine-comments/single?format=0.75&wine_id=15777' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
{
"id": 9548,
"comment": "My sku 1",
"created_at": "2019-06-11T18:12:58+02:00",
"updated_at": "2019-06-11T18:12:58+02:00",
"format": "0.75",
"wine": "Chateau des Bertrands",
"wine-id": 4251
}
Create a Wine Comment
This endpoint lets you create a wine comment.
HTTP Request
POST /v1/wine-comments
Wine Comment parameters
| Name | Required | Type | Details |
|---|---|---|---|
| format | required | string | ex: 0.75 |
| wine_id | required | int | |
| comment | required | string |
Example
- Request
- Response
$ curl --request POST --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 2",
"format": "0.75",
"wine_id": 15777
},
'
{
"id": 9548,
"comment": "My sku 2",
"created_at": "2019-06-11T18:12:58+02:00",
"updated_at": "2019-06-11T18:12:58+02:00",
"format": "0.75",
"wine": "Chateau des Bertrands",
"wine-id": 4251
}
Edit a Wine Comment
This endpoint lets you edit a wine comment.
HTTP Request
PUT /v1/wine-comments
Wine Comment parameters
| Name | Required | Type | Details |
|---|---|---|---|
| format | required | string | ex: 0.75 |
| wine_id | required | int | |
| comment | required | string |
Example
- Request
- Response
$ curl --request PUT --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"comment": "My sku 2",
"format": "0.75",
"wine_id": 15777
},
'
{
"id": 9548,
"comment": "My sku 2",
"created_at": "2019-06-11T18:12:58+02:00",
"updated_at": "2019-06-11T18:12:58+02:00",
"format": "0.75",
"wine": "Chateau des Bertrands",
"wine-id": 4251
}
Delete a Wine Comment
This endpoint lets you delete a wine comment.
HTTP Request
DELETE /v1/wine-comments
Parameters
| Name | Required | Type | Details |
|---|---|---|---|
| format | required | string | ex: 0.75 |
| wine_id | required | int |
Example
- Request
- Response
$ curl --request DELETE --url 'https://app.winesitting.com/v1/wine-comments' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"format": "0.75",
"wine_id": 15777
},
'
{
"result": "success",
"message": "Comment is successfully deleted"
}