... | ... | @@ -45,20 +45,20 @@ En el tópico se publican los eventos en formato JSON. Aquí se puede ver un eje |
|
|
|
|
|
```json
|
|
|
{
|
|
|
"municipalityIneCode":50297,
|
|
|
"cityIne":50297,
|
|
|
"parkingId":1,
|
|
|
"freeCapacity":4,
|
|
|
"totalCapacity":5
|
|
|
"free":4,
|
|
|
"capacity":5
|
|
|
}
|
|
|
```
|
|
|
|
|
|
- municipalityIneCode (número entero): identificador del municipio donde se genera el evento según el [INE](https://www.ine.es/daco/daco42/codmun/cod_provincia_estandar.htm)
|
|
|
- **cityIne** (número entero): identificador del municipio donde se genera el evento según el [INE](https://www.ine.es/daco/daco42/codmun/cod_provincia_estandar.htm)
|
|
|
|
|
|
- parkingId (número entero): identificador del aparcamiento
|
|
|
- **parkingId** (número entero): identificador del aparcamiento
|
|
|
|
|
|
- freeCapacity (número entero): número de plazas libres del aparcamiento
|
|
|
- **free** (número entero): número de plazas libres del aparcamiento
|
|
|
|
|
|
- totalCapacity (número entero): capacidad total del aparcamiento
|
|
|
- **capacity** (número entero): capacidad total del aparcamiento
|
|
|
|
|
|
Ver más información y un ejemplo de conexión [aquí](https://gitlab.cs.cmobility30.es/dgt3.0_esp/general/-/wikis/MQTT).
|
|
|
|
... | ... | @@ -98,25 +98,32 @@ Estos errores tendrán tres categorías principales: |
|
|
|
|
|
- HTTP Status: **400 - Bad Request**
|
|
|
|
|
|
| Code | Message |
|
|
|
| ---- | ------------------------------------------------------------------- |
|
|
|
| 0 | Authenticate |
|
|
|
| 2 | Entity ID not found |
|
|
|
| 3 | Missing required property |
|
|
|
| 4 | The entity received cannot be proccessed |
|
|
|
| 5 | Incorrect token received |
|
|
|
| 6 | Expired token received |
|
|
|
| 7 | There is an error with the token provided. Please request a new one |
|
|
|
| 8 | No token received |
|
|
|
| 9 | Required request body is missing |
|
|
|
| 10 | Event is marked as expired by timestamp |
|
|
|
| 11 | Missing request header |
|
|
|
| 12 | Access denied role |
|
|
|
| 13 | Unique key violated |
|
|
|
| 14 | There is an error in one or more elements |
|
|
|
| 15 | Free capacity should not be greater than total capacity |
|
|
|
| 16 | Invalid GeoJson |
|
|
|
| 17 | GeoJson does not belong to municipality |
|
|
|
| Code | Message |
|
|
|
| ---- | ----------------------------------------------------------------------------- |
|
|
|
| 0 | Authenticate |
|
|
|
| 2 | Entity ID not found |
|
|
|
| 3 | Missing required property |
|
|
|
| 4 | The entity received cannot be proccessed |
|
|
|
| 5 | Incorrect token received |
|
|
|
| 6 | Expired token received |
|
|
|
| 7 | There is an error with the token provided. Please request a new one |
|
|
|
| 8 | No token received |
|
|
|
| 9 | Required request body is missing |
|
|
|
| 10 | Event is marked as expired by timestamp |
|
|
|
| 11 | Missing request header |
|
|
|
| 12 | Access denied role |
|
|
|
| 13 | Unique key violated |
|
|
|
| 14 | There is an error in one or more elements |
|
|
|
| 15 | Free capacity should not be greater than total capacity |
|
|
|
| 16 | Invalid GeoJson |
|
|
|
| 17 | GeoJson does not belong to municipality |
|
|
|
| 18 | Timestamp can not be future |
|
|
|
| 19 | Day of week not valid. Allowed values: 'L','M','X','J','V','S','D' |
|
|
|
| 20 | TimeTable should not have duplicated days |
|
|
|
| 21 | Inconsistent time range: startTime should be before endTime |
|
|
|
| 22 | Inconsistent time range: there is a crossing schedule |
|
|
|
| 23 | There was an error when creating the Datex II file |
|
|
|
| 24 | There are no parkings in municipality or the provided INE code is not correct |
|
|
|
|
|
|
En el caso de obtener un *error 3 - Missing required property* la respuesta obtenida tendrá un valor en el *message* que nos indicará los campos que faltan por enviar:
|
|
|
|
... | ... | @@ -134,4 +141,4 @@ En el caso de obtener un *error 3 - Missing required property* la respuesta obte |
|
|
|
|
|
| Code | Message |
|
|
|
| ---- | -------------- |
|
|
|
| 18 | Internal error | |
|
|
\ No newline at end of file |
|
|
| 25 | Internal error | |
|
|
\ No newline at end of file |