Remove get allowance endpoint

The GET /user/:userId endpoint already does this operation

Closes #10
This commit is contained in:
Sebastiaan de Schaetzen 2025-05-13 15:23:57 +02:00
parent 62f43d7eb3
commit 88714b0c28

View File

@ -60,29 +60,6 @@ paths:
description: The users could not be found. description: The users could not be found.
/user/{userId}/allowance: /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: post:
summary: Updates the allowance of a user summary: Updates the allowance of a user
parameters: parameters: