ReferenceShares
/api/v1/recipes/{id}/public-share
Opens a link anyone can read the recipe by without signing in, until it is revoked or expires. A caller who already has one for the recipe gets it back with a 409.
POST
/api/v1/recipes/{id}/public-shareAuthorization
session rezepte_session<token>
Session cookie set by POST /api/v1/auth/login.
In: cookie
Path Parameters
id*string
Recipe id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v1/recipes/string/public-share" \ -H "Content-Type: application/json" \ -d '{ "days": 1 }'{ "$schema": "https://example.com/api/v1/schemas/Share.json", "createdAt": "2019-08-24T14:15:22Z", "createdBy": { "color": "string", "displayName": "string", "id": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "id": "string", "path": "string", "recipe": { "id": "string", "slug": "string", "title": "string" }, "status": "active"}