Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afdc6809db | ||
|
|
801eee915a |
+122
-34
@@ -5688,6 +5688,7 @@ paths:
|
||||
|
||||
responses:
|
||||
200:
|
||||
description: Список опросов
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -6023,7 +6024,16 @@ paths:
|
||||
- $ref: '#/components/parameters/noDraft'
|
||||
- $ref: '#/components/parameters/goalParentId'
|
||||
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:
|
||||
get:
|
||||
@@ -6043,7 +6053,16 @@ paths:
|
||||
- $ref: '#/components/parameters/noDraft'
|
||||
- $ref: '#/components/parameters/goalParentId'
|
||||
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:
|
||||
get:
|
||||
@@ -6062,7 +6081,16 @@ paths:
|
||||
- $ref: '#/components/parameters/goalParentId'
|
||||
- $ref: '#/components/parameters/goalIntervalTypeId'
|
||||
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:
|
||||
get:
|
||||
@@ -6164,7 +6192,16 @@ paths:
|
||||
items:
|
||||
$ref: '#/components/schemas/GoalItem'
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/approve:
|
||||
post:
|
||||
@@ -6185,7 +6222,16 @@ paths:
|
||||
items:
|
||||
$ref: '#/components/schemas/GoalItem'
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/reject:
|
||||
post:
|
||||
@@ -6206,7 +6252,16 @@ paths:
|
||||
items:
|
||||
$ref: '#/components/schemas/GoalItem'
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/finish:
|
||||
post:
|
||||
@@ -6227,7 +6282,16 @@ paths:
|
||||
items:
|
||||
$ref: '#/components/schemas/GoalItem'
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/remove:
|
||||
post:
|
||||
@@ -6248,7 +6312,16 @@ paths:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/bind:
|
||||
post:
|
||||
@@ -6278,7 +6351,16 @@ paths:
|
||||
format: uuid
|
||||
description: Цели которые необходимо привязать
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal/unbind:
|
||||
post:
|
||||
@@ -6300,7 +6382,16 @@ paths:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
/goal-report/users:
|
||||
post:
|
||||
@@ -6450,7 +6541,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/responses/GoalActionResponse'
|
||||
$ref: '#/components/schemas/GoalActionResponse'
|
||||
422:
|
||||
description: Bad Request
|
||||
403:
|
||||
@@ -13953,6 +14044,28 @@ components:
|
||||
description: Дата и время публикации, ISO 8601 со смещением.
|
||||
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:
|
||||
boardDateTypeParam:
|
||||
in: query
|
||||
@@ -14088,7 +14201,6 @@ components:
|
||||
|
||||
responses:
|
||||
GoalIndexResponse:
|
||||
200:
|
||||
description: Список целей
|
||||
content:
|
||||
application/json:
|
||||
@@ -14105,36 +14217,12 @@ components:
|
||||
$ref: '#/components/schemas/_links'
|
||||
_meta:
|
||||
$ref: '#/components/schemas/_meta'
|
||||
400:
|
||||
description: Bad Request.
|
||||
403:
|
||||
description: Unauthorized.
|
||||
404:
|
||||
description: Not found.
|
||||
500:
|
||||
description: Server Error.
|
||||
|
||||
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: Цели которые не были обработаны
|
||||
description: Результат действия над целями
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GoalActionResponse'
|
||||
|
||||
security:
|
||||
- SessionAuth: [ ]
|
||||
|
||||
Reference in new issue
Block a user