|
@model AspWithAzureExtensions.Areas.HelpPage.Models.HelpPageApiModel
@{
var description = Model.ApiDescription;
bool hasParameters = description.ParameterDescriptions.Count > 0;
bool hasRequestSamples = Model.SampleRequests.Count > 0;
bool hasResponseSamples = Model.SampleResponses.Count > 0;
}
<h1>@description.HttpMethod.Method @description.RelativePath</h1>
<div>
@if (description.Documentation != null)
{
<p>@description.Documentation</p>
}
else
{
<p>No documentation available.</p>
}
@if (hasParameters || hasRequestSamples)
{
<h2>Request Information</h2>
if (hasParameters)
{
<h3>Parameters</h3>
@Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters")
}
if (hasRequestSamples)
{
<h3>Request body formats</h3>
@Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples")
}
}
@if (hasResponseSamples)
{
<h2>Response Information</h2>
<h3>Response body formats</h3>
@Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples")
}
</div>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Software engineer with an application development experience.
MCSD: Web Applications
MCSD: Windows Store Apps Using C#