https://1707r6jcga.execute-api.us-east-1.amazonaws.com/dev
List all tasks
curl https://1707r6jcga.execute-api.us-east-1.amazonaws.com/dev/tasksCreate a new task
curl -X POST https://1707r6jcga.execute-api.us-east-1.amazonaws.com/dev/tasks \
-H "Content-Type: application/json" \
-d '{"title": "Task Title", "description": "Task Description"}'Delete a specific task
curl -X DELETE https://1707r6jcga.execute-api.us-east-1.amazonaws.com/dev/tasks/{task-id}Request:
{
"title": "Learn AWS Serverless",
"description": "Build a serverless todo API"
}Response:
{
"task": {
"id": "4ca1aee0-09cf-4486-82bb-a0710c08b426",
"title": "Learn AWS Serverless",
"description": "Build a serverless todo API",
"completed": false,
"created_at": "2025-08-23T11:05:09.335843",
"updated_at": "2025-08-23T11:05:09.335843"
}
}Response:
{
"tasks": [
{
"id": "4ca1aee0-09cf-4486-82bb-a0710c08b426",
"title": "Learn AWS Serverless",
"description": "Build a serverless todo API",
"completed": false,
"created_at": "2025-08-23T11:05:09.335843",
"updated_at": "2025-08-23T11:05:09.335843"
}
]
}Response:
{
"message": "Task deleted successfully"
}{
"error": "Title is required"
}{
"error": "Task not found"
}{
"error": "Internal server error"
}| Code | Description |
|---|---|
| 200 | Success (GET, DELETE) |
| 201 | Created (POST) |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Content-Type: application/json(required for POST)
Content-Type: application/jsonAccess-Control-Allow-Origin: *Access-Control-Allow-Headers: Content-TypeAccess-Control-Allow-Methods: GET,POST,DELETE,OPTIONS