From f29eeae9d996487f145a2bb4bcc9bc629129bf1b Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Tue, 13 May 2025 15:24:15 +0200 Subject: [PATCH] Remove get allowance endpoint (#35) The GET /user/:userId endpoint already does this operation Closes #10 Reviewed-on: https://gitea.seeseepuff.be/seeseemelk/allowance_planner_2000/pulls/35 --- common/api.yaml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/common/api.yaml b/common/api.yaml index ed5871a..3a6dba6 100644 --- a/common/api.yaml +++ b/common/api.yaml @@ -60,29 +60,6 @@ paths: description: The users could not be found. /user/{userId}/allowance: - get: - summary: Gets the allowance breakdown of a user - parameters: - - in: path - name: userId - description: The user ID - required: true - schema: - type: integer - responses: - 200: - description: Information about the allowance of the user - content: - application/json: - schema: - type: object - properties: - allowance: - type: integer - description: The total allowance value of the user, in cents. - goals: - type: array - $ref: "#/components/schemas/goal" post: summary: Updates the allowance of a user parameters: