Files
APIPark/resources/plugin/render/eolinker_com_apinto_counter.json
T
2024-08-12 21:38:09 +08:00

1 line
1.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"group":"eolinker.com","project":"apinto","name":"counter","version":"innert","render":{"type":"object","eo:type":"object","properties":{"cache":{"type":"string","eo:type":"require","skill":"github.com/eolinker/apinto/resources.resources.ICache","label":"缓存计数器"},"count":{"type":"object","eo:type":"object","properties":{"key":{"type":"string","eo:type":"string","label":"参数名称(支持json path"},"max":{"type":"integer","eo:type":"integer","format":"int64","label":"计数最大值"},"request_body_type":{"type":"string","eo:type":"string","enum":["form-data","json","multipart-formdata"],"label":"请求体类型"},"separator":{"type":"string","eo:type":"string","switch":"separator_type===splite","label":"分隔符"},"separator_type":{"type":"string","eo:type":"string","enum":["splite","array","length"],"label":"分割类型"}},"ui:sort":["request_body_type","key","separator","separator_type","max"],"label":"计数规则"},"key":{"type":"string","eo:type":"string","label":"格式化Key"},"match":{"type":"object","eo:type":"object","properties":{"params":{"type":"array","eo:type":"array","items":{"type":"object","eo:type":"object","properties":{"key":{"type":"string","eo:type":"string"},"kind":{"type":"string","eo:type":"string","enum":["int","string","bool"],"default":"string"},"value":{"type":"array","eo:type":"array","items":{"type":"string","eo:type":"string"}}},"ui:sort":["key","kind","value"]},"label":"匹配参数列表"},"status_codes":{"type":"array","eo:type":"array","items":{"type":"integer","eo:type":"integer","format":"int32"},"label":"匹配响应状态码列表"},"type":{"type":"string","eo:type":"string","enum":["json"],"label":"匹配类型"}},"ui:sort":["params","status_codes","type"],"label":"响应匹配规则"}},"ui:sort":["key","cache","match","count"],"required":["key"]}}