MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / IsRestfulParam

Function IsRestfulParam

common/regexp.go:123–125  ·  view source on GitHub ↗

IsRestfulParam 检查是否为restful参数

(param string)

Source from the content-addressed store, hash-verified

121
122// IsRestfulParam 检查是否为restful参数
123func IsRestfulParam(param string) bool {
124 return restfulParamMatchRegexp.MatchString(param)
125}
126
127// ReplaceRestfulPath 将restful路径转换成apinto的正则匹配路径
128func ReplaceRestfulPath(path, replaceStr string) string {

Callers 1

formatProxyPathFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected