Add some API attributes

This commit is contained in:
Qstick 2023-05-29 21:52:20 -05:00
parent 1d034d8099
commit d400685cd1
24 changed files with 46 additions and 1 deletions

View file

@ -40,6 +40,7 @@ namespace Lidarr.Api.V1.RemotePathMappings
}
[RestPostById]
[Consumes("application/json")]
public ActionResult<RemotePathMappingResource> CreateMapping(RemotePathMappingResource resource)
{
var model = resource.ToModel();
@ -48,6 +49,7 @@ namespace Lidarr.Api.V1.RemotePathMappings
}
[HttpGet]
[Produces("application/json")]
public List<RemotePathMappingResource> GetMappings()
{
return _remotePathMappingService.All().ToResource();