patch swagger

This commit is contained in:
timothycarambat 2025-02-18 16:02:55 -08:00
parent 3fd0fe8fc5
commit defeb96c38
2 changed files with 56 additions and 3 deletions

View File

@ -423,9 +423,16 @@ function apiDocumentEndpoints(app) {
cached: false,
pinnedWorkspaces: [],
watched: false,
// ... other document metadata
more: "data",
},
{
name: "document2.json",
type: "file",
cached: false,
pinnedWorkspaces: [],
watched: false,
more: "data",
},
// more documents
]
}
}

View File

@ -1142,8 +1142,54 @@
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"example": {
"folder": "custom-documents",
"documents": [
{
"name": "document1.json",
"type": "file",
"cached": false,
"pinnedWorkspaces": [],
"watched": false,
"more": "data"
},
{
"name": "document2.json",
"type": "file",
"cached": false,
"pinnedWorkspaces": [],
"watched": false,
"more": "data"
}
]
}
}
}
}
},
"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"
}
}
}