Meals - MealsMadeEasy/Backend GitHub Wiki
Meals
The /meals/
path contains several endpoints that return Meal objects:
class Meal(
id: String /* A unique ID for this meal */
name: String /* A user-presentable name for this meal */
description: String /* A user-presentable description of this meal */
thumbnailUrl: String? /* (Optional) A URL to an image for this meal. This image is an arbitrary size, so be sure to scale it appropriately. */
)
/meals/suggested
Requires Authentication
This endpoint contains a list of Meal objects that are suggested to the user. The reason they are suggested is arbitrary and may change over time, but in general the server will return some combination of meals that align with a user's taste, and new meals to see if a user is interested. The number of items returned is also arbitrary, but will normally be between 0-30. Note that this endpoint may return an empty list if no suggestions are available.
This endpoint is read only, so use the GET
verb to access it. If a call is successful, then a JSON formatted list of meals will be returned with a 200 OK
response code. If an authentication token is not provided or is invalid, you'll receive a 400 BAD REQUEST
or 401 UNAUTHORIZED
response code respectively.