Skip to content

Commit 94fe7e6

Browse files
committed
front
1 parent 46a64c3 commit 94fe7e6

File tree

3 files changed

+77
-21
lines changed

3 files changed

+77
-21
lines changed

aiplan-front

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

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5165,13 +5165,16 @@ const docTemplate = `{
51655165
}
51665166
},
51675167
"/api/auth/users/me/memberships/projects/": {
5168-
"get": {
5168+
"post": {
51695169
"security": [
51705170
{
51715171
"ApiKeyAuth": []
51725172
}
51735173
],
51745174
"description": "Возвращает информацию о членстве текущего пользователя в указанных проектах, если не указывать проекты - возвращаются все членства",
5175+
"consumes": [
5176+
"application/json"
5177+
],
51755178
"produces": [
51765179
"application/json"
51775180
],
@@ -5182,10 +5185,15 @@ const docTemplate = `{
51825185
"operationId": "getCurrentUserProjectMemberships",
51835186
"parameters": [
51845187
{
5185-
"type": "string",
5186-
"description": "Список ID проектов через запятую",
5187-
"name": "projects",
5188-
"in": "query"
5188+
"description": "Список ID проектов",
5189+
"name": "data",
5190+
"in": "body",
5191+
"schema": {
5192+
"type": "array",
5193+
"items": {
5194+
"type": "string"
5195+
}
5196+
}
51895197
}
51905198
],
51915199
"responses": {
@@ -5198,6 +5206,12 @@ const docTemplate = `{
51985206
}
51995207
}
52005208
},
5209+
"400": {
5210+
"description": "Некорректные параметры запроса",
5211+
"schema": {
5212+
"$ref": "#/definitions/apierrors.DefinedError"
5213+
}
5214+
},
52015215
"401": {
52025216
"description": "Необходима авторизация",
52035217
"schema": {
@@ -5214,13 +5228,16 @@ const docTemplate = `{
52145228
}
52155229
},
52165230
"/api/auth/users/me/memberships/workspaces/": {
5217-
"get": {
5231+
"post": {
52185232
"security": [
52195233
{
52205234
"ApiKeyAuth": []
52215235
}
52225236
],
52235237
"description": "Возвращает информацию о членстве текущего пользователя в указанных рабочих пространствах, если не указывать пространства - возвращаются все членства",
5238+
"consumes": [
5239+
"application/json"
5240+
],
52245241
"produces": [
52255242
"application/json"
52265243
],
@@ -5231,10 +5248,15 @@ const docTemplate = `{
52315248
"operationId": "getCurrentUserWorkspaceMemberships",
52325249
"parameters": [
52335250
{
5234-
"type": "string",
5235-
"description": "Список ID рабочих пространств через запятую",
5236-
"name": "workspaces",
5237-
"in": "query"
5251+
"description": "Список ID рабочих пространств",
5252+
"name": "data",
5253+
"in": "body",
5254+
"schema": {
5255+
"type": "array",
5256+
"items": {
5257+
"type": "string"
5258+
}
5259+
}
52385260
}
52395261
],
52405262
"responses": {
@@ -5247,6 +5269,12 @@ const docTemplate = `{
52475269
}
52485270
}
52495271
},
5272+
"400": {
5273+
"description": "Некорректные параметры запроса",
5274+
"schema": {
5275+
"$ref": "#/definitions/apierrors.DefinedError"
5276+
}
5277+
},
52505278
"401": {
52515279
"description": "Необходима авторизация",
52525280
"schema": {

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

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5157,13 +5157,16 @@
51575157
}
51585158
},
51595159
"/api/auth/users/me/memberships/projects/": {
5160-
"get": {
5160+
"post": {
51615161
"security": [
51625162
{
51635163
"ApiKeyAuth": []
51645164
}
51655165
],
51665166
"description": "Возвращает информацию о членстве текущего пользователя в указанных проектах, если не указывать проекты - возвращаются все членства",
5167+
"consumes": [
5168+
"application/json"
5169+
],
51675170
"produces": [
51685171
"application/json"
51695172
],
@@ -5174,10 +5177,15 @@
51745177
"operationId": "getCurrentUserProjectMemberships",
51755178
"parameters": [
51765179
{
5177-
"type": "string",
5178-
"description": "Список ID проектов через запятую",
5179-
"name": "projects",
5180-
"in": "query"
5180+
"description": "Список ID проектов",
5181+
"name": "data",
5182+
"in": "body",
5183+
"schema": {
5184+
"type": "array",
5185+
"items": {
5186+
"type": "string"
5187+
}
5188+
}
51815189
}
51825190
],
51835191
"responses": {
@@ -5190,6 +5198,12 @@
51905198
}
51915199
}
51925200
},
5201+
"400": {
5202+
"description": "Некорректные параметры запроса",
5203+
"schema": {
5204+
"$ref": "#/definitions/apierrors.DefinedError"
5205+
}
5206+
},
51935207
"401": {
51945208
"description": "Необходима авторизация",
51955209
"schema": {
@@ -5206,13 +5220,16 @@
52065220
}
52075221
},
52085222
"/api/auth/users/me/memberships/workspaces/": {
5209-
"get": {
5223+
"post": {
52105224
"security": [
52115225
{
52125226
"ApiKeyAuth": []
52135227
}
52145228
],
52155229
"description": "Возвращает информацию о членстве текущего пользователя в указанных рабочих пространствах, если не указывать пространства - возвращаются все членства",
5230+
"consumes": [
5231+
"application/json"
5232+
],
52165233
"produces": [
52175234
"application/json"
52185235
],
@@ -5223,10 +5240,15 @@
52235240
"operationId": "getCurrentUserWorkspaceMemberships",
52245241
"parameters": [
52255242
{
5226-
"type": "string",
5227-
"description": "Список ID рабочих пространств через запятую",
5228-
"name": "workspaces",
5229-
"in": "query"
5243+
"description": "Список ID рабочих пространств",
5244+
"name": "data",
5245+
"in": "body",
5246+
"schema": {
5247+
"type": "array",
5248+
"items": {
5249+
"type": "string"
5250+
}
5251+
}
52305252
}
52315253
],
52325254
"responses": {
@@ -5239,6 +5261,12 @@
52395261
}
52405262
}
52415263
},
5264+
"400": {
5265+
"description": "Некорректные параметры запроса",
5266+
"schema": {
5267+
"$ref": "#/definitions/apierrors.DefinedError"
5268+
}
5269+
},
52425270
"401": {
52435271
"description": "Необходима авторизация",
52445272
"schema": {

0 commit comments

Comments
 (0)