AddRecipe

POST /recipes/

Add a list of recipes that can then be shared

application/json

Body Required

  • items array[object] Required
    Hide items attributes Show items attributes object

Responses

  • 201 application/json

    Default Response

    Hide response attributes Show response attributes object
    • token string Required
    • items array[object] Required
      Hide items attributes Show items attributes object
  • 400 application/json

    Bad Request

    Bad Request

  • 503 application/json

    Service Unavailable

    Service Unavailable

POST /recipes/
curl \
 --request POST 'http://api.example.com/recipes/' \
 --header "Content-Type: application/json" \
 --data '{"items":[{"name":"string","count":42}]}'
Request examples
{
  "items": [
    {
      "name": "string",
      "count": 42
    }
  ]
}
Response examples (201)
{
  "token": "string",
  "items": [
    {
      "name": "string",
      "count": 42.0
    }
  ]
}
Response examples (400)
string
Response examples (503)
string