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,7 +150,8 @@ function apiWorkspaceEndpoints(app) {
|
|||||||
schema: {
|
schema: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
example: {
|
example: {
|
||||||
workspace: {
|
workspace: [
|
||||||
|
{
|
||||||
"id": 79,
|
"id": 79,
|
||||||
"name": "My workspace",
|
"name": "My workspace",
|
||||||
"slug": "my-workspace-123",
|
"slug": "my-workspace-123",
|
||||||
@ -162,6 +163,7 @@ function apiWorkspaceEndpoints(app) {
|
|||||||
"documents": [],
|
"documents": [],
|
||||||
"threads": []
|
"threads": []
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1473,7 +1473,8 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"example": {
|
"example": {
|
||||||
"workspace": {
|
"workspace": [
|
||||||
|
{
|
||||||
"id": 79,
|
"id": 79,
|
||||||
"name": "My workspace",
|
"name": "My workspace",
|
||||||
"slug": "my-workspace-123",
|
"slug": "my-workspace-123",
|
||||||
@ -1485,6 +1486,7 @@
|
|||||||
"documents": [],
|
"documents": [],
|
||||||
"threads": []
|
"threads": []
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user