Dashboards/search: improve openapi spec (#111575)

Co-authored-by: Clarity-89 <homes89@ukr.net>
This commit is contained in:
Ryan McKinley
2025-09-25 11:08:47 +00:00
committed by GitHub
co-authored by Clarity-89
parent 9d682ce774
commit 7b1413ec54
5 changed files with 125 additions and 37 deletions
@@ -1770,6 +1770,18 @@
"type": "string"
}
},
{
"name": "type",
"in": "query",
"description": "search dashboards or folders. When empty, this will search both",
"schema": {
"type": "string",
"enum": [
"folder",
"dashboard"
]
}
},
{
"name": "folder",
"in": "query",
@@ -1778,6 +1790,28 @@
"type": "string"
}
},
{
"name": "facet",
"in": "query",
"description": "count distinct terms for selected fields",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
{
"name": "tags",
"in": "query",
"description": "tag query filter",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
{
"name": "sort",
"in": "query",
@@ -1798,6 +1832,23 @@
"value": "title"
}
}
},
{
"name": "limit",
"in": "query",
"description": "number of results to return",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "explain",
"in": "query",
"description": "add debugging info that may help explain why the result matched",
"schema": {
"type": "boolean"
}
}
],
"responses": {