PacketFire / gemini

Cluster container orchestration tool
Apache License 2.0
0 stars 0 forks source link

Submit jobs to the master #66

Closed RaasAhsan closed 5 years ago

RaasAhsan commented 5 years ago
  1. Add an endpoint to the master at POST /v1/jobs that will let us schedule a container to run. The format of the body is as follows:
    {
    "image": "...",
    "command": "..."
    }

The endpoint should add a data class containing the above information to a local array.

  1. Add an endpoint to the master at GET /v1/jobs that will return all the jobs stored in the local array mentioned above. Response should look like:
[
  {
    "image": "...",
    "command": "..."
  }
]