Rewrite and response headers mentioned in OpenAPI.

This commit is contained in:
Andrei Zeliankou
2023-10-11 15:21:09 +01:00
parent 01d185cb52
commit c433a3c914

View File

@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: "NGINX Unit 1.30.0"
title: "NGINX Unit 1.31.0"
description: "NGINX Unit is a lightweight and versatile application runtime
that provides the essential components for your web application as a
single open-source server: running application code, serving static assets,
@@ -5904,6 +5904,12 @@ components:
description: "Destination to which the action passes
incoming requests."
rewrite:
$ref: "#/components/schemas/configRouteStepActionRewrite"
response_headers:
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
#/config/routes/{stepIndex}/action/proxy
#/config/routes/{routeName}/{stepIndex}/action/proxy
configRouteStepActionProxy:
@@ -5918,6 +5924,12 @@ components:
description: "Socket address of an HTTP server to where the request
is proxied."
rewrite:
$ref: "#/components/schemas/configRouteStepActionRewrite"
response_headers:
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
#/config/routes/{stepIndex}/action/return
#/config/routes/{routeName}/{stepIndex}/action/return
configRouteStepActionReturn:
@@ -5937,6 +5949,12 @@ components:
type: string
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/{routeName}/{stepIndex}/action/share
configRouteStepActionShare:
@@ -5979,6 +5997,28 @@ components:
description: "Turns on and off mount point resolution."
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 Units response before the
action is taken."
additionalProperties:
type: string
# /config/listeners/
configListeners:
type: object