mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 09:15:06 +00:00
Add OpenAPI attributes to all remaining request handlers
Co-authored-by: andrew-welker <1765622+andrew-welker@users.noreply.github.com>
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
using Crestron.SimplSharp.WebScripting;
|
||||
using Newtonsoft.Json;
|
||||
using PepperDash.Core.Web.RequestHandlers;
|
||||
using PepperDash.Essentials.Core.Web.Attributes;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||
{
|
||||
public class GetRoutingPortsHandler : WebApiBaseRequestHandler
|
||||
[HttpGet]
|
||||
[OpenApiOperation(
|
||||
Summary = "Get Routing Ports for a device",
|
||||
Description = "Retrieve routing input and output ports for a specific device",
|
||||
OperationId = "getDeviceRoutingPorts")]
|
||||
[OpenApiParameter("deviceKey", Description = "The key of the device")]
|
||||
[OpenApiResponse(200, Description = "Successful response", ContentType = "application/json")]
|
||||
[OpenApiResponse(400, Description = "Bad Request")]
|
||||
[OpenApiResponse(404, Description = "Device not found")]
|
||||
public class GetRoutingPortsHandler : WebApiBaseRequestHandler
|
||||
{
|
||||
public GetRoutingPortsHandler() : base(true) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user