Exemple #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 : "");
        }
Exemple #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) : "");
        }