ai-assisted-todolistopenapi.yamlopenapi.jsonHomeDocsAll versionsGitHub (opens in a new tab)Imprint (opens in a new tab)Privacy policyDatenschutz

TaskFest API (1.5.0)

License: Apache-2.0

The task board's REST surface. Every response schema here is published as JSON Schema and checked at runtime by the frontend.

Account

The signed-in user's own account.

Delete my account

Deletes every task and every file of the caller, and the account itself. It cannot be undone.

Authorizations:
SecurityScheme

Responses

Attachments

Files on a task, transferred directly between the browser and storage.

Announce an upload

Checks the type and the limits, and answers with a link that accepts exactly this file: PUT it there with the given headers, then confirm.

Authorizations:
SecurityScheme
path Parameters
taskId
required
integer <int64>
Request Body schema: application/json
required
fileName
required
string <= 1024 characters \S
contentType
required
string <= 255 characters
sizeBytes
required
integer <int64> >= 1
thumbnailSizeBytes
integer or null <int64>

Responses

Request samples

Content type
application/json
{
  • "fileName": "Rechnung.pdf",
  • "contentType": "application/pdf",
  • "sizeBytes": 48213,
  • "thumbnailSizeBytes": 6120
}

Response samples

Content type
application/json
{
  • "attachment": {},
  • "url": "string",
  • "headers": {
    },
  • "expiresAt": "2022-03-10T16:15:50Z",
  • "thumbnailUpload": {
    }
}

Add a link

A web address, with the page's title where the sharing app gave one (#414). Counted against the same limits as files; available at once, with nothing to upload.

Authorizations:
SecurityScheme
path Parameters
taskId
required
integer <int64>
Request Body schema: application/json
required
url
required
string <= 2048 characters ^(?i)https?://[^\s/?#:]+(:[0-9]{1,5})?([/?#][...
title
string or null <= 1024 characters

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Remove an attachment

Deletes the file and its record.

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Confirm an upload

Checks the file arrived as announced and makes the attachment available.

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{}

A link to open the file

For the owner's browser to fetch the file straight from storage. The same link is handed out again while it is fresh, and the answer may be kept for as long as that, so the browser's cache keeps the file.

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "expiresAt": "2022-03-10T16:15:50Z"
}

A link to the preview thumbnail

Like the file's link, for the small preview an image's row shows (#236).

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "expiresAt": "2022-03-10T16:15:50Z"
}

Authentication

The browser side of sign-in, sign-out, and the current session.

Start or complete sign-in

Being @Authenticated is the whole point: an unauthenticated request is intercepted by the OIDC authorization code flow before this method ever runs.

Authorizations:
SecurityScheme

Responses

Start or complete sign-in with one provider

For every provider but the deployment's main one, which uses /api/auth/login. The provider list names each provider's path.

Authorizations:
SecurityScheme
path Parameters
provider
required
string <= 64 characters

Responses

End the local session

Expires every session cookie the browser sent; the identity provider's own session is untouched.

Responses

The signed-in identity

The only identity the frontend is allowed to know about.

Authorizations:
SecurityScheme

Responses

Response samples

Content type
application/json
{}

List the configured sign-in providers

Every provider this deployment declares, usable or not, needing no authentication to ask.

Responses

Response samples

Content type
application/json
{
  • "enabled": true,
  • "providers": []
}

Deployment

What a deployment runs, for the tooling that deploys it.

Report the running release

The version this backend was built as, and the oldest mobile app release it still serves, needing no authentication to ask.

Responses

Response samples

Content type
application/json
{
  • "version": "1.3.0",
  • "minimumAppVersion": "1.0.0"
}

Tasks

Everything a signed-in user can do to their own tasks.

List the caller's tasks

Ordered by due date, then by importance, high first, then id.

Authorizations:
SecurityScheme

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a task

The caller becomes the owner; the id cannot be set.

Authorizations:
SecurityScheme
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"
attachmentIds
Array of integers or null <int64> <= 10 items [ items <int64 > ]

Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window.

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachmentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2026-11-30",
  • "importance": "HIGH",
  • "state": "TODO"
}

Start a draft task

A task to attach files to before it is added; on no list until then (#381).

Authorizations:
SecurityScheme

Responses

Response samples

Content type
application/json
{
  • "id": 42
}

Discard a draft task

Its files go with it, at once.

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>

Responses

Add a draft task

Makes the draft a task, with its files, validated as a create is. Adding it again, as a retry whose answer was lost does, applies the values to the task (#427).

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"
attachmentIds
Array of integers or null <int64> <= 10 items [ items <int64 > ]

Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window.

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachmentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "dueAt": "2026-11-30T09:00:00Z",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachments": []
}

Replace a task

Replaces every field of a task owned by the caller, except a due time and zone the request leaves out both of (#497).

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO"
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2026-11-30",
  • "importance": "HIGH",
  • "state": "TODO"
}

Delete a task

Authorizations:
SecurityScheme
path Parameters
id
required
integer <int64>

Responses