Get all available job requests
URL: /api/v1/job-requests
Method: GET
Code: 200 OK
Output Example:
[
{
"agent_id": "8ab86c18-3fae-4804-bfd9-c3d6e8f66260"
}
]
Code: 404 Not found
Output Example:
[]
Request a new job
URL: /api/v1/job-requests
Method: POST
Body Example:
{
"agent_id": "8ab86c18-3fae-4804-bfd9-c3d6e8f66260"
}
Code: 201 Created
Output Example:
{}
Code: 400 Bad request
Output Example:
{
"error": "Value does not match schema: {\"agent_id\" (not (instance? java.lang.String 2))}"
}
Code: 404 Not found
Output Example:
[]