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

/api/v1/pdf

Bundle single takes exactly one recipe and is open to every member; book and zip are for administrators.

POST/api/v1/pdf

Authorization

rezepte_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

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/v1/pdf" \  -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"