API documentation

Get command for GetBattery information for all the boxes in a parking.

GET /api/car_driver/secured_parkings/:id/battery_command

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service returns the command to get the battery information from all the boxes on a certain parking

Request Parameters

Parameter name Parameter type Description
id int id of the secured parking on which we want to get battery info

Response

Status Code: 200 if OK

{ 
           "battery_command": "2010dcee11a572fb9d8d759c7e3de7d8437a03" 
}
Parameter name Parameter type Description
battery_command string the command that must be sent to the box in order to get battery info

Status Code: 400 if the secured_parking_id param is missing

Status Code: 404 if the secured_parking with secured_parking_id doesn't exist

Status Code: 401 if request not ok or if the current user does not have parking owner rights on this parking