Files
C4IT-F4SD-Collector/F4SDwebService/Publish/Areas/HelpPage/Views/Help/Index.cshtml
2025-11-11 11:12:05 +01:00

38 lines
1.1 KiB
Plaintext

@using System.Web.Http
@using System.Web.Http.Controllers
@using System.Web.Http.Description
@using System.Collections.ObjectModel
@using F4SDwebService.Areas.HelpPage.Models
@model Collection<ApiDescription>
@{
ViewBag.Title = "F4SD Web API Help Page";
// Group APIs by controller
ILookup<HttpControllerDescriptor, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
}
<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
<header class="help-page">
<div class="content-wrapper">
<h1>@ViewBag.Title<br></h1>
</div>
</header>
<div id="body" class="help-page">
<section class="featured">
<div class="content-wrapper">
<h2></h2>
<p>
Provide a general description of the APIs here.
</p>
</div>
</section>
<section class="content-wrapper main-content clear-fix">
<br>
@foreach (var group in apiGroups)
{
@Html.DisplayFor(m => group, "ApiGroup")
}
</section>
</div>