Kgateway DirectResponse API
Configure Gateways to directly respond to incoming requests with a custom HTTP response code and body without forwarding to a backend service.
Kgateway DirectResponse API is one of 7 APIs that Kgateway publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
This API exposes 7 JSON Schema definitions.
Tagged areas include DirectResponse. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 7 JSON Schemas.
This API exposes 5 operations across 2 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 2.1.0.
Requests are made against a single base URL, https://{kubernetes-api-server}/apis/gateway.kgateway.dev/v1alpha1.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Kgateway DirectResponse API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (BearerAuth).
By default, every request must be authenticated.
BearerAuth— Kubernetes API bearer token authentication. Use a service account token or kubeconfig token.
Paths & Operations 5
Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.
Configure Gateways to directly respond to incoming requests with a custom HTTP response code and body without forwarding to a backend service.
Schemas 3
The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are ObjectMeta (6 properties), DirectResponse (5 properties), DirectResponseList (4 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Kgateway 6
Other APIs Kgateway publishes across the network.