/api/v1/meal-plans/week
The plans as list-meal-plans orders them, each with the entries on the days of the range, the lists the caller can access that they and the tray are on, and how many recipe entries are on none; and the pending invitations. One request for the plans page, however many plans. Left out, the range is the current week in the server's time zone, so a client passes its own; it passes its today too, since unlisted leaves out the days before it. Each plan also says how many entries lie on a day after the range (later) and which comes first (next), so an empty week can say what comes later.
/api/v1/meal-plans/weekSession cookie set by POST /api/v1/auth/login.
In: cookie
Query Parameters
First day (YYYY-MM-DD) of the entries to answer with; with to left out too, the current week
dateLast day (YYYY-MM-DD), inclusive, at most 62 days after from
dateThe reader's today (YYYY-MM-DD): unlisted leaves out the days before it; left out, today in the server's time zone
dateResponse Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/v1/meal-plans/week"{ "$schema": "https://example.com/api/v1/schemas/PlansWeek.json", "from": "string", "invitations": [ { "inviter": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "name": "string", "planId": "string" } ], "plans": [ { "entries": [ { "day": "string", "id": "string", "kind": "recipe", "photo": "string", "photoFocus": { "x": 0, "y": 0 }, "photoHeight": 0, "photoWidth": 0, "recipeId": "string", "title": "string" } ], "id": "string", "later": 0, "lists": [ { "entries": 0, "id": "string", "name": "string", "openCount": 0 } ], "members": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "name": "string", "next": { "day": "string", "id": "string", "kind": "recipe", "photo": "string", "photoFocus": { "x": 0, "y": 0 }, "photoHeight": 0, "photoWidth": 0, "recipeId": "string", "title": "string" }, "owner": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "pending": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "personal": true, "tray": 0, "unlisted": 0, "updatedAt": "string" } ], "to": "string"}