Author: Edvinas Bosas
This creates a REST API with:
- DynamoDB Table
- 4 Lambda Functions
- 4 API Gateway Endpoints, each associated with a different Lambda function:
- POST /create
- GET /list
- PUT /update
- DELETE /delete
Required headers: Content-Type: application/json
- POST /create:
{ "name": "string", "age": "string", "description": "string" }
- PUT /update:
PUT /update
URI must point to a specific cat:PUT /update?id={uuid}
{ "name": "string", "age": "string", "description": "string" }
-
/list
-
Simply calling
GET /list
endpoint returns all cat entries in the database. -
Calling
GET /list?id={uuid}
will return a specific cat from the database. -
{uuid}
can be multiple comma seperated values:GET /list?id={uuid1},{uuid2}
-
-
/delete
- Requires a single
{uuid}
parameter:DELETE /delete?id={uuid}
- Requires a single