mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
Add OpenAPI attributes to additional request handlers for comprehensive coverage
Co-authored-by: andrew-welker <1765622+andrew-welker@users.noreply.github.com>
This commit is contained in:
@@ -3,9 +3,16 @@ using Crestron.SimplSharp.WebScripting;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
using PepperDash.Core.Web.RequestHandlers;
|
using PepperDash.Core.Web.RequestHandlers;
|
||||||
|
using PepperDash.Essentials.Core.Web.Attributes;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||||
{
|
{
|
||||||
|
[HttpPost]
|
||||||
|
[OpenApiOperation(
|
||||||
|
Summary = "Load Config",
|
||||||
|
Description = "Load configuration",
|
||||||
|
OperationId = "loadConfig")]
|
||||||
|
[OpenApiResponse(200, Description = "Configuration load initiated successfully")]
|
||||||
public class LoadConfigRequestHandler : WebApiBaseRequestHandler
|
public class LoadConfigRequestHandler : WebApiBaseRequestHandler
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -2,9 +2,17 @@
|
|||||||
using Crestron.SimplSharp.WebScripting;
|
using Crestron.SimplSharp.WebScripting;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PepperDash.Core.Web.RequestHandlers;
|
using PepperDash.Core.Web.RequestHandlers;
|
||||||
|
using PepperDash.Essentials.Core.Web.Attributes;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||||
{
|
{
|
||||||
|
[HttpGet]
|
||||||
|
[OpenApiOperation(
|
||||||
|
Summary = "ReportVersions",
|
||||||
|
Description = "Get version information for loaded assemblies",
|
||||||
|
OperationId = "getVersions")]
|
||||||
|
[OpenApiResponse(200, Description = "List of loaded assemblies with version information")]
|
||||||
|
[OpenApiResponse(500, Description = "Internal Server Error")]
|
||||||
public class ReportVersionsRequestHandler : WebApiBaseRequestHandler
|
public class ReportVersionsRequestHandler : WebApiBaseRequestHandler
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -2,9 +2,16 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PepperDash.Core.Web.RequestHandlers;
|
using PepperDash.Core.Web.RequestHandlers;
|
||||||
using PepperDash.Essentials.Core.Config;
|
using PepperDash.Essentials.Core.Config;
|
||||||
|
using PepperDash.Essentials.Core.Web.Attributes;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||||
{
|
{
|
||||||
|
[HttpGet]
|
||||||
|
[OpenApiOperation(
|
||||||
|
Summary = "ShowConfig",
|
||||||
|
Description = "Retrieve the current system configuration",
|
||||||
|
OperationId = "getConfig")]
|
||||||
|
[OpenApiResponse(200, Description = "Current system configuration")]
|
||||||
public class ShowConfigRequestHandler : WebApiBaseRequestHandler
|
public class ShowConfigRequestHandler : WebApiBaseRequestHandler
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user