Skip to content

Commit 9e6928a

Browse files
committed
feat: add custom-phase-demo plugin to httpbin
1 parent 1c14336 commit 9e6928a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

openapi/httpbin.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,28 @@ paths:
7272
'200':
7373
description: OK
7474

75+
/custom-plugin/{path*}:
76+
get:
77+
summary: Demonstrate custom-phase-demo plugin
78+
description: |
79+
Routes through APISIX with the custom plugin enabled. The plugin strips the `/custom-plugin`
80+
prefix, injects headers, appends a response body marker, and logs upstream details.
81+
tags: [httpbin]
82+
x-adc-name: httpbin_custom_plugin
83+
x-adc-plugins:
84+
custom-phase-demo:
85+
message: hello-from-custom-plugin
86+
append_body: true
87+
strip_uri_prefix: /custom-plugin
88+
parameters:
89+
- in: path
90+
name: path*
91+
required: false
92+
schema:
93+
type: string
94+
description: Remaining path passed to httpbin after `/custom-plugin` is stripped.
95+
responses:
96+
'200':
97+
description: OK
98+
7599
components: {}

0 commit comments

Comments
 (0)