Skip to content

Commit

Permalink
docs(be): update swagger.yaml to include forum question mock meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
MucahitErdoganUnlu committed Oct 21, 2024
1 parent ecb6ccb commit e65d8ec
Showing 1 changed file with 51 additions and 6 deletions.
57 changes: 51 additions & 6 deletions backend/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,35 @@ paths:
get:
operationId: forum-questions_list
description: ''
parameters: []
parameters:
- name: page
in: query
description: A page number within the paginated result set.
required: false
type: integer
responses:
'200':
description: ''
schema:
type: array
items:
$ref: '#/definitions/ForumQuestion'
required:
- count
- results
type: object
properties:
count:
type: integer
next:
type: string
format: uri
x-nullable: true
previous:
type: string
format: uri
x-nullable: true
results:
type: array
items:
$ref: '#/definitions/ForumQuestion'
tags:
- forum-questions
post:
Expand Down Expand Up @@ -395,11 +416,35 @@ definitions:
$ref: '#/definitions/Tag'
author:
$ref: '#/definitions/UserInfo'
date:
title: Date
created_at:
title: Created at
type: string
format: date-time
readOnly: true
answers_count:
title: Answers count
type: string
readOnly: true
is_bookmarked:
title: Is bookmarked
type: string
readOnly: true
is_upvoted:
title: Is upvoted
type: string
readOnly: true
upvotes_count:
title: Upvotes count
type: string
readOnly: true
is_downvoted:
title: Is downvoted
type: string
readOnly: true
downvotes_count:
title: Downvotes count
type: string
readOnly: true
WordDefinition:
required:
- id
Expand Down

0 comments on commit e65d8ec

Please sign in to comment.