Add some API attributes

This commit is contained in:
Bogdan
2023-05-30 06:39:51 +03:00
parent a1081cc554
commit f0d9b43480
24 changed files with 49 additions and 0 deletions
@@ -87,6 +87,7 @@ namespace Prowlarr.Api.V1.Config
}
[HttpGet]
[Produces("application/json")]
public HostConfigResource GetHostConfig()
{
var resource = HostConfigResourceMapper.ToResource(_configFileProvider, _configService);
@@ -103,6 +104,8 @@ namespace Prowlarr.Api.V1.Config
}
[RestPutById]
[Consumes("application/json")]
[Produces("application/json")]
public ActionResult<HostConfigResource> SaveHostConfig(HostConfigResource resource)
{
var dictionary = resource.GetType()