|
|
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)
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"municipalityIneCode":50297,
|
|
|
"parkingId":1,
|
|
|
"freeCapacity":6,
|
|
|
"totalCapacity":5
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
*<u>Note:</u> 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
|
... | ... | |