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 | } -------------------------------------------------------------------------------- /AttachmentExampleService/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml: -------------------------------------------------------------------------------- 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 |-------------------------------------------------------------------------------- /AttachmentExampleService/Areas/HelpPage/Views/Help/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Description 3 | @using System.Collections.ObjectModel 4 | @using AttachmentExampleService.Areas.HelpPage.Models 5 | @model Collection
26 | Provide a general description of your APIs here. 27 |
28 |9 | ASP.NET Web API allows you to expose your applications, data and services to the 10 | web directly over HTTP. 11 |
12 |13 | To learn more about ASP.NET Web API visit the 14 | ASP.NET Web API Website. 15 | The page features videos, tutorials, and samples to help you get the most from ASP.NET Web API. 16 | If you have any questions about ASP.NET Web API, visit 17 | our forums. 18 |
19 |15 | ASP.NET Web API
16 |