Open Meal (3.4)
Download OpenAPI specification:Download
List distributors
This method returns a list of distributors, for example schools and retirement homes
query Parameters
addressCountry | string SE - optional parameter used to only get the distributors for a specific country.Use the 2-letter ISO 3166-1 aplha-2 country code, for example "SE" for Sweden |
searchText | string Search-text to find specific distributor |
Responses
Response samples
- 200
{- "distributors": [
- {
- "id": "string",
- "name": "string",
- "organization": "string",
- "lang": "string",
- "type": "string",
- "address": {
- "streetAddress": "string",
- "postalCode": "string",
- "addressLocality": "string",
- "addressRegion": "string",
- "addressCountry": "string"
}, - "locations": [
- {
- "name": "string",
- "geoPositionRepresentations": [
- {
- "coordinateSystem": "string",
- "coordinates": [
- 0
]
}
]
}
], - "url": "string",
- "email": "string",
- "phone": "string",
- "iCalendar": "string"
}
]
}
Get distributor
This method returns a single distributor
path Parameters
distributorId required | string |
Responses
Response samples
- 200
- 404
{- "name": "The Local School",
- "lang": "en",
- "address": {
- "streetAddress": "Main Street 42",
- "postalCode": "555 55",
- "addressLocality": "Stockholm",
- "addressCountry": "SE"
}, - "telephone": "+46 555 555 555",
- "distributorID": "123456789"
}
List meals
This method returns a list of meals
query Parameters
distributorId | string Parameter specifying the Data Provider ID for a Distributor, used to return only the meals for that distributor.If not provided meals for all distributors are returned |
lang | string Get data in a specific language, if omitted default language is used |
startDate | string <date-time> Date specifying the start of the period to get meals for. If not specified, today's date will be used as default. |
endDate | string <date-time> Date specifying the end of the period to get meals for. If not specified, 7 days after |
Responses
Response samples
- 200
- 400
{- "meals": [
- {
- "name": "Lunch 1",
- "date": "2022-06-16",
- "lang": null,
- "description": null,
- "order": 0,
- "distributor": {
- "id": "923608a6-e294-4149-ac79-a19f6e7adfd7",
- "name": "Matkund 1",
- "organization": "Matköping"
}, - "courses": [
- {
- "id": "8f86e3ae-6c42-4ef3-bd32-d3de426ad3ec",
- "name": "Fransk pastagratäng med kyckling",
- "description": "Krämig pastagratäng med dragonkryddad kyckling och tre sorters ost",
- "optionName": "Lunch 1",
- "order": 0,
- "labelOfContents": "Kycklingfond , GratängOST 28%, Lasagnette, Salt, SENAP Dijon, VispGRÄDDE, Pastakyckling, Paprika röd strimlad, Svartpeppar mald, MellanMJÖLK 1,5% 10L EKO",
- "ingredients": [
- {
- "name": "Kycklingfond ",
- "codes": [ ]
}, - {
- "name": "GratängOST 28%",
- "codes": [ ]
}
], - "media": [ ],
- "knownAllergens": [
- {
- "name": "Selleri",
- "codes": [
- {
- "code": "BC",
- "type": "GS1"
}
]
}
], - "tags": [ ],
- "nutrients": [
- {
- "name": "Energi (kJ)",
- "amount": 1958.69,
- "unit": "kJ",
- "codes": [
- {
- "code": "ENKJ",
- "type": "GS1"
}
]
}
], - "prices": [
- {
- "name": "Barn",
- "value": 55,
- "currency": "SEK"
}, - {
- "name": "Normal",
- "value": 75.95,
- "currency": "SEK"
}
], - "co2Equivalents": 0.58
}
]
}
]
}