From f210e7b4e624aba99eb79fd9f63cf3ba5e9dc48b Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 14 May 2025 15:28:37 +0200 Subject: [PATCH] Rename endpoints in OpenAPI --- common/api.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/api.yaml b/common/api.yaml index 240255a..e2fddd9 100644 --- a/common/api.yaml +++ b/common/api.yaml @@ -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.