- Create a serverless REST API, using DynamoDB, Lambda, API Gateway.
friend{
name: string,
phone: string,
id: string
}
- /friend
GET- Parameters:
- (none) will respond with an array of all friends.
- (id) will respond with the friend info at that ID if it exists.
- Body:
- (none)
- Parameters:
POST- Parameters:
- (none)
- Body:
- (friend info in JSON format) will respond with new friend object.
- Parameters:
PUT- Parameters:
- (id) ((plus body))
- Body:
- (friend info to update in JSON format) will respond with updated friend object.
- Parameters:
DELETE- Parameters:
- (id) will respond with an empty object if successful
- Body:
- (none)
- Parameters:
