@using System.Web.Http @using Authentication_test.Areas.HelpPage.Models @model HelpPageApiModel @{ var description = Model.ApiDescription; bool hasParameters = description.ParameterDescriptions.Count > 0; bool hasRequestSamples = Model.SampleRequests.Count > 0; bool hasResponseSamples = Model.SampleResponses.Count > 0; }

@description.HttpMethod.Method @description.RelativePath

@if (description.Documentation != null) {

@description.Documentation

} else {

No documentation available.

} @if (hasParameters || hasRequestSamples) {

Request Information

if (hasParameters) {

Parameters

@Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters") } if (hasRequestSamples) {

Request body formats

@Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples") } } @if (hasResponseSamples) {

Response Information

if (description.ResponseDescription.Documentation != null) {

@description.ResponseDescription.Documentation

} else {

No documentation available.

}

Response body formats

@Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples") }