You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
7 months ago
|
@using System.Web.Http
|
||
|
@using System.Web.Http.Description
|
||
|
@using WebAPI.Areas.HelpPage.Models
|
||
|
@using WebAPI.Areas.HelpPage.ModelDescriptions
|
||
|
@model HelpPageApiModel
|
||
|
|
||
|
@{
|
||
|
ApiDescription description = Model.ApiDescription;
|
||
|
}
|
||
|
<h1>@description.HttpMethod.Method @description.RelativePath</h1>
|
||
|
<div>
|
||
|
<p>@description.Documentation</p>
|
||
|
|
||
|
<h2>Request Information</h2>
|
||
|
|
||
|
<h3>URI Parameters</h3>
|
||
|
@Html.DisplayFor(m => m.UriParameters, "Parameters")
|
||
|
|
||
|
<h3>Body Parameters</h3>
|
||
|
|
||
|
<p>@Model.RequestDocumentation</p>
|
||
|
|
||
|
@if (Model.RequestModelDescription != null)
|
||
|
{
|
||
|
@Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription })
|
||
|
if (Model.RequestBodyParameters != null)
|
||
|
{
|
||
|
@Html.DisplayFor(m => m.RequestBodyParameters, "Parameters")
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<p>None.</p>
|
||
|
}
|
||
|
|
||
|
@if (Model.SampleRequests.Count > 0)
|
||
|
{
|
||
|
<h3>Request Formats</h3>
|
||
|
@Html.DisplayFor(m => m.SampleRequests, "Samples")
|
||
|
}
|
||
|
|
||
|
<h2>Response Information</h2>
|
||
|
|
||
|
<h3>Resource Description</h3>
|
||
|
|
||
|
<p>@description.ResponseDescription.Documentation</p>
|
||
|
|
||
|
@if (Model.ResourceDescription != null)
|
||
|
{
|
||
|
@Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription })
|
||
|
if (Model.ResourceProperties != null)
|
||
|
{
|
||
|
@Html.DisplayFor(m => m.ResourceProperties, "Parameters")
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<p>None.</p>
|
||
|
}
|
||
|
|
||
|
@if (Model.SampleResponses.Count > 0)
|
||
|
{
|
||
|
<h3>Response Formats</h3>
|
||
|
@Html.DisplayFor(m => m.SampleResponses, "Samples")
|
||
|
}
|
||
|
|
||
|
</div>
|