Function ocypod::handlers::job::set_output

source ·
pub fn set_output(
    (path, json): (Path<u64>, Json<Value>),
    state: State<ApplicationState>
) -> Box<dyn Future<Item = HttpResponse, Error = Error>>
Expand description

Handles PUT /job/{job_id}/output requests. Replaces the job’s output with given JSON.

Returns

  • 204 - if output was successfully updated
  • 404 - not found error if no job with given job_id is found