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",
status = 401,
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"
}
}
@@ -40,13 +40,32 @@ public class SetLibraryBookReaderEnabledEndpointSummary : Summary<SetLibraryBook
);
Response(401, "Authentication required.", "application/problem+json",
example: new
example: new[]
{
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
status = 401,
title = "Unauthorized",
detail = "You are not authorized",
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 = "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"
}
}
);