1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

New: API Docs

This commit is contained in:
Qstick
2022-07-16 18:18:48 -05:00
committed by Mark McDowall
parent 269e72a219
commit 18f77a967b
45 changed files with 10805 additions and 0 deletions
@@ -98,6 +98,7 @@ namespace Sonarr.Api.V3.Series
}
[HttpGet]
[Produces("application/json")]
public List<SeriesResource> AllSeries(int? tvdbId, bool includeSeasonImages = false)
{
var seriesStats = _seriesStatisticsService.SeriesStatistics();
@@ -129,6 +130,7 @@ namespace Sonarr.Api.V3.Series
}
[RestPostById]
[Consumes("application/json")]
public ActionResult<SeriesResource> AddSeries(SeriesResource seriesResource)
{
var series = _addSeriesService.AddSeries(seriesResource.ToModel());
@@ -137,6 +139,7 @@ namespace Sonarr.Api.V3.Series
}
[RestPutById]
[Consumes("application/json")]
public ActionResult<SeriesResource> UpdateSeries(SeriesResource seriesResource)
{
var moveFiles = Request.GetBooleanQueryParameter("moveFiles");