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

TaskFest API (0.9.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.

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

Responses

Request samples

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

Response samples

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

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
{
  • "id": 7,
  • "fileName": "Rechnung.pdf",
  • "contentType": "application/pdf",
  • "sizeBytes": 48213
}

A link to open the file

Works for a few minutes, for the owner's browser to fetch the file straight from storage.

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": []
}

Tasks

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

List the caller's tasks

Ordered by due date, 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)
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",
  • "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"
}

Replace a task

Replaces every field of a task owned by the caller.

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)
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",
  • "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