diff options
| author | crobibero <cody@robibe.ro> | 2020-11-19 16:16:23 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-11-19 16:16:23 -0700 |
| commit | d58e435409afc013ff6d31c2d99c9b32078bbe96 (patch) | |
| tree | b290de079c8798d89decd6b2eb6b14c2726017d3 | |
| parent | fe8531f74e1152086673026840e244d66054acd4 (diff) | |
Add response code documentation
| -rw-r--r-- | Jellyfin.Api/Controllers/HlsSegmentController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/HlsSegmentController.cs b/Jellyfin.Api/Controllers/HlsSegmentController.cs index f6359f8e4..ccdbbb297 100644 --- a/Jellyfin.Api/Controllers/HlsSegmentController.cs +++ b/Jellyfin.Api/Controllers/HlsSegmentController.cs @@ -112,11 +112,13 @@ namespace Jellyfin.Api.Controllers /// <param name="segmentId">The segment id.</param> /// <param name="segmentContainer">The segment container.</param> /// <response code="200">Hls video segment returned.</response> + /// <response code="404">Hls segment not found.</response> /// <returns>A <see cref="FileStreamResult"/> containing the video segment.</returns> // Can't require authentication just yet due to seeing some requests come from Chrome without full query string // [Authenticated] [HttpGet("Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}")] [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesVideoFile] [SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "itemId", Justification = "Required for ServiceStack")] public ActionResult GetHlsVideoSegmentLegacy( |
