Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Returns list of time slots, including information about their availability.

Query string parameters

Name

Type

Description

minDate

date (ISO string)

Minimum date (start of period) to fetch time slots for

maxDate

date (ISO string)

Maximum date (end of period) to fetch time slots for

inLocalTime (optional)

true

Add startLocal and endLocal in response (date with respect to timezone for the queue). Should be used only if you can’t change date to respect timezone on your side. Example of respone: 2021-02-10T08:00:00+03:00

Request

curl --location --request GET 'https://ombori-queue-prod-uae.azure-api.net/api/organizations/{organizationName}/queues/{queueId}/timeslots?minDate=2020-12-01T10:00:00.000Z&maxDate=2020-12-01T20:00:00.000Z' \
--header 'Content-Type: application/json'

Response

[
    {
        "start": "2020-12-01T10:00:00.000Z",
        "end": "2020-12-01T10:30:00.000Z",
        "available": true,
        "availableCapacity": 50
    },
    {
        "start": "2020-12-01T10:30:00.000Z",
        "end": "2020-12-01T11:00:00.000Z",
        "available": true,
        "availableCapacity": 50
    }
]

Request with inLocalTime:

curl --location --request GET 'https://ombori-queue-prod-uae.azure-api.net/api/organizations/{organizationName}/queues/{queueId}/timeslots?minDate=2020-12-01T10:00:00.000Z&maxDate=2020-12-01T20:00:00.000Z&inLocalTime=true' \
--header 'Content-Type: application/json'

Response

[
    {
        "start": "2020-12-01T10:00:00.000Z",
        "end": "2020-12-01T10:30:00.000Z",
        "available": true,
        "startLocal": "2020-12-01T11:00:00+01:00",
        "endLocal": "2020-12-01T11:30:00+01:00",
        "availableCapacity": 50
    },
    {
        "start": "2020-12-01T10:30:00.000Z",
        "end": "2020-12-01T11:00:00.000Z",
        "startLocal": "2020-12-01T11:30:00+01:00",
        "endLocal": "2020-12-01T12:00:00+01:00"
        "available": true,
        "availableCapacity": 50
    }
]

  • No labels