Skip to content

Commit

Permalink
added Answer-related schemas to api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KavikaPalletenne committed Dec 2, 2024
1 parent 02b705b commit 6fcb06a
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion backend/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ paths:
schema:
properties:
application:
type:
type:
$ref: '#components/schemas/ApplicationDetails'
'401':
description: Not logged in.
Expand Down Expand Up @@ -1638,6 +1638,68 @@ paths:

components:
schemas:
Answer:
type: object
properties:
id:
type: integer
format: int64
example: 6996987893965227483
question_id:
type: integer
format: int64
example: 6996987893965227483
answer_type:
type: string
enum:
- ShortAnswer
- MultiChoice
- MultiSelect
- DropDown
- Ranking
data:
oneOf:
- type: string
example: I am passionate about events
- type: integer
example: 6996987893965227483
- type: array
format: int64
example: [6996987893965227483, 69969829832652228374, 6996987893965228374]
created_at:
type: string
example: 2024-03-15T18:25:43.511Z
updated_at:
type: string
example: 2024-03-15T18:25:43.511Z

NewAnswer:
type: object
properties:
question_id:
type: integer
format: int64
example: 6996987893965262849
answer_type:
type: string
enum:
- ShortAnswer
- MultiChoice
- MultiSelect
- DropDown
- Ranking
data:
oneOf:
- type: string
example: I am passionate about events
- type: integer
example: 6996987893965227483
- type: array
format: int64
example: [6996987893965227483, 69969829832652228374, 6996987893965228374]



ApplicationStatus:
type: string
enum:
Expand Down

0 comments on commit 6fcb06a

Please sign in to comment.