using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.Tags; using Sonarr.Http; using Sonarr.Http.REST; namespace Sonarr.Api.V3.Tags { [V3ApiController("tag/detail")] public class TagDetailsController : RestController { private readonly ITagService _tagService; public TagDetailsController(ITagService tagService) { _tagService = tagService; } protected override TagDetailsResource GetResourceById(int id) { return _tagService.Details(id).ToResource(); } [HttpGet] [Produces("application/json")] public List GetAll() { return _tagService.Details().ToResource(); } } }