Rezepte
ReferenceComments

/api/v1/recipes/{id}/comments

Any member may write on any recipe, locked ones included. The comment is the caller's.

POST/api/v1/recipes/{id}/comments
rezepte_session<token>

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

In: cookie

Path Parameters

id*string

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

curl -X POST "https://example.com/api/v1/recipes/string/comments" \  -H "Content-Type: application/json" \  -d '{    "body": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/Comment.json",  "author": {    "avatarId": "string",    "color": "string",    "displayName": "string",    "id": "string",    "username": "string"  },  "body": "string",  "canDelete": true,  "canEdit": true,  "createdAt": "2019-08-24T14:15:22Z",  "editedAt": "2019-08-24T14:15:22Z",  "id": 0,  "new": true}