Add missing response types
This commit is contained in:
parent
3854daca49
commit
ae4fd727ca
@ -102,6 +102,11 @@ paths:
|
||||
description:
|
||||
type: string
|
||||
description: The description of the allowance or expense.
|
||||
responses:
|
||||
200:
|
||||
description: The allowance was updated successfully.
|
||||
400:
|
||||
description: The allowance could not be updated.
|
||||
|
||||
/user/{userId}/history:
|
||||
get:
|
||||
@ -175,6 +180,19 @@ paths:
|
||||
weight:
|
||||
type: integer
|
||||
description: How much money goes to this goal, relative to all other goals.
|
||||
responses:
|
||||
201:
|
||||
description: The goal was created successfully.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description: The goal ID
|
||||
400:
|
||||
description: The goal could not be created.
|
||||
put:
|
||||
summary: Bulk updating of goals
|
||||
parameters:
|
||||
@ -199,6 +217,11 @@ paths:
|
||||
weight:
|
||||
type: integer
|
||||
description: How much money goes to this goal, relative to all other goals.
|
||||
responses:
|
||||
200:
|
||||
description: The goals were updated successfully.
|
||||
404:
|
||||
description: The goals could not be found.
|
||||
|
||||
/user/{userId}/goal/{goalId}:
|
||||
get:
|
||||
@ -300,6 +323,11 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
description: The goal was completed successfully.
|
||||
404:
|
||||
description: The goal could not be found.
|
||||
|
||||
/tasks:
|
||||
get:
|
||||
@ -331,6 +359,17 @@ paths:
|
||||
assigned:
|
||||
type: integer
|
||||
description: The user ID of the user assigned to the task
|
||||
responses:
|
||||
202:
|
||||
description: The task was created successfully.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description: The task ID
|
||||
|
||||
/task/{id}:
|
||||
get:
|
||||
@ -386,6 +425,11 @@ paths:
|
||||
assigned:
|
||||
type: integer
|
||||
description: The user ID of the user assigned to the task
|
||||
responses:
|
||||
200:
|
||||
description: The task was updated successfully.
|
||||
404:
|
||||
description: The task could not be found.
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
Loading…
x
Reference in New Issue
Block a user