GET /company/optionsets/@id
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | ID of the option set you want to return |
GET /company/optionsets/17 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
name | [Language: String] | Name of the option set |
allow_attachment | Bool | Allow the attachment of a picture to this option set |
options | [company.Option] | Array of company.Option |
id | Int | Id of the option set |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 818
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"allow_attachment": true,
"options": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 15,
"id": 14,
"order": 10
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 13,
"id": 15,
"order": 17
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 19,
"id": 13,
"order": 19
}
],
"id": 12
}