mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
{"group":"eolinker.com","project":"apinto","name":"proxy_rewrite_v2","version":"innert","render":{"type":"object","eo:type":"object","properties":{"headers":{"type":"object","eo:type":"map","additionalProperties":{"type":"string","eo:type":"string"},"label":"请求头部"},"host":{"type":"string","eo:type":"string","switch":"host_rewrite===true","label":"Host"},"host_rewrite":{"type":"boolean","eo:type":"boolean","label":"是否重写host"},"not_match_err":{"type":"boolean","eo:type":"boolean","label":"path替换失败不进行转发"},"path_type":{"type":"string","eo:type":"string","enum":["none","static","prefix","regex"],"label":"path重写类型"},"prefix_path":{"type":"array","eo:type":"array","items":{"type":"object","eo:type":"object","properties":{"prefix_path_match":{"type":"string","eo:type":"string","label":"path前缀匹配字符串"},"prefix_path_replace":{"type":"string","eo:type":"string","label":"path前缀替换字符串"}},"ui:sort":["prefix_path_match","prefix_path_replace"]},"switch":"path_type==='prefix'","label":"path前缀替换"},"regex_path":{"type":"array","eo:type":"array","items":{"type":"object","eo:type":"object","properties":{"regex_path_match":{"type":"string","eo:type":"string","label":"path正则匹配表达式"},"regex_path_replace":{"type":"string","eo:type":"string","label":"path正则替换表达式"}},"ui:sort":["regex_path_match","regex_path_replace"]},"switch":"path_type==='regex'","label":"path正则替换"},"static_path":{"type":"string","eo:type":"string","switch":"path_type==='static'","label":"静态path"}},"ui:sort":["path_type","static_path","prefix_path","regex_path","not_match_err","host_rewrite","host","headers"]}} |