コード例 #1
0
        private string RequestBody_Description(DocumentorContext context, params object[] parameters)
        {
            MethodInfo restMethod = parameters[0] as MethodInfo;
            RequestBodyDescriptionAttribute attr = restMethod.GetRadishAttribute <RequestBodyDescriptionAttribute>();

            return(attr != null ? attr.Description : "");
        }
コード例 #2
0
        private string Method_RequestBody(DocumentorContext context, params object[] parameters)
        {
            MethodInfo restMethod = parameters[0] as MethodInfo;
            RequestBodyDescriptionAttribute attr = restMethod.GetRadishAttribute <RequestBodyDescriptionAttribute>();

            return(attr != null ? context.RenderTemplate <BasicTemplateSet>(ts => ts.RequestBodyDescription, restMethod) : "");
        }