diff --git a/server/endpoints/api/embed/index.js b/server/endpoints/api/embed/index.js index d4230b352..9dad85dbe 100644 --- a/server/endpoints/api/embed/index.js +++ b/server/endpoints/api/embed/index.js @@ -35,6 +35,17 @@ function apiEmbedEndpoints(app) { "chat_mode": "chat", "createdAt": "2023-04-02T14:30:00Z", "workspace": { + "id": 1, + "name": "Workspace 1" + }, + "chat_count": 10 + } + ] + } + } + } + } + } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json index 68380196f..e14ed576f 100644 --- a/server/swagger/openapi.json +++ b/server/swagger/openapi.json @@ -3150,10 +3150,57 @@ "parameters": [], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "example": { + "embeds": [ + { + "id": 1, + "uuid": "embed-uuid-1", + "enabled": true, + "chat_mode": "query", + "createdAt": "2023-04-01T12:00:00Z", + "workspace": { + "id": 1, + "name": "Workspace 1" + }, + "chat_count": 10 + }, + { + "id": 2, + "uuid": "embed-uuid-2", + "enabled": false, + "chat_mode": "chat", + "createdAt": "2023-04-02T14:30:00Z", + "workspace": { + "id": 1, + "name": "Workspace 1" + }, + "chat_count": 10 + } + ] + } + } + } + } }, "403": { - "description": "Forbidden" + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidAPIKey" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/InvalidAPIKey" + } + } + } }, "500": { "description": "Internal Server Error"