... | ... | @@ -30,6 +30,41 @@ These *endpoints* are use case methods that have the aim of creating, getting in |
|
|
}
|
|
|
```
|
|
|
|
|
|
####
|
|
|
|
|
|
## Update of a parking
|
|
|
|
|
|
The event is the main part of this data ingestion API. This event will update the information regarding to parkings.
|
|
|
|
|
|
- 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
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
*** = Required field**
|
|
|
|
|
|
- municipalityIneCode (integer): identifier of the municipality where the event is generated according to [INE](https://www.ine.es/daco/daco42/codmun/cod_provincia_estandar.htm)
|
|
|
|
|
|
- parkingId (integer): parking identifier
|
|
|
|
|
|
- freeCapacity (integer): free parking spaces
|
|
|
|
|
|
- totalCapacity (integer): total parking capacity
|
|
|
|
|
|
|
|
|
|
|
|
#### Obtain information about parkings in a municipalty
|
|
|
|
|
|
- Method: GET
|
... | ... | |