mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Updates the 401 response examples of the book reader endpoint summaries
This commit is contained in:
1 parent
1a699b20f1
commit
0bfe4683a4
2 files changed
+38
-3
No files matched your search
+17
-1
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+21
-2
@@ -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[]
|
||||||
|
{
|
||||||
|
new
|
||||||
{
|
{
|
||||||
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/{pluginId}/enabled"
|
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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user