Mentions légales du service

Skip to content

Resolve "API job status could be more relevant"

Closes #349 (closed)

Following !186 (closed) note, the value of the status key is now the job.status.

Note that there is still a difference with rails implementation.

curl -H 'Authorization: Token token=...' -X GET

curl -kH 'Authorization: Token token=...' -X GET https://localhost/api/v1/jobs/37
{"status": "SUCCESS", "37": {"allgo.log": "https://localhost/datastore/37/allgo.log"}}

Status in rails is 'done' on job success. Also note that job.status in rails is downcase, while not in django.
-> I'll make an issue for that. cf #356 (closed)

Edited by LETORT Sebastien

Merge request reports