pub fn index(
(path, query): (Path<u64>, Query<JobFields>),
state: State<ApplicationState>
) -> Box<dyn Future<Item = HttpResponse, Error = Error>>
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