Fix Endpoint Ambiguity ChaptersController

This commit is contained in:
2025-10-14 12:51:36 +02:00
parent bf7ab17502
commit 81b299ad9d
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ public class ChaptersController(MangaContext context) : Controller
/// <param name="ChapterId"><see cref="Chapter"/>.Key</param>
/// <response code="200"></response>
/// <response code="404"><see cref="Chapter"/> with <paramref name="ChapterId"/> not found</response>
[HttpGet("{ChapterId}")]
[HttpGet("WithId/{ChapterId}")]
[ProducesResponseType<Chapter>(Status200OK, "application/json")]
[ProducesResponseType<string>(Status404NotFound, "text/plain")]
public async Task<Results<Ok<Chapter>, NotFound<string>>> GetChapter (string ChapterId)

View File

@@ -335,7 +335,7 @@
}
}
},
"/v2/Chapters/{ChapterId}": {
"/v2/Chapters/WithId/{ChapterId}": {
"get": {
"tags": [
"Chapters"