Skip to content

feat: Add searchByStatus API endpoint to TodoController#2

Open
yebiomesfin wants to merge 1 commit intomainfrom
agent_test
Open

feat: Add searchByStatus API endpoint to TodoController#2
yebiomesfin wants to merge 1 commit intomainfrom
agent_test

Conversation

@yebiomesfin
Copy link
Copy Markdown
Owner

Changes Made

This PR adds a new API endpoint to the TodoController that allows searching todos by status.

New Endpoint:

  • Route: GET /api/todos/search
  • Parameter: status (optional query parameter)

Functionality:

  • Returns completed todos when status=completed
  • Returns pending todos when status=pending
  • Returns all todos when no status parameter is provided

Example Usage:

GET /api/todos/search?status=completed
GET /api/todos/search?status=pending
GET /api/todos/search

Files Modified:

  • backend/src/main/java/com/example/app/controller/TodoController.java

Commit:

  • feat: add searchByStatus API endpoint to TodoController

Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant