Zones
Get zone state for a specific zone
Returns the current occupancy state and count of a specific zone. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the zone as defined in ALIOT
- GET https://{hostIp}:7081/zonecounting/zone/{zoneName}/state
Example request:
GET /zonecounting/zone/Zone0/state HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { "Zone0": { "OccupancyState": 0, "Capacity": 50, "Occupancy": 0 } }
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)
- Response JSON Object:
zonestate (array) – See Parking and parking zones for more info.
Reset the occupancy of a specific zone
Resets the occupancy of a zone. This will reset the occupancy of a specific parking zone. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the zone as defined in ALIOT
- PUT https://{hostIp}:7081/zonecounting/zone/{zoneName}/reset-occupancy
Example request:
PUT /zonecounting/zone/Zone0/reset-occupancy HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)
Update the occupancy of a specific zone
Updates the occupancy of a zone. This will set the occupancy count of a specific parking zone to a new value. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the zone as defined in ALIOT
newOccupancy: new occupancy value
- PUT https://{hostIp}:7081/zonecounting/zone/{zoneName}/update-occupancy?newOccupancy={newOccupancy}
Example request:
PUT /zonecounting/zone/Zone0/update-occupancy?newOccupancy=50 HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)
Update the occupancy state of a specific zone
Updates the occupancy state of a specific parking zone. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the parking as defined in ALIOT
occupancyState: (integer) See Occupancy state for possible values.
- PUT https://{hostIp}:7081/zonecounting/zone/{zoneName}/update-state?newState={occupancyState}
Example request:
PUT /zonecounting/zone/Zone0/update-state?newState=2 HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)
Increase the occupancy of a specific zone
Increases the occupancy of a zone. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the zone as defined in ALIOT
increaseAmount: amount to increase current occupancy with
- POST https://{hostIp}:7081/zonecounting/zone/{zoneName}/increase-occupancy?amount={increaseAmount}
Example request:
POST /zonecounting/zone/Zone0/increase-occupancy?amount=2 HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)
Decrease the occupancy of a specific zone
Decreases the occupancy of a zone. See parking and parking zones for more info.
URL parameters
hostIp: ip address of the API host.
zoneName: name of the zone as defined in ALIOT
decreaseAmount: amount to decrease current occupancy with
- POST https://{hostIp}:7081/zonecounting/zone/{zoneName}/decrease-occupancy?amount={decreaseAmount}
Example request:
POST /zonecounting/zone/Zone0/decrease-occupancy?amount=2 HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS...
Example response:
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
- Status Codes:
200 OK – OK
400 Bad Request – Bad Request. A descriptive error comes along with this error.
401 Unauthorized – Unauthorized. Something is wrong with the Authorization header of the request
403 Forbidden – Forbidden. Something is wrong with the claims of the user.
500 Internal Server Error – Internal Server Error
- Response Headers:
Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)