mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01:00
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:
parent
4eeac2752b
commit
ccde891aa2
@ -150,18 +150,20 @@ function apiWorkspaceEndpoints(app) {
|
||||
schema: {
|
||||
type: 'object',
|
||||
example: {
|
||||
workspace: {
|
||||
"id": 79,
|
||||
"name": "My workspace",
|
||||
"slug": "my-workspace-123",
|
||||
"createdAt": "2023-08-17 00:45:03",
|
||||
"openAiTemp": null,
|
||||
"lastUpdatedAt": "2023-08-17 00:45:03",
|
||||
"openAiHistory": 20,
|
||||
"openAiPrompt": null,
|
||||
"documents": [],
|
||||
"threads": []
|
||||
}
|
||||
workspace: [
|
||||
{
|
||||
"id": 79,
|
||||
"name": "My workspace",
|
||||
"slug": "my-workspace-123",
|
||||
"createdAt": "2023-08-17 00:45:03",
|
||||
"openAiTemp": null,
|
||||
"lastUpdatedAt": "2023-08-17 00:45:03",
|
||||
"openAiHistory": 20,
|
||||
"openAiPrompt": null,
|
||||
"documents": [],
|
||||
"threads": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1473,18 +1473,20 @@
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"example": {
|
||||
"workspace": {
|
||||
"id": 79,
|
||||
"name": "My workspace",
|
||||
"slug": "my-workspace-123",
|
||||
"createdAt": "2023-08-17 00:45:03",
|
||||
"openAiTemp": null,
|
||||
"lastUpdatedAt": "2023-08-17 00:45:03",
|
||||
"openAiHistory": 20,
|
||||
"openAiPrompt": null,
|
||||
"documents": [],
|
||||
"threads": []
|
||||
}
|
||||
"workspace": [
|
||||
{
|
||||
"id": 79,
|
||||
"name": "My workspace",
|
||||
"slug": "my-workspace-123",
|
||||
"createdAt": "2023-08-17 00:45:03",
|
||||
"openAiTemp": null,
|
||||
"lastUpdatedAt": "2023-08-17 00:45:03",
|
||||
"openAiHistory": 20,
|
||||
"openAiPrompt": null,
|
||||
"documents": [],
|
||||
"threads": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user