ReferenceRecipes
/api/v1/pdf/preview
Takes the same body as create-pdf with bundle single and renders the same PDF, for a preview of it.
POST
/api/v1/pdf/previewrezepte_session<token>
Session cookie set by POST /api/v1/auth/login.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
image/png
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v1/pdf/preview" \ -H "Content-Type: application/json" \ -d '{ "book": { "countDisplay": "string", "date": "2019-08-24", "dateDisplay": "string", "title": "string" }, "labels": { "addedBy": "string", "contents": "string", "continued": "string", "cook": "string", "ingredients": "string", "nextPage": "string", "openRecipe": "string", "prep": "string", "recipeFallback": "string", "scaledFrom": "string", "scaledFromShort": "string", "servings": "string", "source": "string", "steps": "string", "total": "string" }, "locale": "string", "options": { "bundle": "single", "footer": true, "paper": "a4", "photo": true }, "origin": "http://example.com", "recipes": [ { "description": "string", "id": "string", "ingredientGroups": [ { "ingredients": [ { "display": "string", "name": "string", "note": "string", "quantity": { "display": "string", "value": 0.1 }, "unit": "string" } ], "name": "string" } ], "servings": { "display": "string", "original": 0, "value": 0 }, "source": { "display": "string", "name": "string", "url": "string" }, "steps": [ { "number": 0, "segments": [ { "amount": "string", "kind": "text", "minutes": 0, "text": "string" } ], "text": "string" } ], "tags": [ "string" ], "times": { "cook": { "display": "string", "minutes": 0 }, "prep": { "display": "string", "minutes": 0 }, "total": { "display": "string", "minutes": 0 } }, "title": "string" } ] }'"string"