mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Updates the 401 response examples across the endpoint summaries
This commit is contained in:
1 parent
0bfe4683a4
commit
c41bd24760
63 files changed
+144
-144
No files matched your search
+5
-5
@@ -25,15 +25,15 @@ public class GetDirectoriesEndpointSummary : Summary<GetDirectoriesEndpoint, Get
|
||||
|
||||
ExampleRequest = new GetDirectoriesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
ShouldIncludeHiddenElements: true
|
||||
);
|
||||
RequestExamples.Add(new RequestExample(new GetDirectoriesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: false
|
||||
ShouldIncludeHiddenElements: false
|
||||
)));
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the directories. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
Response(200, "The list of directories for the specified path is returned.",
|
||||
example: new DirectoryResponse[] {
|
||||
@@ -49,7 +49,7 @@ public class GetDirectoriesEndpointSummary : Summary<GetDirectoriesEndpoint, Get
|
||||
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/directories/get-directories"
|
||||
},
|
||||
new
|
||||
@@ -57,7 +57,7 @@ public class GetDirectoriesEndpointSummary : Summary<GetDirectoriesEndpoint, Get
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/directories/get-directories"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -36,7 +36,7 @@ public class GetDrivesEndpointSummary : Summary<GetDrivesEndpoint, EmptyRequest>
|
||||
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/drives/get-drives"
|
||||
},
|
||||
new
|
||||
@@ -44,7 +44,7 @@ public class GetDrivesEndpointSummary : Summary<GetDrivesEndpoint, EmptyRequest>
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/drives/get-drives"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ public class GetTypeEndpointSummary : Summary<GetTypeEndpoint, EmptyRequest>
|
||||
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/file-system/get-type"
|
||||
},
|
||||
new
|
||||
@@ -42,7 +42,7 @@ public class GetTypeEndpointSummary : Summary<GetTypeEndpoint, EmptyRequest>
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/file-system/get-type"
|
||||
},
|
||||
new
|
||||
|
||||
+5
-5
@@ -26,15 +26,15 @@ public class GetFilesEndpointSummary : Summary<GetFilesEndpoint, GetFilesRequest
|
||||
|
||||
ExampleRequest = new GetFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
ShouldIncludeHiddenElements: true
|
||||
);
|
||||
RequestExamples.Add(new RequestExample(new GetFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: false
|
||||
ShouldIncludeHiddenElements: false
|
||||
)));
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the files. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
Response(200, "The list of files is returned.",
|
||||
example: new FileResponse[] {
|
||||
@@ -50,7 +50,7 @@ public class GetFilesEndpointSummary : Summary<GetFilesEndpoint, GetFilesRequest
|
||||
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/files/get-files"
|
||||
},
|
||||
new
|
||||
@@ -58,7 +58,7 @@ public class GetFilesEndpointSummary : Summary<GetFilesEndpoint, GetFilesRequest
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/files/get-files"
|
||||
},
|
||||
new
|
||||
|
||||
+5
-5
@@ -25,15 +25,15 @@ public class GetTreeFilesEndpointSummary : Summary<GetTreeFilesEndpoint, GetTree
|
||||
|
||||
ExampleRequest = new GetTreeFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
ShouldIncludeHiddenElements: true
|
||||
);
|
||||
RequestExamples.Add(new RequestExample(new GetTreeFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: false
|
||||
ShouldIncludeHiddenElements: false
|
||||
)));
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the tree files. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
Response(200, "The tree structure of files is returned.",
|
||||
example: new FileSystemTreeNodeResponse[] {
|
||||
@@ -50,7 +50,7 @@ public class GetTreeFilesEndpointSummary : Summary<GetTreeFilesEndpoint, GetTree
|
||||
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/files/get-tree-files"
|
||||
},
|
||||
new
|
||||
@@ -58,7 +58,7 @@ public class GetTreeFilesEndpointSummary : Summary<GetTreeFilesEndpoint, GetTree
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/files/get-tree-files"
|
||||
},
|
||||
new
|
||||
|
||||
+5
-5
@@ -25,15 +25,15 @@ public class CheckPathExistsEndpointSummary : Summary<CheckPathExistsEndpoint, C
|
||||
|
||||
ExampleRequest = new CheckPathExistsRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
ShouldIncludeHiddenElements: true
|
||||
);
|
||||
RequestExamples.Add(new RequestExample(new CheckPathExistsRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: false
|
||||
ShouldIncludeHiddenElements: false
|
||||
)));
|
||||
|
||||
RequestParam(r => r.Path, "The file system path to check the exitence of. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden elements in the search results, or not. Optional.");
|
||||
RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden elements in the search results, or not. Optional.");
|
||||
|
||||
Response(200, "Indicates whether the file system path exists.",
|
||||
example: new PathExistsResponse(
|
||||
@@ -48,7 +48,7 @@ public class CheckPathExistsEndpointSummary : Summary<CheckPathExistsEndpoint, C
|
||||
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/path/check-path-exists"
|
||||
},
|
||||
new
|
||||
@@ -56,7 +56,7 @@ public class CheckPathExistsEndpointSummary : Summary<CheckPathExistsEndpoint, C
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/check-path-exists"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class CombinePathEndpointSummary : Summary<CombinePathEndpoint, CombinePa
|
||||
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/path/combine"
|
||||
},
|
||||
new
|
||||
@@ -51,7 +51,7 @@ public class CombinePathEndpointSummary : Summary<CombinePathEndpoint, CombinePa
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/combine"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class GetPathParentEndpointSummary : Summary<GetPathParentEndpoint, GetPa
|
||||
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/path/get-path-parent"
|
||||
},
|
||||
new
|
||||
@@ -50,7 +50,7 @@ public class GetPathParentEndpointSummary : Summary<GetPathParentEndpoint, GetPa
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/get-path-parent"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ public class GetPathRootEndpointSummary : Summary<GetPathRootEndpoint, GetPathRo
|
||||
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/path/get-path-root"
|
||||
},
|
||||
new
|
||||
@@ -49,7 +49,7 @@ public class GetPathRootEndpointSummary : Summary<GetPathRootEndpoint, GetPathRo
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/get-path-root"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ public class GetPathSeparatorEndpointSummary : Summary<GetPathSeparatorEndpoint,
|
||||
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/path/get-path-separator"
|
||||
},
|
||||
new
|
||||
@@ -41,7 +41,7 @@ public class GetPathSeparatorEndpointSummary : Summary<GetPathSeparatorEndpoint,
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/get-path-separator"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class SplitPathEndpointSummary : Summary<SplitPathEndpoint, SplitPathRequ
|
||||
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/path/split"
|
||||
},
|
||||
new
|
||||
@@ -51,7 +51,7 @@ public class SplitPathEndpointSummary : Summary<SplitPathEndpoint, SplitPathRequ
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/split"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ public class ValidatePathEndpointSummary : Summary<ValidatePathEndpoint, Validat
|
||||
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/path/validate"
|
||||
},
|
||||
new
|
||||
@@ -49,7 +49,7 @@ public class ValidatePathEndpointSummary : Summary<ValidatePathEndpoint, Validat
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/path/validate"
|
||||
},
|
||||
new
|
||||
|
||||
+2
-2
@@ -40,7 +40,7 @@ public class GetThumbnailEndpointSummary : Summary<GetThumbnailEndpoint, GetThum
|
||||
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/thumbnails/get-thumbnail"
|
||||
},
|
||||
new
|
||||
@@ -48,7 +48,7 @@ public class GetThumbnailEndpointSummary : Summary<GetThumbnailEndpoint, GetThum
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Invalid token: The token expired at '01/01/2024 01:00:00'",
|
||||
detail = "The token has expired",
|
||||
instance = "/api/v1/thumbnails/get-thumbnail"
|
||||
},
|
||||
new
|
||||
|
||||
Reference in new issue
Block a user