66
77paths :
88
9-
109 /callback/{token}/ :
1110 post :
1211 operationId : callback
@@ -44,17 +43,25 @@ paths:
4443 isPublic : true
4544 matchSubpath : false
4645 backend :
46+ type : HTTP
4747 name : default
4848 method : post
49+ {% if settings.BK_PLUGIN_APIGW_BACKEND_SUB_PATH %}
50+ path : /{env.api_sub_path}bk_plugin/callback/{token}/
51+ {% else %}
4952 path : /bk_plugin/callback/{token}/
53+ {% endif %}
5054 matchSubpath : false
5155 timeout : 0
56+ upstreams : {}
57+ transformHeaders : {}
5258 pluginConfigs : []
5359 allowApplyPermission : true
5460 authConfig :
5561 userVerifiedRequired : false
5662 appVerifiedRequired : true
5763 resourcePermissionRequired : true
64+ disabledStages : []
5865 descriptionEn : plugin callback
5966
6067 /invoke/{version} :
@@ -94,17 +101,25 @@ paths:
94101 isPublic : true
95102 matchSubpath : false
96103 backend :
104+ type : HTTP
97105 name : default
98106 method : post
107+ {% if settings.BK_PLUGIN_APIGW_BACKEND_SUB_PATH %}
108+ path : /{env.api_sub_path}bk_plugin/invoke/{version}
109+ {% else %}
99110 path : /bk_plugin/invoke/{version}
111+ {% endif %}
100112 matchSubpath : false
101113 timeout : 0
114+ upstreams : {}
115+ transformHeaders : {}
102116 pluginConfigs : []
103117 allowApplyPermission : true
104118 authConfig :
105119 userVerifiedRequired : false
106120 appVerifiedRequired : true
107121 resourcePermissionRequired : true
122+ disabledStages : []
108123 descriptionEn : Invoke specific version plugin
109124 /bk_plugin/plugin_api/ :
110125 x-bk-apigateway-method-any :
@@ -124,17 +139,54 @@ paths:
124139 type : HTTP
125140 name : default
126141 method : any
142+ {% if settings.BK_PLUGIN_APIGW_BACKEND_SUB_PATH %}
143+ path : /{env.api_sub_path}bk_plugin/plugin_api/
144+ {% else %}
127145 path : /bk_plugin/plugin_api/
146+ {% endif %}
128147 matchSubpath : true
129148 timeout : 0
130- upstreams : { }
131- transformHeaders : { }
149+ upstreams : {}
150+ transformHeaders : {}
132151 authConfig :
133152 userVerifiedRequired : true
134153 appVerifiedRequired : false
135- disabledStages : [ ]
154+ disabledStages : []
136155 descriptionEn : Plugin custom API entry
137156
157+ /bk_plugin/openapi/ :
158+ x-bk-apigateway-method-any :
159+ operationId : plugin_openapi
160+ summary : 插件开放API
161+ description : 插件开放 API 入口,支持子路径匹配
162+ tags :
163+ - openapi
164+ responses :
165+ default :
166+ description : ' 插件开放API响应'
167+ x-bk-apigateway-resource :
168+ isPublic : true
169+ allowApplyPermission : true
170+ matchSubpath : true
171+ backend :
172+ type : HTTP
173+ name : default
174+ method : any
175+ {% if settings.BK_PLUGIN_APIGW_BACKEND_SUB_PATH %}
176+ path : /{env.api_sub_path}bk_plugin/openapi/
177+ {% else %}
178+ path : /bk_plugin/openapi/
179+ {% endif %}
180+ matchSubpath : true
181+ timeout : 0
182+ upstreams : {}
183+ transformHeaders : {}
184+ authConfig :
185+ userVerifiedRequired : false
186+ appVerifiedRequired : true
187+ disabledStages : []
188+ descriptionEn : Plugin open API entry
189+
138190 /plugin_api_dispatch/ :
139191 post :
140192 operationId : plugin_api_dispatch
@@ -165,17 +217,25 @@ paths:
165217 isPublic : true
166218 matchSubpath : false
167219 backend :
220+ type : HTTP
168221 name : default
169222 method : post
223+ {% if settings.BK_PLUGIN_APIGW_BACKEND_SUB_PATH %}
224+ path : /{env.api_sub_path}bk_plugin/plugin_api_dispatch/
225+ {% else %}
170226 path : /bk_plugin/plugin_api_dispatch/
227+ {% endif %}
171228 matchSubpath : false
172229 timeout : 0
230+ upstreams : {}
231+ transformHeaders : {}
173232 pluginConfigs : []
174233 allowApplyPermission : true
175234 authConfig :
176235 userVerifiedRequired : false
177236 appVerifiedRequired : true
178237 resourcePermissionRequired : true
238+ disabledStages : []
179239 descriptionEn : Plugin API dispatch
180240
181241components :
0 commit comments