Availability

GET /api/stats/availability

Fetch users' availability stats

Query parameters

  • locationId string Required

    Minimum length is 26, maximum length is 26.

  • count boolean

    Default value is false.

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/stats/availability
curl \
 -X GET https://ppammedellin.com/api/stats/availability?locationId=string \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "shift": {
      "startTime": "09:42:00+00:00",
      "endTime": "09:42:00+00:00",
      "dayOfWeek": 42,
      "seatsCount": 42,
      "isEnabled": true,
      "id": "string"
    },
    "count": 42
  }
]
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}