patch swagger
This commit is contained in:
parent
3fd0fe8fc5
commit
defeb96c38
@ -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
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user