Feature/update api example outputs (#2547)

* /v1/workspace/{slug} actually returns an array - update example output

* update swagger example to show array output
This commit is contained in:
Mr Simon C 2024-10-29 23:50:19 +00:00 committed by GitHub
parent 4eeac2752b
commit ccde891aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 24 deletions

View File

@ -150,18 +150,20 @@ function apiWorkspaceEndpoints(app) {
schema: { schema: {
type: 'object', type: 'object',
example: { example: {
workspace: { workspace: [
"id": 79, {
"name": "My workspace", "id": 79,
"slug": "my-workspace-123", "name": "My workspace",
"createdAt": "2023-08-17 00:45:03", "slug": "my-workspace-123",
"openAiTemp": null, "createdAt": "2023-08-17 00:45:03",
"lastUpdatedAt": "2023-08-17 00:45:03", "openAiTemp": null,
"openAiHistory": 20, "lastUpdatedAt": "2023-08-17 00:45:03",
"openAiPrompt": null, "openAiHistory": 20,
"documents": [], "openAiPrompt": null,
"threads": [] "documents": [],
} "threads": []
}
]
} }
} }
} }

View File

@ -1473,18 +1473,20 @@
"schema": { "schema": {
"type": "object", "type": "object",
"example": { "example": {
"workspace": { "workspace": [
"id": 79, {
"name": "My workspace", "id": 79,
"slug": "my-workspace-123", "name": "My workspace",
"createdAt": "2023-08-17 00:45:03", "slug": "my-workspace-123",
"openAiTemp": null, "createdAt": "2023-08-17 00:45:03",
"lastUpdatedAt": "2023-08-17 00:45:03", "openAiTemp": null,
"openAiHistory": 20, "lastUpdatedAt": "2023-08-17 00:45:03",
"openAiPrompt": null, "openAiHistory": 20,
"documents": [], "openAiPrompt": null,
"threads": [] "documents": [],
} "threads": []
}
]
} }
} }
} }