OpenAPI Extensions
OpenAPI Extensions available to configure APIs.
OpenAPIExtension
Metadata describing an extension to the OpenAPI spec.
Field | Description | Validation Rule |
---|---|---|
name | string | – |
appliesTo | List of string | – |
required | bool | – |
OpenAPIExtensions
Available OpenAPI extensions to configure APi Gateway features in Service Bridge.
Field | Description | Validation Rule |
---|---|---|
x-tsb-service | string This service name will be used to generate all the routes for traffic coming to the associated paths. OpenAPI extension name: x-tsb-service Example:
| – |
x-tsb-redirect | tetrateio.api.tsb.gateway.v2.Redirect OpenAPI extension name: x-tsb-redirect Example:
| – |
x-tsb-tls | tetrateio.api.tsb.gateway.v2.ServerTLSSettings OpenAPI extension name: x-tsb-redirect Example:
| – |
x-tsb-cors | tetrateio.api.tsb.gateway.v2.CorsPolicy OpenAPI extension name: x-tsb-cors Example:
| – |
x-tsb-authentication | tetrateio.api.tsb.auth.v2.Authentication OpenAPI extension name: x-tsb-authentication Example:
| – |
x-tsb-external-authorization | tetrateio.api.tsb.auth.v2.Authorization.ExternalAuthzBackend OpenAPI extension name: x-tsb-external-authorization Example:
| – |
x-tsb-jwt-authorization | tetrateio.api.tsb.application.v2.OpenAPIExtensions.JWTAuthz Note that if this is configured, the This can be applied at the server or path level. When applied at the server level, the authorization rules will be enforced for all paths in that server. OpenAPI extension name: x-tsb-jwt-authorization Example:
| – |
x-tsb-ratelimiting | tetrateio.api.tsb.gateway.v2.RateLimitSettings This can be applied at the server, path and operation level.
Each rate limit setting is independent of the other.
Top level fields such as OpenAPI extension name: x-tsb-ratelimiting Example:
| – |
x-tsb-external-ratelimiting | tetrateio.api.tsb.gateway.v2.ExternalRateLimitServiceSettings OpenAPI extension name: x-tsb-external-ratelimiting Example:
| – |
JWTAuthz
Configures authorization rules based on the JWT token in an incoming request.
Field | Description | Validation Rule |
---|---|---|
claims | List of tetrateio.api.tsb.auth.v2.Subject.JWTClaims | – |