transfer-allowances (#143)
All checks were successful
Backend Build and Test / build (push) Successful in 10m9s
Backend Deploy / build (push) Successful in 11m20s

Reviewed-on: #143
This commit was merged in pull request #143.
This commit is contained in:
2025-10-08 20:21:09 +02:00
parent cdbac17215
commit c9a96f937a
7 changed files with 401 additions and 159 deletions

View File

@@ -409,6 +409,59 @@ paths:
404:
description: The task could not be found.
/api/transfer:
post:
summary: Transfer amount between allowances
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
from:
type: integer
description: Source allowance ID
to:
type: integer
description: Destination allowance ID
amount:
type: number
format: float
description: Amount to transfer
required:
- from
- to
- amount
responses:
'200':
description: Transfer successful
content:
application/json:
schema:
type: object
properties:
message:
type: string
'400':
description: Invalid request
content:
application/json:
schema:
type: object
properties:
error:
type: string
'404':
description: Allowance not found
content:
application/json:
schema:
type: object
properties:
error:
type: string
components:
schemas:
task: