Rezepte 1.7.0: Print a recipe, or a whole cookbook
Skip to Content
ReferenceMeal plans

/api/v1/meal-plans/{id}/shopping-preview

Preview what a range puts on a list

GET/api/v1/meal-plans/{id}/shopping-preview

Authorization

rezepte_session<token>

Session cookie set by POST /api/v1/auth/login.

In: cookie

Path Parameters

id*string

Query Parameters

from?string

First day (YYYY-MM-DD) of the entries to answer with; with to left out too, the current week

Formatdate
to?string

Last day (YYYY-MM-DD), inclusive, at most 62 days after from

Formatdate
today?string

The reader's today (YYYY-MM-DD): unlisted leaves out the days before it; left out, today in the server's time zone

Formatdate
tray?boolean

Also offer the entries on the tray

entry?string

Offer only this recipe entry, on its day or the tray, whatever from, to and tray say

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/meal-plans/string/shopping-preview"
{  "$schema": "https://example.com/api/v1/schemas/PreviewList.json",  "entries": [    {      "alreadyListed": true,      "day": "string",      "entryId": "string",      "ingredients": [        {          "group": 0,          "index": 0,          "name": "string",          "quantity": 0.1,          "staple": true,          "unit": "string"        }      ],      "servings": 0,      "title": "string"    }  ]}