Create initial backend (#7)

Closes #3

Reviewed-on: #7
This commit is contained in:
2025-05-08 10:02:30 +02:00
parent 539c6412a7
commit 1baa1afb07
8 changed files with 552 additions and 1 deletions

View File

@@ -102,6 +102,11 @@ paths:
description:
type: string
description: The description of the allowance or expense.
responses:
200:
description: The allowance was updated successfully.
400:
description: The allowance could not be updated.
/user/{userId}/history:
get:
@@ -175,6 +180,19 @@ paths:
weight:
type: integer
description: How much money goes to this goal, relative to all other goals.
responses:
201:
description: The goal was created successfully.
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: The goal ID
400:
description: The goal could not be created.
put:
summary: Bulk updating of goals
parameters:
@@ -199,8 +217,13 @@ paths:
weight:
type: integer
description: How much money goes to this goal, relative to all other goals.
responses:
200:
description: The goals were updated successfully.
404:
description: The goals could not be found.
/user/{userId/goal/{goalId}:
/user/{userId}/goal/{goalId}:
get:
summary: Gets information about a goal
parameters:
@@ -300,6 +323,11 @@ paths:
required: true
schema:
type: integer
responses:
200:
description: The goal was completed successfully.
404:
description: The goal could not be found.
/tasks:
get:
@@ -331,6 +359,17 @@ paths:
assigned:
type: integer
description: The user ID of the user assigned to the task
responses:
202:
description: The task was created successfully.
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: The task ID
/task/{id}:
get:
@@ -386,6 +425,11 @@ paths:
assigned:
type: integer
description: The user ID of the user assigned to the task
responses:
200:
description: The task was updated successfully.
404:
description: The task could not be found.
components:
schemas: