Skip to content

Commit 99accf4

Browse files
committed
docs
1 parent 1645b9a commit 99accf4

File tree

2 files changed

+94
-94
lines changed

2 files changed

+94
-94
lines changed

aiplan.go/internal/aiplan/docs/docs.go

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,53 @@ const docTemplate = `{
17421742
}
17431743
}
17441744
},
1745+
"/api/auth/file/{fileName}": {
1746+
"get": {
1747+
"security": [
1748+
{
1749+
"ApiKeyAuth": []
1750+
}
1751+
],
1752+
"description": "Эндпоинт для получения файла из MinIO хранилища. Проверяет права доступа пользователя к файлу и возвращает файл по его имени или идентификатору",
1753+
"consumes": [
1754+
"*/*"
1755+
],
1756+
"produces": [
1757+
"*/*"
1758+
],
1759+
"tags": [
1760+
"Integrations"
1761+
],
1762+
"summary": "Получение файла",
1763+
"operationId": "assetsHandler",
1764+
"parameters": [
1765+
{
1766+
"type": "string",
1767+
"description": "Имя файла или ID файла",
1768+
"name": "fileName",
1769+
"in": "path",
1770+
"required": true
1771+
}
1772+
],
1773+
"responses": {
1774+
"200": {
1775+
"description": "Успешный ответ с содержимым файла"
1776+
},
1777+
"404": {
1778+
"description": "Файл не найден",
1779+
"schema": {
1780+
"$ref": "#/definitions/apierrors.DefinedError"
1781+
}
1782+
},
1783+
"500": {
1784+
"description": "Внутренняя ошибка сервера",
1785+
"schema": {
1786+
"$ref": "#/definitions/apierrors.DefinedError"
1787+
}
1788+
}
1789+
}
1790+
}
1791+
},
17451792
"/api/auth/filters/": {
17461793
"get": {
17471794
"security": [
@@ -15554,53 +15601,6 @@ const docTemplate = `{
1555415601
}
1555515602
}
1555615603
},
15557-
"/api/file/{fileName}": {
15558-
"get": {
15559-
"security": [
15560-
{
15561-
"ApiKeyAuth": []
15562-
}
15563-
],
15564-
"description": "Перенаправляет пользователя на файл, хранящийся в MinIO, по имени файла или ID",
15565-
"consumes": [
15566-
"*/*"
15567-
],
15568-
"produces": [
15569-
"*/*"
15570-
],
15571-
"tags": [
15572-
"Integrations"
15573-
],
15574-
"summary": "Интеграции: перенаправление на файл в MinIO",
15575-
"operationId": "redirectToMinioFile",
15576-
"parameters": [
15577-
{
15578-
"type": "string",
15579-
"description": "Имя файла или ID файла",
15580-
"name": "fileName",
15581-
"in": "path",
15582-
"required": true
15583-
}
15584-
],
15585-
"responses": {
15586-
"307": {
15587-
"description": "Перенаправление на URL файла в MinIO"
15588-
},
15589-
"404": {
15590-
"description": "Файл не найден",
15591-
"schema": {
15592-
"$ref": "#/definitions/apierrors.DefinedError"
15593-
}
15594-
},
15595-
"500": {
15596-
"description": "Внутренняя ошибка сервера",
15597-
"schema": {
15598-
"$ref": "#/definitions/apierrors.DefinedError"
15599-
}
15600-
}
15601-
}
15602-
}
15603-
},
1560415604
"/api/forms/{formSlug}/": {
1560515605
"get": {
1560615606
"description": "Получает информацию о форме, без аутентификации",

aiplan.go/internal/aiplan/docs/swagger.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,53 @@
17341734
}
17351735
}
17361736
},
1737+
"/api/auth/file/{fileName}": {
1738+
"get": {
1739+
"security": [
1740+
{
1741+
"ApiKeyAuth": []
1742+
}
1743+
],
1744+
"description": "Эндпоинт для получения файла из MinIO хранилища. Проверяет права доступа пользователя к файлу и возвращает файл по его имени или идентификатору",
1745+
"consumes": [
1746+
"*/*"
1747+
],
1748+
"produces": [
1749+
"*/*"
1750+
],
1751+
"tags": [
1752+
"Integrations"
1753+
],
1754+
"summary": "Получение файла",
1755+
"operationId": "assetsHandler",
1756+
"parameters": [
1757+
{
1758+
"type": "string",
1759+
"description": "Имя файла или ID файла",
1760+
"name": "fileName",
1761+
"in": "path",
1762+
"required": true
1763+
}
1764+
],
1765+
"responses": {
1766+
"200": {
1767+
"description": "Успешный ответ с содержимым файла"
1768+
},
1769+
"404": {
1770+
"description": "Файл не найден",
1771+
"schema": {
1772+
"$ref": "#/definitions/apierrors.DefinedError"
1773+
}
1774+
},
1775+
"500": {
1776+
"description": "Внутренняя ошибка сервера",
1777+
"schema": {
1778+
"$ref": "#/definitions/apierrors.DefinedError"
1779+
}
1780+
}
1781+
}
1782+
}
1783+
},
17371784
"/api/auth/filters/": {
17381785
"get": {
17391786
"security": [
@@ -15546,53 +15593,6 @@
1554615593
}
1554715594
}
1554815595
},
15549-
"/api/file/{fileName}": {
15550-
"get": {
15551-
"security": [
15552-
{
15553-
"ApiKeyAuth": []
15554-
}
15555-
],
15556-
"description": "Перенаправляет пользователя на файл, хранящийся в MinIO, по имени файла или ID",
15557-
"consumes": [
15558-
"*/*"
15559-
],
15560-
"produces": [
15561-
"*/*"
15562-
],
15563-
"tags": [
15564-
"Integrations"
15565-
],
15566-
"summary": "Интеграции: перенаправление на файл в MinIO",
15567-
"operationId": "redirectToMinioFile",
15568-
"parameters": [
15569-
{
15570-
"type": "string",
15571-
"description": "Имя файла или ID файла",
15572-
"name": "fileName",
15573-
"in": "path",
15574-
"required": true
15575-
}
15576-
],
15577-
"responses": {
15578-
"307": {
15579-
"description": "Перенаправление на URL файла в MinIO"
15580-
},
15581-
"404": {
15582-
"description": "Файл не найден",
15583-
"schema": {
15584-
"$ref": "#/definitions/apierrors.DefinedError"
15585-
}
15586-
},
15587-
"500": {
15588-
"description": "Внутренняя ошибка сервера",
15589-
"schema": {
15590-
"$ref": "#/definitions/apierrors.DefinedError"
15591-
}
15592-
}
15593-
}
15594-
}
15595-
},
1559615596
"/api/forms/{formSlug}/": {
1559715597
"get": {
1559815598
"description": "Получает информацию о форме, без аутентификации",

0 commit comments

Comments
 (0)