pub async fn index(
    path: Path<u64>,
    query: Query<JobFields>,
    data: Data<ApplicationState>
) -> impl Responder
Expand description

Handles GET /job/{job_id} requests.

Returns

  • 200 - JSON response containing all data about a job
  • 400 - bad request error if any requested fields were not recognised
  • 404 - not found error if no job with given job_id is found
  • 500 - unexpected internal error
  • 503 - Redis connection unavailable