... | @@ -242,37 +242,21 @@ La información relativa a los errores en este caso de uso se puede encontrar aq |
... | @@ -242,37 +242,21 @@ La información relativa a los errores en este caso de uso se puede encontrar aq |
|
| 0 | Authenticate |
|
|
| 0 | Authenticate |
|
|
| 2 | Entity ID not found |
|
|
| 2 | Entity ID not found |
|
|
| 3 | Missing required property |
|
|
| 3 | Missing required property |
|
|
| 4 | The entity received cannot be processed |
|
|
| 4 | Incorrect token received |
|
|
| 5 | Incorrect token received |
|
|
| 5 | Expired token received |
|
|
| 6 | Expired token received |
|
|
| 6 | There is an error with the token provided. Please request a new one |
|
|
| 7 | There is an error with the token provided. Please request a new one |
|
|
| 7 | No token received |
|
|
| 8 | No token received |
|
|
| 8 | Missing request header |
|
|
| 9 | Required request body is missing |
|
|
| 9 | Permission denied. Role assigned to user missing |
|
|
| 10 | Event is marked as expired by timestamp |
|
|
| 10 | There is an error in one or more elements |
|
|
| 11 | Missing request header |
|
|
|
|
| 12 | Access denied role |
|
|
A continuación se muestra una respuesta de *error 5 - Expired token received* la cual tendrá el siguiente formato:
|
|
| 13 | Unique key violated |
|
|
|
|
| 14 | There is an error in one or more elements |
|
|
|
|
| 15 | Invalid GeoJson |
|
|
|
|
| 16 | GeoJson does not belong to municipality |
|
|
|
|
| 17 | TimestampStart should be future |
|
|
|
|
| 18 | TimestampEnd should be future |
|
|
|
|
| 19 | TimestampStart should be before TimestampEnd |
|
|
|
|
| 20 | The type is not a cone |
|
|
|
|
| 21 | Cone use type has to be Infrastructure |
|
|
|
|
| 22 | Cone vehicle type has to be None |
|
|
|
|
| 23 | The beacon type must have value 4 (Unique) |
|
|
|
|
| 24 | The plan requested to track was not found |
|
|
|
|
| 25 | The event requested to track has not started yet or has already finished |
|
|
|
|
| 26 | The provided coordinates for both dynamic tracking beacons are exactly the same |
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"status": 400,
|
|
"status": 400,
|
|
"code": 3,
|
|
"code": 5,
|
|
"message": "[cityIne: must not be null, parkingId: must not be null, timestamp: must not be null]"
|
|
"message": "Expired token received"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |