|
|
These *endpoints* are use case methods that have the goal of updating or removing a parking lot.
|
|
|
These *endpoints* are use case methods that have the aim of creating, getting information or removing a parking.
|
|
|
|
|
|
#### Obtain information about parkings
|
|
|
#### Create parking
|
|
|
|
|
|
- Method: GET
|
|
|
- Method: POST
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking
|
|
|
|
|
|
- Obtains information from the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
|
|
|
- Body:
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
{
|
|
|
"municipalityIneCode":50297,
|
|
|
"name":"abcd",
|
|
|
"parkingId":1,
|
|
|
"freeCapacity":6,
|
|
|
"totalCapacity":5
|
|
|
"address":"abc",
|
|
|
"postalCode":1,
|
|
|
"timetable":"abc",
|
|
|
"totalCapacity":0,
|
|
|
"geoJsonAddress":{
|
|
|
"type":"Polygon",
|
|
|
"coordinates":[
|
|
|
[
|
|
|
[-0.864299,41.646176],[-0.864162,41.646250],
|
|
|
[-0.864135,41.646412],[-0.864408,41.646432],
|
|
|
[-0.864453,41.646200],[-0.864299,41.646176]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
*<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
|
|
|
#### Obtain information about parkings
|
|
|
|
|
|
- Method: PUT
|
|
|
- Method: GET
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking
|
|
|
- URL: {baseUrl}/v1/parking/{municipalityIneCode}/{parkingId}
|
|
|
|
|
|
- Updates the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
|
|
|
- Obtains information from the data of a parking (municipalityIneCode, parkingId, freeCapacity, totalCapacity)
|
|
|
|
|
|
```json
|
|
|
[
|
... | ... | @@ -40,6 +49,8 @@ These *endpoints* are use case methods that have the goal of updating or removin |
|
|
]
|
|
|
```
|
|
|
|
|
|
*<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)*
|
|
|
|
|
|
#### Delete parking
|
|
|
|
|
|
- Method: DEL
|
... | ... | |