diff --git a/server/endpoints/api/admin/index.js b/server/endpoints/api/admin/index.js index d60a0f26a6dc14f6ca310152ea03dafeda830634..e1eb05450a70ddabfbfcec3b5003f28566a1ddf8 100644 --- a/server/endpoints/api/admin/index.js +++ b/server/endpoints/api/admin/index.js @@ -143,7 +143,6 @@ function apiAdminEndpoints(app) { app.post("/v1/admin/users/:id", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] - #swagger.path = '/v1/admin/users/{id}' #swagger.parameters['id'] = { in: 'path', description: 'id of the user in the database.', @@ -221,7 +220,6 @@ function apiAdminEndpoints(app) { /* #swagger.tags = ['Admin'] #swagger.description = 'Delete existing user by id. Methods are disabled until multi user mode is enabled via the UI.' - #swagger.path = '/v1/admin/users/{id}' #swagger.parameters['id'] = { in: 'path', description: 'id of the user in the database.', @@ -382,7 +380,6 @@ function apiAdminEndpoints(app) { /* #swagger.tags = ['Admin'] #swagger.description = 'Deactivates (soft-delete) invite by id. Methods are disabled until multi user mode is enabled via the UI.' - #swagger.path = '/v1/admin/invite/{id}' #swagger.parameters['id'] = { in: 'path', description: 'id of the invite in the database.', @@ -432,7 +429,6 @@ function apiAdminEndpoints(app) { async (request, response) => { /* #swagger.tags = ['Admin'] - #swagger.path = '/v1/admin/workspaces/{workspaceId}/users' #swagger.parameters['workspaceId'] = { in: 'path', description: 'id of the workspace.', @@ -487,7 +483,6 @@ function apiAdminEndpoints(app) { async (request, response) => { /* #swagger.tags = ['Admin'] - #swagger.path = '/v1/admin/workspaces/{workspaceId}/update-users' #swagger.parameters['workspaceId'] = { in: 'path', description: 'id of the workspace in the database.', diff --git a/server/endpoints/api/workspace/index.js b/server/endpoints/api/workspace/index.js index 3d4e90fb4d5077e242363f8e31197acda19a1469..c9a6cb51e5231bead1bcc21a6983eee381b20c43 100644 --- a/server/endpoints/api/workspace/index.js +++ b/server/endpoints/api/workspace/index.js @@ -142,7 +142,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Get a workspace by its unique slug.' - #swagger.path = '/v1/workspace/{slug}' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', @@ -209,7 +208,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Deletes a workspace by its slug.' - #swagger.path = '/v1/workspace/{slug}' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to delete', @@ -261,7 +259,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Update workspace settings by its unique slug.' - #swagger.path = '/v1/workspace/{slug}/update' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', @@ -341,7 +338,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Get a workspaces chats regardless of user by its unique slug.' - #swagger.path = '/v1/workspace/{slug}/chats' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', @@ -402,7 +398,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Add or remove documents from a workspace by its unique slug.' - #swagger.path = '/v1/workspace/{slug}/update-embeddings' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', @@ -481,7 +476,6 @@ function apiWorkspaceEndpoints(app) { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Add or remove pin from a document in a workspace by its unique slug.' - #swagger.path = '/workspace/{slug}/update-pin' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', diff --git a/server/endpoints/api/workspaceThread/index.js b/server/endpoints/api/workspaceThread/index.js index e2c6af1c76a02e075633a2e8c363e81d109bcc3d..de30e24d0b53d80218d527ced6022949531d6cb6 100644 --- a/server/endpoints/api/workspaceThread/index.js +++ b/server/endpoints/api/workspaceThread/index.js @@ -110,7 +110,6 @@ function apiWorkspaceThreadEndpoints(app) { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Update thread name by its unique slug.' - #swagger.path = '/v1/workspace/{slug}/thread/{threadSlug}/update' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json index e14ed576ff995424d182163e761b5e879bf4a6ce..ef4144922903054c4eb86ec1c388b1d5c6fda232 100644 --- a/server/swagger/openapi.json +++ b/server/swagger/openapi.json @@ -1846,7 +1846,7 @@ } } }, - "/workspace/{slug}/update-pin": { + "/v1/workspace/{slug}/update-pin": { "post": { "tags": [ "Workspaces"