Merge remote-tracking branch 'origin/master' into feature/H-3729

# Conflicts:
#	v2/swagger.yaml
This commit is contained in:
anton committed 2026-10-26 09:20:27 +05:00
commit afdc6809db
1 file changed
+155 -67
+155 -67
View File
@@ -1114,7 +1114,7 @@ paths:
example: { example: {
"type": "success", "type": "success",
"text": "Запись установлена основной!" "text": "Запись установлена основной!"
} }
errors: errors:
description: Array of validation errors. description: Array of validation errors.
type: array type: array
@@ -5688,6 +5688,7 @@ paths:
responses: responses:
200: 200:
description: Список опросов
content: content:
application/json: application/json:
schema: schema:
@@ -5701,16 +5702,16 @@ paths:
$ref: '#/components/schemas/_links' $ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'
400: 400:
description: Bad Request. description: Bad Request.
401: 401:
description: Unauthorized. description: Unauthorized.
403: 403:
description: Unauthorized. description: Unauthorized.
404: 404:
description: Not found. description: Not found.
500: 500:
description: Server Error. description: Server Error.
/survey-assignment/index: /survey-assignment/index:
get: get:
@@ -6023,7 +6024,16 @@ paths:
- $ref: '#/components/parameters/noDraft' - $ref: '#/components/parameters/noDraft'
- $ref: '#/components/parameters/goalParentId' - $ref: '#/components/parameters/goalParentId'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalIndexResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/supervise: /goal/supervise:
get: get:
@@ -6043,7 +6053,16 @@ paths:
- $ref: '#/components/parameters/noDraft' - $ref: '#/components/parameters/noDraft'
- $ref: '#/components/parameters/goalParentId' - $ref: '#/components/parameters/goalParentId'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalIndexResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/archive: /goal/archive:
get: get:
@@ -6062,7 +6081,16 @@ paths:
- $ref: '#/components/parameters/goalParentId' - $ref: '#/components/parameters/goalParentId'
- $ref: '#/components/parameters/goalIntervalTypeId' - $ref: '#/components/parameters/goalIntervalTypeId'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalIndexResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/view: /goal/view:
get: get:
@@ -6164,7 +6192,16 @@ paths:
items: items:
$ref: '#/components/schemas/GoalItem' $ref: '#/components/schemas/GoalItem'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/approve: /goal/approve:
post: post:
@@ -6185,7 +6222,16 @@ paths:
items: items:
$ref: '#/components/schemas/GoalItem' $ref: '#/components/schemas/GoalItem'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/reject: /goal/reject:
post: post:
@@ -6206,7 +6252,16 @@ paths:
items: items:
$ref: '#/components/schemas/GoalItem' $ref: '#/components/schemas/GoalItem'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/finish: /goal/finish:
post: post:
@@ -6227,7 +6282,16 @@ paths:
items: items:
$ref: '#/components/schemas/GoalItem' $ref: '#/components/schemas/GoalItem'
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/remove: /goal/remove:
post: post:
@@ -6248,7 +6312,16 @@ paths:
type: string type: string
format: uuid format: uuid
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/bind: /goal/bind:
post: post:
@@ -6278,7 +6351,16 @@ paths:
format: uuid format: uuid
description: Цели которые необходимо привязать description: Цели которые необходимо привязать
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal/unbind: /goal/unbind:
post: post:
@@ -6300,7 +6382,16 @@ paths:
type: string type: string
format: uuid format: uuid
responses: responses:
$ref: '#/components/responses/GoalActionResponse' 200:
$ref: '#/components/responses/GoalActionResponse'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
/goal-report/users: /goal-report/users:
post: post:
@@ -6450,7 +6541,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/responses/GoalActionResponse' $ref: '#/components/schemas/GoalActionResponse'
422: 422:
description: Bad Request description: Bad Request
403: 403:
@@ -11529,7 +11620,7 @@ components:
example: { example: {
"width": 1920, "width": 1920,
"height": 1080 "height": 1080
} }
properties: properties:
width: width:
description: Image width. description: Image width.
@@ -13953,6 +14044,28 @@ components:
description: Дата и время публикации, ISO 8601 со смещением. description: Дата и время публикации, ISO 8601 со смещением.
example: "2026-09-24T16:30:04+03:00" example: "2026-09-24T16:30:04+03:00"
GoalActionResponse:
description: Goal object
type: object
properties:
success:
type: boolean
deleted:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые были удалены
updated:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые были обновлены
skipped:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые не были обработаны
parameters: parameters:
boardDateTypeParam: boardDateTypeParam:
in: query in: query
@@ -14088,53 +14201,28 @@ components:
responses: responses:
GoalIndexResponse: GoalIndexResponse:
200: description: Список целей
description: Список целей content:
content: application/json:
application/json: schema:
schema: type: object
type: object properties:
properties: data:
data: type: array
items:
type: array type: array
items: items:
type: array $ref: '#/components/schemas/GoalItem'
items: _links:
$ref: '#/components/schemas/GoalItem' $ref: '#/components/schemas/_links'
_links: _meta:
$ref: '#/components/schemas/_links' $ref: '#/components/schemas/_meta'
_meta:
$ref: '#/components/schemas/_meta'
400:
description: Bad Request.
403:
description: Unauthorized.
404:
description: Not found.
500:
description: Server Error.
GoalActionResponse: GoalActionResponse:
description: Goal object description: Результат действия над целями
type: object content:
properties: application/json:
success: schema:
type: boolean $ref: '#/components/schemas/GoalActionResponse'
deleted:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые были удалены
updated:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые были обновлены
skipped:
type: array
items:
$ref: '#/components/schemas/GoalItem'
description: Цели которые не были обработаны
security: security:
- SessionAuth: [ ] - SessionAuth: [ ]