A resource is something you can book an appointment with.
List of active resources at a site.
Typical response:
[
{
"_id": "57888804b5dded0814d52b2a",
"name": "John Smith",
"professions": ["Chiropractor"],
"regions": [],
"appointmentInterval": 15,
"status": "Active"
}
]
Appointment times available to make appointments with the specified resource.
Required query parameters:
at
appointment template id. The id of the appointment template that will describe the appointment to be created. The appointment tempate contains the Resource to make the appointment with as well as the duration in min required from the resource to make the appointment.utcOffset
offset of the time zone from utc for thestart
andend
dates below. Specified in minutes. e.g. australia/brisbane is 600. Supply browser offset-new Date().getTimezoneOffset()
. Only used if site has not set their onw timezone.
Optional query parameters:
start
date to start looking for available times. Defaults to now.end
date to end looking for available times. Defaults to now + 7d
Typical reponse:
[
"2017-04-18T03:00:00.000Z",
"2017-04-18T03:45:00.000Z",
"2017-04-18T04:30:00.000Z",
"2017-04-19T03:00:00.000Z",
"2017-04-19T03:45:00.000Z",
"2017-04-19T04:30:00.000Z",
"2017-04-20T03:00:00.000Z",
"2017-04-20T03:45:00.000Z",
"2017-04-20T04:30:00.000Z",
"2017-04-21T03:00:00.000Z",
"2017-04-21T03:45:00.000Z",
"2017-04-21T04:30:00.000Z"
]
Appointment duration, description etc can be retrieved from the Appointment Template.