Sample REST API using AWS services configured with terraform.
POST /mood
name | type | data type | description |
---|---|---|---|
mood | required | string | N/A |
required | string | N/A |
curl -H 'Content-Type: application/json' -X POST -d '{"mood":"happy","email":"user1@gmail.com"}' "https://232n1x2q39.execute-api.us-east-1.amazonaws.com/mood"
GET /mood
name | type | data type | description |
---|---|---|---|
not required | string | N/A |
curl -X GET "https://232n1x2q39.execute-api.us-east-1.amazonaws.com/mood"
curl -X GET "https://232n1x2q39.execute-api.us-east-1.amazonaws.com/mood?email=user@gmail.com"