Get data from system (generic)
GET/api/v2/microservices/get
x-internal: false
Internal endpoint that can be used to retrieve data from the analytics system.
Example requests:
-
Get vehicle breadcrumb trail:
/api/v2/microservices/get?model=vehiclestate&simulation_id=<simulation_id>&vehicle_id=<vehicle_id>&only_fields=current_sim_ts,lat,lon -
Get task status for bulk action:
/api/v2/microservices/get?model=bulktask&id=<task_id> -
Get deletion log of a booking in a simulation:
/api/v2/microservices/get?model=deletionlog&model_name=simulation.booking&simulation_id=11111 -
Get vehicle states for vehicles that have some planned nodes and a planned path for a simulation and a project with pagination enabled:
/api/v2/microservices/get?model=vehiclestate&project_id=<project_id>&simulation_id=<simulation_id>&vehicle_id__in=<vehicle_id>&limit=2&path__gt=%2527%2527&order_by=current_sim_ts -
Get PIN for the driver handover action based on
handover_id:/api/v2/microservices/get?model=bookinghandovertoken&handover_id=<handover_id>
Request
Responses
- 200
Response depends on the data requested. The models represent some variants of possible options.