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