Skip to content

Delete endpoint #7

@mwarman

Description

@mwarman

Describe the story

Create an API endpoint to delete an item, i.e. a Task.

Requirements

  • The API signature is DELETE /tasks/{taskId}
  • The system should delete the item from DynamoDB if the task exists.
  • If the task is deleted successfully, return status code 204.
  • If the task is not found, return status code 404.
  • If any other error occurs, return status code 500 and a meaningful message.

Acceptance criteria

GIVEN a request to delete a Task is received
WHEN the Task is deleted successfully
THEN the system returns status code 204

WHEN the Task is not found
THEN the system returns status code 404

WHEN an error occurs during function execution
THEN the system returns a meaningful message
AND the system return status code 500

Additional context

Add any other context about the story here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions