mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 12:01:10 +00:00
Documents the conflict response in the update book endpoint summary
This commit is contained in:
1 parent
5d2834b7fe
commit
675312e03f
2 files changed
+17
-5
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
|
||||
+16
-4
@@ -44,12 +44,12 @@ public class UpdateBookEndpointSummary : Summary<UpdateBookEndpoint, UpdateBookR
|
||||
RequestParam(r => r.Metadata!.Genres, "The list of genres of the book. Required.");
|
||||
RequestParam(r => r.Metadata!.Tags, "The list of tags of the book. Required.");
|
||||
RequestParam(r => r.Metadata!.Language, "The language in which the book is written. Optional.");
|
||||
RequestParam(r => r.Metadata!.Language!.LanguageCode, "The ISO code of the language of the book. Optional.");
|
||||
RequestParam(r => r.Metadata!.Language!.LanguageName, "The name of the language of the book in English. Optional.");
|
||||
RequestParam(r => r.Metadata!.Language!.LanguageCode, "The ISO code of the language of the book. Required.");
|
||||
RequestParam(r => r.Metadata!.Language!.LanguageName, "The name of the language of the book in English. Required.");
|
||||
RequestParam(r => r.Metadata!.Language!.NativeName, "The native name of the language of the book. Optional.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage, "The original language of the book, if it has been translated. Optional.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageCode, "The ISO code of the original language of the book. Optional.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageName, "The name of the original language of the book in English. Optional.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageCode, "The ISO code of the original language of the book. Required.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageName, "The name of the original language of the book in English. Required.");
|
||||
RequestParam(r => r.Metadata!.OriginalLanguage!.NativeName, "The native name of the original language of the book. Optional.");
|
||||
RequestParam(r => r.Metadata!.Publisher, "The publisher of the book. Optional.");
|
||||
RequestParam(r => r.Metadata!.PageCount, "The number of pages of the book. Optional.");
|
||||
@@ -389,6 +389,18 @@ public class UpdateBookEndpointSummary : Summary<UpdateBookEndpoint, UpdateBookR
|
||||
}
|
||||
);
|
||||
|
||||
Response(409, "The request failed because a unique constraint was violated.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc9110#section-15.5.10",
|
||||
title = "General.Conflict",
|
||||
status = 409,
|
||||
detail = "UniqueConstraintViolation",
|
||||
instance = $"/api/v1/libraries/{Guid.NewGuid()}/books/{Guid.NewGuid()}",
|
||||
traceId = "00-a712bbf99ca8ab485f86a762ae5ae74d-b3a2eb78813b0a5d-00"
|
||||
}
|
||||
);
|
||||
|
||||
Response(422, "The request did not pass validation checks.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user