chore(api)!: Add a parameter to inspect to only list v1 apis by default

use parameter api_filter to pick from v1, v1alpha, v1beta, deprecated
This commit is contained in:
Raghotham Murthy 2025-10-28 14:13:55 -07:00
parent 467801b78b
commit 73e860a6e6
8 changed files with 152 additions and 20 deletions

View file

@ -1258,7 +1258,23 @@
],
"summary": "List routes.",
"description": "List routes.\nList all available API routes with their methods and implementing providers.",
"parameters": [],
"parameters": [
{
"name": "api_filter",
"in": "query",
"description": "Optional filter to control which routes are returned. Can be an API level ('v1', 'v1alpha', 'v1beta') to show non-deprecated routes at that level, or 'deprecated' to show deprecated routes across all levels. If not specified, returns only non-deprecated v1 routes.",
"required": false,
"schema": {
"type": "string",
"enum": [
"v1",
"v1alpha",
"v1beta",
"deprecated"
]
}
}
],
"deprecated": false
}
},