Rename endpoints (#42)

Closes #39

Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
2025-05-14 17:14:58 +02:00
parent 790ee3c622
commit 1589bc9422
6 changed files with 125 additions and 125 deletions

View File

@@ -59,7 +59,7 @@ paths:
404:
description: The users could not be found.
/user/{userId}/allowance:
/user/{userId}/history:
get:
summary: Gets the allowance history of a user
parameters:
@@ -114,7 +114,7 @@ paths:
400:
description: The allowance could not be updated.
/user/{userId}/goals:
/user/{userId}/allowance:
get:
summary: Gets all goals
parameters:
@@ -201,7 +201,7 @@ paths:
404:
description: The goals could not be found.
/user/{userId}/goal/{goalId}:
/user/{userId}/allowance/{goalId}:
get:
summary: Gets information about a goal
parameters:
@@ -284,7 +284,7 @@ paths:
404:
description: The goal could not be found.
/user/{userId}/goal/{goalId}/complete:
/user/{userId}/allowance/{goalId}/complete:
post:
summary: Completes a goal.
description: Completes a goal. This will subtract this goal's value from the user's allowance and then remove the goal.