Add server api definition

This commit is contained in:
2025-05-24 19:54:06 +02:00
commit a80465c6c1
37 changed files with 3842 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
using Microsoft.AspNetCore.Mvc;
using MusicCast.Net.Api.Server.Models;
namespace MusicCast.Net.Api.Server.Controllers;
[ApiController]
[Route("/YamahaExtendedControl/v1/main/")]
public class MainController
{
[HttpGet]
[Route("getStatus")]
public GetStatusResponse GetStatus()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getSignalInfo")]
public GetSignalInfoResponse GetSignalInfo()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("setVolume")]
public BaseResponse SetVolume([FromQuery] int volume)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("prepareInputChange")]
public BaseResponse PrepareInputChange([FromQuery] string input)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("setInput")]
public BaseResponse SetInput([FromQuery] string input)
{
throw new NotImplementedException();
}
[EndpointSummary("Shutdown after the specified interval in minutes")]
[HttpGet]
[Route("setSleep")]
public BaseResponse SetSleep([FromQuery] int sleep)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("setPower")]
public BaseResponse SetPower([FromQuery] PowerState power)
{
throw new NotImplementedException();
}
}