These endpoints are use case methods that have the goal of updating or removing a parking lot.
Obtain information about parkings
-
Method: GET
-
URL: {baseUrl}/v1/parking
-
Obtains information from the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
[ { "municipalityIneCode":50297, "parkingId":1, "freeCapacity":6, "totalCapacity":5 } ]
Note: In the GET method URL, it is not necessary to specify the parking identification number ({baseUrl} / v1 / parking / {municipalityIneCode}) or the municipality code ({baseUrl} / v1 / parking)
Update parking
-
Method: PUT
-
URL: {baseUrl}/v1/parking
-
Updates the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
[ { "municipalityIneCode":50297, "parkingId":1, "freeCapacity":6, "totalCapacity":5 } ]
Delete parking
-
Method: DEL
-
URL: {baseUrl}/v1/parking/{municipalityIneCode}/{parkingId}
-
Delete the data of a parking