14 | @Html.ActionLink("Help Page Home", "Index") 15 |
16 |API | Description |
---|---|
@api.HttpMethod.Method @api.RelativePath | 17 |
18 | @if (api.Documentation != null)
19 | {
20 | @api.Documentation 21 | } 22 | else 23 | { 24 |No documentation available. 25 | } 26 | |
27 |
@description.Documentation
16 | } 17 | else 18 | { 19 |No documentation available.
20 | } 21 | 22 | @if (hasParameters || hasRequestSamples) 23 | { 24 |Sample not available.
13 | } -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.HelpPage.4.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Collections.ObjectModel 2 | @using System.Web.Http.Description 3 | @using System.Threading 4 | @model CollectionName | Description | Additional information |
---|---|---|
@parameter.Name | 22 |@parameterDocumentation |
23 |
24 | @switch (parameter.Source)
25 | {
26 | case ApiParameterSource.FromBody:
27 | Define this parameter in the request body. 28 | break; 29 | case ApiParameterSource.FromUri: 30 |Define this parameter in the request URI. 31 | break; 32 | case ApiParameterSource.Unknown: 33 | default: 34 |None. 35 | break; 36 | } 37 | |
38 |
Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |5 | @Model.Text 6 |-------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.HelpPage.4.0.0/content/Areas/HelpPage/Views/Help/Index.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Description 3 | @using System.Collections.ObjectModel 4 | @using $rootnamespace$.Areas.HelpPage.Models 5 | @model Collection
26 | Provide a general description of your APIs here. 27 |
28 |