AWS | HTTP Get Post

Boilerplate code for Golang with GET and POST example

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u -n  aws-golang-http-get-post

Serverless-golang http Get and Post Example

Serverless boilerplate code for golang with GET and POST example

This example is using AWS Request and Response Proxy Model, provided by AWS itself. If you want to test any changes don't forget to run make inside the service directory.

There are three endpoint provided: 1. GET endpoint with name parameter (/get/{name}) 2. GET endpoint with query string parameter (getQ?name=$name) 3. POST endpoint with name in the body (/post - with JSON body {"name":$name}

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g