|
|
These *endpoints* are use case methods that have the goal of updating or removing a parking lot.
|
|
|
|
|
|
#### Update parking
|
|
|
|
|
|
- Method: PUT
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking
|
|
|
|
|
|
- Updates the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"municipalityIneCode":50297,
|
|
|
"parkingId":1,
|
|
|
"freeCapacity":6,
|
|
|
"totalCapacity":5
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
#### Delete parking
|
|
|
|
|
|
- Method: DEL
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking/{municipalityIneCode}/{parkingId}
|
|
|
|
|
|
- Delete the data of a parking |