add missing parameters in openApi definition for "GET /workgroups" route
This commit is contained in:
@@ -850,6 +850,13 @@ paths:
|
|||||||
- JWTAuth: []
|
- JWTAuth: []
|
||||||
tags:
|
tags:
|
||||||
- workgroup
|
- workgroup
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/page'
|
||||||
|
- $ref: '#/components/parameters/limit'
|
||||||
|
- $ref: '#/components/parameters/workgroupSort'
|
||||||
|
- $ref: '#/components/parameters/direction'
|
||||||
|
- $ref: '#/components/parameters/search'
|
||||||
|
- $ref: '#/components/parameters/createdBy'
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: paginated list of workgroup
|
description: paginated list of workgroup
|
||||||
@@ -1114,6 +1121,17 @@ components:
|
|||||||
- createdAt
|
- createdAt
|
||||||
- vote
|
- vote
|
||||||
- popularity
|
- popularity
|
||||||
|
workgroupSort:
|
||||||
|
name: sort
|
||||||
|
in: query
|
||||||
|
description: The sort field name
|
||||||
|
example: createdAt
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- name
|
||||||
|
- createdAt
|
||||||
direction:
|
direction:
|
||||||
name: direction
|
name: direction
|
||||||
in: query
|
in: query
|
||||||
|
|||||||
Reference in New Issue
Block a user