Recipe - MealsMadeEasy/Backend GitHub Wiki
/recipe/
The /recipe/
endpoint is is used to query recipe information about individual meals. There is only one endpoint in this path, and it returns a Recipe
object with the following fields:
class Recipe(
val content: String /* An HTML formatted body with a long description of the meal including preparation steps */
)
Note that additional fields will be added in the future for additional information including nutrition information and ingredients.
/recipe/{id}
This endpoint returns the recipe object associated with the provided meal id (see /meals/
for info on looking up such an ID).
This endpoint is read only, so use the GET
verb to access it. If the call is successful, then a JSON formatted Recipe
object will be returned with a 200 OK
response code. If no ID is provided, a 400 BAD REQUEST
response will be returned. If no meal exists with the given ID, or if no recipe information exists for the given ID, a 404 NOT FOUND
response code will be returned.