... | ... | @@ -48,34 +48,20 @@ En el tópico se publican los eventos en formato JSON. Aquí se puede ver un eje |
|
|
"cityIne":50297,
|
|
|
"parkingId":1,
|
|
|
"free":4,
|
|
|
<<<<<<< HEAD
|
|
|
"capacity":5
|
|
|
}
|
|
|
```
|
|
|
|
|
|
- **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)
|
|
|
=======
|
|
|
"capacity":5,
|
|
|
"timestamp":"2021-03-15T13:34:00.000Z"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
- 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)
|
|
|
>>>>>>> 851f06a3326274c7412489a269e3eb137b77a3ac
|
|
|
|
|
|
- **parkingId** (número entero): identificador del aparcamiento
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
- **free** (número entero): número de plazas libres del aparcamiento
|
|
|
|
|
|
- **capacity** (número entero): capacidad total del aparcamiento
|
|
|
=======
|
|
|
- free (número entero): número de plazas libres del aparcamiento
|
|
|
|
|
|
- capacity (número entero): capacidad total del aparcamiento
|
|
|
|
|
|
- timestamp (fecha UTC): fecha y hora en formato UTC del momento en el que el parking se ha actualizado por última vez. Es necesario que no sea un timestamp futuro con respecto a la hora UTC actual. La fecha debe finalizar con el caracter 'Z' que marca que está en UTC
|
|
|
>>>>>>> 851f06a3326274c7412489a269e3eb137b77a3ac
|
|
|
|
|
|
Ver más información y un ejemplo de conexión [aquí](https://gitlab.cs.cmobility30.es/dgt3.0_esp/general/-/wikis/MQTT).
|
|
|
|
... | ... | @@ -115,7 +101,6 @@ Estos errores tendrán tres categorías principales: |
|
|
|
|
|
- HTTP Status: **400 - Bad Request**
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
| Code | Message |
|
|
|
| ---- | ----------------------------------------------------------------------------- |
|
|
|
| 0 | Authenticate |
|
... | ... | @@ -142,28 +127,6 @@ Estos errores tendrán tres categorías principales: |
|
|
| 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 |
|
|
|
=======
|
|
|
| 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 cannot be future |
|
|
|
>>>>>>> 851f06a3326274c7412489a269e3eb137b77a3ac
|
|
|
|
|
|
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:
|
|
|
|
... | ... | @@ -181,8 +144,4 @@ En el caso de obtener un *error 3 - Missing required property* la respuesta obte |
|
|
|
|
|
| Code | Message |
|
|
|
| ---- | -------------- |
|
|
|
<<<<<<< HEAD
|
|
|
| 25 | Internal error | |
|
|
=======
|
|
|
| 19 | Internal error |
|
|
|
>>>>>>> 851f06a3326274c7412489a269e3eb137b77a3ac |