This commit is contained in:
@@ -4,6 +4,10 @@ Small PostgreSQL-backed HTTP service for one-off tasks and daily, weekly, or
|
||||
monthly routine tasks. The server generates future task occurrences and can
|
||||
send due reminders through the Telegram Bot API.
|
||||
|
||||
The server stores an obligatory public title and an optional client-encrypted
|
||||
payload. It never receives an age identity and Telegram always uses the public
|
||||
title.
|
||||
|
||||
## Configuration
|
||||
|
||||
| Variable | Default | Purpose |
|
||||
@@ -27,7 +31,7 @@ Create a weekly routine:
|
||||
curl -X POST http://127.0.0.1:8090/v1/routines \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"title": "Exercise",
|
||||
"public_title": "Exercise",
|
||||
"section": "evening",
|
||||
"priority": "should",
|
||||
"schedule": {"kind": "weekly", "weekdays": [1, 3, 5]},
|
||||
@@ -39,7 +43,7 @@ Create a monthly routine that moves day 31 to a shorter month's final day:
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "Review finances",
|
||||
"public_title": "Review finances",
|
||||
"section": "work",
|
||||
"priority": "must",
|
||||
"schedule": {
|
||||
@@ -55,12 +59,19 @@ Routes:
|
||||
```text
|
||||
GET /health
|
||||
GET /v1/tasks?date=YYYY-MM-DD
|
||||
GET /v1/tasks/archived
|
||||
POST /v1/tasks
|
||||
POST /v1/tasks/{id}/complete
|
||||
POST /v1/tasks/{id}/archive
|
||||
POST /v1/tasks/{id}/restore
|
||||
POST /v1/tasks/{id}/reschedule
|
||||
DELETE /v1/tasks/{id}
|
||||
DELETE /v1/tasks/{id} (archived tasks only)
|
||||
GET /v1/routines
|
||||
POST /v1/routines
|
||||
```
|
||||
|
||||
Weekly days use ISO numbers: Monday is `1`, Sunday is `7`.
|
||||
|
||||
When private data is present, `encrypted_payload`, `encryption_version`, and
|
||||
`content_id` must all be set. `encrypted_payload` is an ASCII-armored age file
|
||||
containing the client's versioned JSON document.
|
||||
|
||||
Reference in New Issue
Block a user