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":"response_rewrite_v2","version":"innert","render":{"type":"object","eo:type":"object","properties":{"matches":{"type":"array","eo:type":"array","items":{"type":"object","eo:type":"object","properties":{"match_body":{"type":"object","eo:type":"object","properties":{"content":{"type":"string","eo:type":"string","label":"匹配内容"},"match_type":{"type":"string","eo:type":"string","enum":["equal","contain","prefix","suffix","regex"],"label":"匹配类型"}},"ui:sort":["content","match_type"],"label":"响应体匹配规则"},"match_headers":{"type":"array","eo:type":"array","items":{"type":"object","eo:type":"object","properties":{"content":{"type":"string","eo:type":"string","label":"匹配内容"},"header_key":{"type":"string","eo:type":"string","label":"响应头Key"},"match_type":{"type":"string","eo:type":"string","enum":["equal","contain","prefix","suffix","regex"],"label":"匹配类型"}},"ui:sort":["content","match_type","header_key"]},"label":"响应头匹配规则"},"match_status_code":{"type":"integer","eo:type":"integer","description":"最小值:100","format":"int32","default":200,"minimum":100,"label":"匹配状态码"},"response_rewrite":{"type":"object","eo:type":"object","properties":{"body":{"type":"string","eo:type":"string","label":"响应体"},"headers":{"type":"object","eo:type":"map","additionalProperties":{"type":"string","eo:type":"string"}},"status_code":{"type":"integer","eo:type":"integer","format":"int32","default":200,"label":"响应状态码"}},"ui:sort":["body","status_code","headers"],"label":"重写响应内容"}},"ui:sort":["match_status_code","match_headers","match_body","response_rewrite"]},"label":"响应匹配规则"}},"ui:sort":["matches"]}} |