Rewrite and response headers mentioned in OpenAPI.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: "NGINX Unit 1.30.0"
|
title: "NGINX Unit 1.31.0"
|
||||||
description: "NGINX Unit is a lightweight and versatile application runtime
|
description: "NGINX Unit is a lightweight and versatile application runtime
|
||||||
that provides the essential components for your web application as a
|
that provides the essential components for your web application as a
|
||||||
single open-source server: running application code, serving static assets,
|
single open-source server: running application code, serving static assets,
|
||||||
@@ -5904,6 +5904,12 @@ components:
|
|||||||
description: "Destination to which the action passes
|
description: "Destination to which the action passes
|
||||||
incoming requests."
|
incoming requests."
|
||||||
|
|
||||||
|
rewrite:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionRewrite"
|
||||||
|
|
||||||
|
response_headers:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
|
||||||
|
|
||||||
#/config/routes/{stepIndex}/action/proxy
|
#/config/routes/{stepIndex}/action/proxy
|
||||||
#/config/routes/{routeName}/{stepIndex}/action/proxy
|
#/config/routes/{routeName}/{stepIndex}/action/proxy
|
||||||
configRouteStepActionProxy:
|
configRouteStepActionProxy:
|
||||||
@@ -5918,6 +5924,12 @@ components:
|
|||||||
description: "Socket address of an HTTP server to where the request
|
description: "Socket address of an HTTP server to where the request
|
||||||
is proxied."
|
is proxied."
|
||||||
|
|
||||||
|
rewrite:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionRewrite"
|
||||||
|
|
||||||
|
response_headers:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
|
||||||
|
|
||||||
#/config/routes/{stepIndex}/action/return
|
#/config/routes/{stepIndex}/action/return
|
||||||
#/config/routes/{routeName}/{stepIndex}/action/return
|
#/config/routes/{routeName}/{stepIndex}/action/return
|
||||||
configRouteStepActionReturn:
|
configRouteStepActionReturn:
|
||||||
@@ -5937,6 +5949,12 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
description: "URI; used if the return value implies redirection."
|
description: "URI; used if the return value implies redirection."
|
||||||
|
|
||||||
|
rewrite:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionRewrite"
|
||||||
|
|
||||||
|
response_headers:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
|
||||||
|
|
||||||
#/config/routes/{stepIndex}/action/share
|
#/config/routes/{stepIndex}/action/share
|
||||||
#/config/routes/{routeName}/{stepIndex}/action/share
|
#/config/routes/{routeName}/{stepIndex}/action/share
|
||||||
configRouteStepActionShare:
|
configRouteStepActionShare:
|
||||||
@@ -5979,6 +5997,28 @@ components:
|
|||||||
description: "Turns on and off mount point resolution."
|
description: "Turns on and off mount point resolution."
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
|
rewrite:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionRewrite"
|
||||||
|
|
||||||
|
response_headers:
|
||||||
|
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
|
||||||
|
|
||||||
|
#/config/routes/{stepIndex}/action/rewrite
|
||||||
|
#/config/routes/{routeName}/{stepIndex}/action/rewrite
|
||||||
|
configRouteStepActionRewrite:
|
||||||
|
type: string
|
||||||
|
description: "Updates the URI of the incoming request before the action
|
||||||
|
is applied."
|
||||||
|
|
||||||
|
#/config/routes/{stepIndex}/action/response_headers
|
||||||
|
#/config/routes/{routeName}/{stepIndex}/action/response_headers
|
||||||
|
configRouteStepActionResponseHeaders:
|
||||||
|
type: object
|
||||||
|
description: "Updates the header fields of Unit’s response before the
|
||||||
|
action is taken."
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
|
||||||
# /config/listeners/
|
# /config/listeners/
|
||||||
configListeners:
|
configListeners:
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user