LocationService Resource

Practice location query service.

GET /locations

Returns the practice locations.

Response Body
media type data type description
application/json array of Location (JSON) the practice locations

Example

Request
GET /locations
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "timeZone" : "...",
  "id" : 12345,
  "name" : "..."
} ]
                
              

GET /locations/{id}

Returns a practice location given its identifier.

Request Parameters
name type description constraints
id path the location identifier long
Response Body
media type data type description
application/json Location (JSON) the practice location

Example

Request
GET /locations/{id}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "timeZone" : "...",
  "id" : 12345,
  "name" : "..."
}
                
              

GET /locations/{id}/schedules

Returns the schedules associated with a location.

Request Parameters
name type description constraints
id path the location id long
Response Body
media type data type description
application/json array of Schedule (JSON) the location

Example

Request
GET /locations/{id}/schedules
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "slotSize" : 12345,
  "id" : 12345,
  "name" : "..."
} ]