v1
latestOpenAPI 3.1.12026-07-1744285.2 KBgateway
Get all routes
get/api/v2/namespaces/{namespace}/gateway/routes
Path parameters
namespacestring required
Query parameters
pathstring
Filter result by path string
Response
Routes for gateway in the namespace
Example response
{
"data": [
{
"file_path": "/my/path.yaml",
"path": "/my/path/{id}",
"spec": {
"x-direktiv-config": {
"plugins": {
"outbound": [
{
"type": "js-outbound",
"configuration": {
"script": "sleep(5)"
}
}
],
"inbound": [
{
"type": "acl",
"configuration": {
"allowed-groups": [
"group1",
"group2"
]
}
}
],
"auth": [
{
"type": "basic-auth",
"configuration": {
"add_username_header": true
}
}
],
"target": {
"type": "target-flow",
"configuration": {
"flow": "/directory/myflow.yaml"
}
}
}
}
},
"warnings": [
"no target plugin set"
]
}
]
}