APIv2 Idea: Added /purposes endpoint. Added /index query parameters.
This commit is contained in:
@@ -1551,12 +1551,61 @@ paths:
|
|||||||
500:
|
500:
|
||||||
description: Server Error.
|
description: Server Error.
|
||||||
|
|
||||||
|
/idea/purposes:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- idea
|
||||||
|
summary: Idea purposes list.
|
||||||
|
operationId: /idea/purposes
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Idea purpose object.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ideaPurposes'
|
||||||
|
401:
|
||||||
|
description: Unauthorized request.
|
||||||
|
403:
|
||||||
|
description: Unauthorized request.
|
||||||
|
500:
|
||||||
|
description: Server Error.
|
||||||
|
|
||||||
/idea/index:
|
/idea/index:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- idea
|
- idea
|
||||||
summary: Idea index.
|
summary: Idea index.
|
||||||
operationId: /idea/index
|
operationId: /idea/index
|
||||||
|
parameters:
|
||||||
|
- name: created_at
|
||||||
|
in: query
|
||||||
|
description: Дата создания идеи.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
example: 2023-01-01|2023-01-01
|
||||||
|
- name: created_user_id
|
||||||
|
in: query
|
||||||
|
description: Идентификатор пользователя. Можно передать несколько идентификаторов разделенные запятой.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
example: edee4e11-dab5-4aac-93ac-43c379aab6b2
|
||||||
|
- name: idea_status_id
|
||||||
|
in: query
|
||||||
|
description: Статус идеи. Можно передать несколько идентификаторов разделенные запятой.
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: false
|
||||||
|
example: 1
|
||||||
|
- name: idea_purpose_id
|
||||||
|
in: query
|
||||||
|
description: Направление идеи. Можно передать несколько идентификаторов разделенные запятой.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
example: edee4e11-dab5-4aac-93ac-43c379aab6b2
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Idea objects.
|
description: Idea objects.
|
||||||
@@ -3601,6 +3650,21 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
example: Модерация
|
example: Модерация
|
||||||
|
|
||||||
|
ideaPurposes:
|
||||||
|
description: Список направлений идеи.
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
description: Идентификатор направления.
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
example: a91fe4d9-b486-4e94-9114-18589aad7c7e
|
||||||
|
name:
|
||||||
|
description: Имя направления.
|
||||||
|
type: string
|
||||||
|
example: Направление
|
||||||
|
|
||||||
ideaIndex:
|
ideaIndex:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user