Get All

GET /api/locations/shifts/reports

Fetch all shift reports

Query parameters

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
GET /api/locations/shifts/reports
curl \
 -X GET https://metropolitanabogota.org/api/locations/shifts/reports \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "items": [
    {
      "id": "string",
      "shift": {
        "startTime": "09:42:00+00:00",
        "endTime": "09:42:00+00:00",
        "dayOfWeek": 42,
        "seatsCount": 42,
        "isEnabled": true,
        "id": "string",
        "location": {
          "id": "string",
          "name": "string"
        }
      },
      "date": "string",
      "submitter": {
        "id": "string",
        "name": "string",
        "username": "string"
      }
    }
  ],
  "total": 42,
  "page": 42,
  "perPage": 42,
  "totalPages": 42,
  "hasNextPage": true
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}