GET /company/companies/@id/optionsets
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 | Company ID. Return only option sets of this company |
GET /company/companies/12/optionsets HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Array of company.OptionSet.detailed: [company.OptionSet.detailed]
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 |
code | String? | Nullable. Your own ID or key that you can associate with an option set |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 3304
[
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"allow_attachment": false,
"options": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 14,
"id": 15,
"code": "...",
"order": 10
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 17,
"id": 10,
"code": "...",
"order": 12
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 19,
"id": 12,
"code": "...",
"order": 14
}
],
"id": 11,
"code": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"allow_attachment": true,
"options": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 10,
"id": 11,
"code": "...",
"order": 13
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 11,
"id": 18,
"code": "...",
"order": 13
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 10,
"id": 12,
"code": "...",
"order": 12
}
],
"id": 10,
"code": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"allow_attachment": false,
"options": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 15,
"id": 12,
"code": "...",
"order": 11
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 14,
"id": 12,
"code": "...",
"order": 16
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price_change": 16,
"id": 13,
"code": "...",
"order": 10
}
],
"id": 15,
"code": "..."
}
]