Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ A lightweight HTTP wrapper around [Things 3](https://culturedcode.com/things/) f
## Features

- Read all Things collections: inbox, today, upcoming, anytime, someday, logbook, projects, areas, tags
- Read to-do items only (excluding projects and headings): `/todos`
- Create and update tasks and projects
- Complete or cancel tasks
- HTTP Basic Auth on every endpoint
Expand Down Expand Up @@ -66,6 +67,7 @@ All endpoints require Basic Auth (`Authorization: Basic ...`).
| GET | `/projects` | All projects |
| GET | `/areas` | All areas |
| GET | `/tags` | All tags |
| GET | `/todos` | All to-do items (excluding projects/headings) |
| GET | `/tasks/{uuid}` | Single task by UUID |

### Write
Expand Down
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def tags(auth=Depends(verify)):
return things.tags()


@app.get("/todos")
def todos(auth=Depends(verify)):
return things.todos()


@app.get("/tasks/{uuid}")
def get_task(uuid: str, auth=Depends(verify)):
item = things.get(uuid)
Expand Down