Skip to content

Commit c433a3c

Browse files
Rewrite and response headers mentioned in OpenAPI.
1 parent 01d185c commit c433a3c

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

docs/unit-openapi.yaml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
title: "NGINX Unit 1.30.0"
3+
title: "NGINX Unit 1.31.0"
44
description: "NGINX Unit is a lightweight and versatile application runtime
55
that provides the essential components for your web application as a
66
single open-source server: running application code, serving static assets,
@@ -5904,6 +5904,12 @@ components:
59045904
description: "Destination to which the action passes
59055905
incoming requests."
59065906

5907+
rewrite:
5908+
$ref: "#/components/schemas/configRouteStepActionRewrite"
5909+
5910+
response_headers:
5911+
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
5912+
59075913
#/config/routes/{stepIndex}/action/proxy
59085914
#/config/routes/{routeName}/{stepIndex}/action/proxy
59095915
configRouteStepActionProxy:
@@ -5918,6 +5924,12 @@ components:
59185924
description: "Socket address of an HTTP server to where the request
59195925
is proxied."
59205926

5927+
rewrite:
5928+
$ref: "#/components/schemas/configRouteStepActionRewrite"
5929+
5930+
response_headers:
5931+
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
5932+
59215933
#/config/routes/{stepIndex}/action/return
59225934
#/config/routes/{routeName}/{stepIndex}/action/return
59235935
configRouteStepActionReturn:
@@ -5937,6 +5949,12 @@ components:
59375949
type: string
59385950
description: "URI; used if the return value implies redirection."
59395951

5952+
rewrite:
5953+
$ref: "#/components/schemas/configRouteStepActionRewrite"
5954+
5955+
response_headers:
5956+
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
5957+
59405958
#/config/routes/{stepIndex}/action/share
59415959
#/config/routes/{routeName}/{stepIndex}/action/share
59425960
configRouteStepActionShare:
@@ -5979,6 +5997,28 @@ components:
59795997
description: "Turns on and off mount point resolution."
59805998
default: true
59815999

6000+
rewrite:
6001+
$ref: "#/components/schemas/configRouteStepActionRewrite"
6002+
6003+
response_headers:
6004+
$ref: "#/components/schemas/configRouteStepActionResponseHeaders"
6005+
6006+
#/config/routes/{stepIndex}/action/rewrite
6007+
#/config/routes/{routeName}/{stepIndex}/action/rewrite
6008+
configRouteStepActionRewrite:
6009+
type: string
6010+
description: "Updates the URI of the incoming request before the action
6011+
is applied."
6012+
6013+
#/config/routes/{stepIndex}/action/response_headers
6014+
#/config/routes/{routeName}/{stepIndex}/action/response_headers
6015+
configRouteStepActionResponseHeaders:
6016+
type: object
6017+
description: "Updates the header fields of Unit’s response before the
6018+
action is taken."
6019+
additionalProperties:
6020+
type: string
6021+
59826022
# /config/listeners/
59836023
configListeners:
59846024
type: object

0 commit comments

Comments
 (0)