mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-15 01:40:44 +02:00
Fix Endpoint Ambiguity ChaptersController
This commit is contained in:
@@ -186,7 +186,7 @@ public class ChaptersController(MangaContext context) : Controller
|
|||||||
/// <param name="ChapterId"><see cref="Chapter"/>.Key</param>
|
/// <param name="ChapterId"><see cref="Chapter"/>.Key</param>
|
||||||
/// <response code="200"></response>
|
/// <response code="200"></response>
|
||||||
/// <response code="404"><see cref="Chapter"/> with <paramref name="ChapterId"/> not found</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<Chapter>(Status200OK, "application/json")]
|
||||||
[ProducesResponseType<string>(Status404NotFound, "text/plain")]
|
[ProducesResponseType<string>(Status404NotFound, "text/plain")]
|
||||||
public async Task<Results<Ok<Chapter>, NotFound<string>>> GetChapter (string ChapterId)
|
public async Task<Results<Ok<Chapter>, NotFound<string>>> GetChapter (string ChapterId)
|
||||||
|
@@ -335,7 +335,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v2/Chapters/{ChapterId}": {
|
"/v2/Chapters/WithId/{ChapterId}": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"Chapters"
|
"Chapters"
|
||||||
|
Reference in New Issue
Block a user