Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 950 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 950 Bytes

Sample REST API using AWS services configured with terraform.

schema


Saving mood entry

POST /mood

Parameters
name type data type description
mood required string N/A
email required string N/A
Responses
Example cURL
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"

Reading mood entries

GET /mood

Parameters
name type data type description
email not required string N/A
Responses
Example cURL
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"