Closed RaasAhsan closed 5 years ago
POST /v1/jobs
{ "image": "...", "command": "..." }
The endpoint should add a data class containing the above information to a local array.
GET /v1/jobs
[ { "image": "...", "command": "..." } ]
POST /v1/jobs
that will let us schedule a container to run. The format of the body is as follows:The endpoint should add a data class containing the above information to a local array.
GET /v1/jobs
that will return all the jobs stored in the local array mentioned above. Response should look like: