ServiceStack.Host.MetadataTypeExtensions.GetRequestParamType C# (CSharp) Method

GetRequestParamType() private static method

private static GetRequestParamType ( Operation op, string name, string defaultType = "body" ) : string
op Operation
name string
defaultType string
return string
        private static string GetRequestParamType(Operation op, string name, string defaultType = "body")
        {
            if (op.Routes.Any(x => x.IsVariable(name)))
                return "path";

            return !op.Routes.Any(x => x.Verbs.Contains(HttpMethods.Post) || x.Verbs.Contains(HttpMethods.Put))
                       ? "query"
                       : defaultType;
        }