mensa-kl.de
Mit Fotos und Bewertungen seit 2008.

Mark Meal

Mark a meal or unmark a meal.

Request

Mark Meal Example

curl -X POST "https://www.mensa-kl.de/api/v1/mark-meal" \
  -H "Authorization: Bearer $AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "meal_id": 123,
    "marked": true
  }'

Unmark Meal Example

curl -X POST "https://www.mensa-kl.de/api/v1/mark-meal" \
  -H "Authorization: Bearer $AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "meal_id": 123,
    "marked": false
  }'

Response

Success Response

The data envelope contains the following marking details:

Successful Meal Marking Example

{
  "status": "success",
  "data": {
    "marked": true
  }
}

Successful Meal Unmarking Example

{
  "status": "success",
  "data": {
    "marked": false
  }
}

Failure Response

Meal marking can fail for many reasons. Examples: