Endpoint for Retrieving a Yard Summary

GET /api/yard-task/summary/{yardId}

Path parameters

  • yardId integer(int64) Required

    Yard ID

Responses

GET /api/yard-task/summary/{yardId}
curl \
 -X GET https://api-dev.gatego.io/api/yard-task/summary/{yardId}
Response examples (default)
{
  "total_tasks": 1,
  "total_tasks_completed": 1,
  "total_tasks_in_progress": 1,
  "total_tasks_in_queue": 1,
  "average_time": 1,
  "top_speed": 10,
  "active_drivers": 1,
  "yard_details": [
    {
      "yard_id": 1,
      "total_tasks": 5,
      "tasks_completed": 3,
      "tasks_in_progress": 1,
      "tasks_in_queue": 1,
      "average_time": 2,
      "top_speed": 12,
      "active_drivers": 1
    }
  ]
}