Rename endpoints in OpenAPI

This commit is contained in:
Sebastiaan de Schaetzen 2025-05-14 15:28:37 +02:00
parent 790ee3c622
commit f210e7b4e6

View File

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