Get a job by its uuid
URL: /api/v1/jobs/{uuid}
Method: GET
Code: 200 OK
Output Example:
{
"id": "ed0e23ef-6c2b-430c-9b90-cd4f1ff74c88",
"type": "bills-questions",
"urgent": false
}
Code: 404 Not found
Output Example:
{}
Get all jobs
URL: /api/v1/jobs
Method: GET
Code: 200 OK
Output Example:
[
{
"id": "ed0e23ef-6c2b-430c-9b90-cd4f1ff74c88",
"type": "bills-questions",
"urgent": false
},
{
"id": "f26e890b-df8e-422e-a39c-7762aa0bac36",
"type": "rewards-questions",
"urgent": true
}
]
Code: 404 Not found
Output Example:
[]
Create a new job
URL: /api/v1/jobs
Method: POST
Body Example:
{
"id": "ed0e23ef-6c2b-430c-9b90-cd4f1ff74c88",
"type": "bills-questions",
"urgent": false
}
Code: 201 Created
Output Example:
{}
Code: 400 Bad request
Output Example:
{
"error": "Value does not match schema: {\"urgent\" (not (instance? java.lang.Boolean 1))}"
}
Code: 409 Conflict
Output Example:
Conflict, already existing entity