+ @Html.ActionLink("Help Page Home", "Index") +
+| API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | +
+ @if (api.Documentation != null)
+ {
+ @api.Documentation + } + else + { +No documentation available. + } + |
+
@description.Documentation
+ } + else + { +No documentation available.
+ } + + @if (hasParameters || hasRequestSamples) + { +Sample not available.
+} \ No newline at end of file diff --git a/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml b/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml new file mode 100644 index 0000000..6023df6 --- /dev/null +++ b/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml @@ -0,0 +1,42 @@ +@using System.Collections.ObjectModel +@using System.Web.Http.Description +@using System.Threading +@model Collection| Name | Description | Additional information |
|---|---|---|
| @parameter.Name | +@parameterDocumentation |
+
+ @switch (parameter.Source)
+ {
+ case ApiParameterSource.FromBody:
+ Define this parameter in the request body. + break; + case ApiParameterSource.FromUri: +Define this parameter in the request URI. + break; + case ApiParameterSource.Unknown: + default: +None. + break; + } + |
+
Sample not available.
+ } + else + { + @Html.DisplayFor(s => sample); + } + } ++@Model.Text +\ No newline at end of file diff --git a/Areas/HelpPage/Views/Help/Index.cshtml b/Areas/HelpPage/Views/Help/Index.cshtml new file mode 100644 index 0000000..22d7a34 --- /dev/null +++ b/Areas/HelpPage/Views/Help/Index.cshtml @@ -0,0 +1,40 @@ +@using System.Web.Http +@using System.Web.Http.Description +@using System.Collections.ObjectModel +@using JSGridWebAPISample.Areas.HelpPage.Models +@model Collection
+ Provide a general description of your APIs here. +
+| t |