From bba2446d1dd147b7c54fafb290546caa543a24ef Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Wed, 27 Nov 2024 00:18:44 +0100 Subject: [PATCH] fix: fix incorrect plural form in tmdb APIv3 endpoints --- Shoko.Server/API/v3/Controllers/TmdbController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Shoko.Server/API/v3/Controllers/TmdbController.cs b/Shoko.Server/API/v3/Controllers/TmdbController.cs index 4f4a278d7..47395825d 100644 --- a/Shoko.Server/API/v3/Controllers/TmdbController.cs +++ b/Shoko.Server/API/v3/Controllers/TmdbController.cs @@ -393,7 +393,7 @@ [FromRoute] int movieID /// /// TMDB Movie ID. /// - [HttpGet("Movie/{movieID}/AniDB/Episodes")] + [HttpGet("Movie/{movieID}/AniDB/Episode")] public ActionResult> GetAniDBEpisodesByTmdbMovieID( [FromRoute] int movieID ) @@ -440,7 +440,7 @@ public ActionResult> GetShokoSeriesByTmdbMovieID( /// TMDB Movie ID. /// Include data from selected s. /// - [HttpGet("Movie/{movieID}/Shoko/Episodes")] + [HttpGet("Movie/{movieID}/Shoko/Episode")] public ActionResult> GetShokoEpisodesByTmdbMovieID( [FromRoute] int movieID, [FromQuery, ModelBinder(typeof(CommaDelimitedModelBinder))] HashSet? includeDataFrom = null @@ -469,7 +469,7 @@ public ActionResult> GetShokoEpisodesByTmdbMovieID( /// Sort ordering. Attach '-' at the start to reverse the order of the criteria. /// Include data from selected s. /// - [HttpGet("Movie/{movieID}/Shoko/Files")] + [HttpGet("Movie/{movieID}/Shoko/File")] public ActionResult> GetShokoFilesByMovieID( [FromRoute] int movieID, [FromQuery, Range(0, 1000)] int pageSize = 100, @@ -1442,7 +1442,7 @@ public ActionResult> GetShokoSeriesByTmdbShowID( /// Sort ordering. Attach '-' at the start to reverse the order of the criteria. /// Include data from selected s. /// - [HttpGet("Show/{showID}/Shoko/Files")] + [HttpGet("Show/{showID}/Shoko/File")] public ActionResult> GetShokoFilesByTmdbShowID( [FromRoute] int showID, [FromQuery, Range(0, 1000)] int pageSize = 100, @@ -1950,7 +1950,7 @@ public ActionResult> GetShokoSeriesBySeasonID( /// Sort ordering. Attach '-' at the start to reverse the order of the criteria. /// Include data from selected s. /// - [HttpGet("Season/{seasonID}/Shoko/Files")] + [HttpGet("Season/{seasonID}/Shoko/File")] public ActionResult> GetShokoFilesBySeasonID( [FromRoute, RegularExpression(SeasonIdRegex)] string seasonID, [FromQuery, Range(0, 1000)] int pageSize = 100, @@ -2356,7 +2356,7 @@ public ActionResult> GetShokoEpisodesByEpisodeID( /// Sort ordering. Attach '-' at the start to reverse the order of the criteria. /// Include data from selected s. /// - [HttpGet("Episode/{episodeID}/Shoko/Files")] + [HttpGet("Episode/{episodeID}/Shoko/File")] public ActionResult> GetShokoFilesByEpisodeID( [FromRoute] int episodeID, [FromQuery, Range(0, 1000)] int pageSize = 100,