API documentation

Check parking availability

POST /api/car_driver/bookings/parking_availability

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service is used to search for all available secured parkings in an area defined by the topleft corner and bottom right corner

REQUEST PARAMETERS

Parameter name Parameter type Description
start_time datetime start_time used for search
end_time datetime end-time used for search
secured_parking_id int the id of the parking that needs availability verification
{
  "start_time" : "2015-04-28 15:00:00",
  "end_time" : "2015-04-28 17:00:00",
  "secured_parking_id" : 63
}

Response

Status Code: 201 if OK

{
    "nr_of_free_spaces": 3
}

Response parameters

Parameter name Parameter type Description
nr_of_free_spaces int number of free_spaces in the parking at the selected time

Status Code: 401 if request access token not ok