Updates the 401 response examples of the book reader endpoint summaries

This commit is contained in:
BinaryAlley committed 2026-09-26 13:02:57 +03:00
1 parent 1a699b20f1
commit 0bfe4683a4
2 files changed
+42 -7

No files matched your search

@@ -59,7 +59,23 @@ public class GetLibraryBookReadersEndpointSummary : Summary<GetLibraryBookReader
type = "https://tools.ietf.org/html/rfc7235#section-3.1", type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401, status = 401,
title = "Unauthorized", title = "Unauthorized",
detail = "You are not authorized", detail = "Authentication failed",
instance = "/api/v1/libraries/{libraryId}/book-readers"
},
new
{
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401,
title = "Unauthorized",
detail = "The token has expired",
instance = "/api/v1/libraries/{libraryId}/book-readers"
},
new
{
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401,
title = "Unauthorized",
detail = "The token is invalid",
instance = "/api/v1/libraries/{libraryId}/book-readers" instance = "/api/v1/libraries/{libraryId}/book-readers"
} }
} }
@@ -40,13 +40,32 @@ public class SetLibraryBookReaderEnabledEndpointSummary : Summary<SetLibraryBook
); );
Response(401, "Authentication required.", "application/problem+json", Response(401, "Authentication required.", "application/problem+json",
example: new example: new[]
{ {
type = "https://tools.ietf.org/html/rfc7235#section-3.1", new
status = 401, {
title = "Unauthorized", type = "https://tools.ietf.org/html/rfc7235#section-3.1",
detail = "You are not authorized", status = 401,
instance = "/api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled" title = "Unauthorized",
detail = "Authentication failed",
instance = "/api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled"
},
new
{
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401,
title = "Unauthorized",
detail = "The token has expired",
instance = "/api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled"
},
new
{
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401,
title = "Unauthorized",
detail = "The token is invalid",
instance = "/api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled"
}
} }
); );