Skip to content

feat: add /todos endpoint for filtering to-do items#4

Open
ehippy wants to merge 1 commit into
mainfrom
feat/todos-endpoint
Open

feat: add /todos endpoint for filtering to-do items#4
ehippy wants to merge 1 commit into
mainfrom
feat/todos-endpoint

Conversation

@ehippy
Copy link
Copy Markdown
Owner

@ehippy ehippy commented Jun 1, 2026

Summary

  • Adds GET /todos endpoint to retrieve only to-do items (excluding projects and headings)
  • Updates README with new endpoint documentation

Motivation

The existing API exposes collection endpoints like /today, /projects, etc., but doesn't distinguish between to-dos, projects, and headings. The things.todos() function from things.py filters to only to-do items — this is useful when you want to work with just the actionable tasks, not container items like projects or headings.

Changes

  • main.py: Added /todos endpoint (5 lines)
  • README.md: Added /todos to feature list and API documentation table

Test Plan

  • CI checks (if applicable)

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