8000 Create a REST API endpoint that is capable of recieving POST requests. · Issue #12 · district13labs/mc-aws · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Create a REST API endpoint that is capable of recieving POST requests. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saxumVermes opened this issue Dec 3, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@saxumVermes
Copy link
Collaborator
saxumVermes commented Dec 3, 2019

Context

As a user I want to be able to launch servers by calling an endpoint.

In order to be able to communicate with the server we need to have an endpoint, we call it /server.
Through this endpoint we can ask for servers by sending a POST request.
The POST request should be structured as follows:

{
  "data": [
    {
      "type": "EC2_INSTANCE_TYPE",
      "region": "AWS_REGION",
    }
  ]
}

Acceptance criteria

  • Capable of receiving POST request
  • Send a response for acknowledgement
    • In JSON format containing: Public IP, ARN, Region, State
  • Returned status code: 202 (Accepted)

Technical recommendation

  • Should be detachable since the logic responsible for the EC2 initialization should also be decoupled
    • Use build tags for this purpose
@saxumVermes saxumVermes added the enhancement New feature or request label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0