Updates API documentation

This commit is contained in:
BinaryAlley committed 2026-08-23 03:57:37 -07:00
1 parent 53ec400921
commit 629e6e463e
59 files changed
+1558 -192

No files matched your search

@@ -28,18 +28,18 @@ GET api/v1/directories/get-directories?path=C%3A%5CUsers%5C&includeHiddenElement
```json
[
{
"Items": [],
"Path": "/media/movies/The Matrix (1999)/",
"Name": "The Matrix",
"DateCreated": "2025-01-01T13:50:38.3183787Z",
"DateModified": "2025-01-01T13:40:38.3183791Z"
"items": [],
"path": "/media/movies/The Matrix (1999)/",
"name": "The Matrix",
"dateCreated": "2025-01-01T13:50:38.3183787Z",
"dateModified": "2025-01-01T13:40:38.3183791Z"
},
{
"Items": [],
"Path": "/media/movies/The Lord of the Rings - The Fellowship of the Ring (2001)/",
"Name": "The Lord of the Rings - The Fellowship of the Ring (2001)",
"DateCreated": "2025-01-01T13:50:38.3184681Z",
"DateModified": "2025-01-01T13:40:38.3184683Z"
"items": [],
"path": "/media/movies/The Lord of the Rings - The Fellowship of the Ring (2001)/",
"name": "The Lord of the Rings - The Fellowship of the Ring (2001)",
"dateCreated": "2025-01-01T13:50:38.3184681Z",
"dateModified": "2025-01-01T13:40:38.3184683Z"
}
]
```
@@ -19,7 +19,7 @@
GET api/v1/drives/get-drives
```
##### Get Directories Response
##### Get Drives Response
```js
200 Ok
@@ -28,20 +28,20 @@ GET api/v1/drives/get-drives
```json
[
{
"Path": "C:\\",
"Name": "C:\\",
"ItemType": "Root",
"IsExpanded": false,
"ChildrenLoaded": false,
"Children": []
"path": "C:\\",
"name": "C:\\",
"itemType": "Root",
"isExpanded": false,
"childrenLoaded": false,
"children": []
},
{
"Path": "D:\\",
"Name": "D:\\",
"ItemType": "Root",
"IsExpanded": false,
"ChildrenLoaded": false,
"Children": []
"path": "D:\\",
"name": "D:\\",
"itemType": "Root",
"isExpanded": false,
"childrenLoaded": false,
"children": []
}
]
```
@@ -27,6 +27,6 @@ GET api/v1/file-system/get-type
```json
{
"PlatformType": "Unix"
"platformType": "Unix"
}
```
@@ -31,18 +31,18 @@ GET api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
```json
[
{
"Size": 754045401,
"Path": "/media/movies/The Matrix (1999)/The Matrix.mkv",
"Name": "The Matrix.mkv",
"DateCreated": "2025-01-01T13:50:38.3143711Z",
"DateModified": "2025-01-01T13:40:38.3143719Z"
"size": 754045401,
"path": "/media/movies/The Matrix (1999)/The Matrix.mkv",
"name": "The Matrix.mkv",
"dateCreated": "2025-01-01T13:50:38.3143711Z",
"dateModified": "2025-01-01T13:40:38.3143719Z"
},
{
"Size": 6897,
"Path": "/media/movies/The Matrix (1999)/The Matrix.en.srt",
"Name": "The Matrix.en.srt",
"DateCreated": "2025-01-01T13:50:38.3145606Z",
"DateModified": "2025-01-01T13:40:38.3145609Z"
"size": 6897,
"path": "/media/movies/The Matrix (1999)/The Matrix.en.srt",
"name": "The Matrix.en.srt",
"dateCreated": "2025-01-01T13:50:38.3145606Z",
"dateModified": "2025-01-01T13:40:38.3145609Z"
}
]
```
@@ -52,7 +52,7 @@ GET api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
##### Get Tree Files Request
```js
GET api/v1/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
GET api/v1/files/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
```
##### Get Tree Files Response
@@ -64,28 +64,28 @@ GET api/v1/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
```json
[
{
"Path": "/media/movies/The Matrix (1999)/The Matrix.mkv",
"Name": "The Matrix.mkv",
"ItemType": "File",
"IsExpanded": false,
"ChildrenLoaded": false,
"Children": []
"path": "/media/movies/The Matrix (1999)/The Matrix.mkv",
"name": "The Matrix.mkv",
"itemType": "File",
"isExpanded": false,
"childrenLoaded": false,
"children": []
},
{
"Path": "/media/movies/The Matrix (1999)/The Matrix.en.srt",
"Name": "The Matrix.en.srt",
"ItemType": "File",
"IsExpanded": false,
"ChildrenLoaded": false,
"Children": []
"path": "/media/movies/The Matrix (1999)/The Matrix.en.srt",
"name": "The Matrix.en.srt",
"itemType": "File",
"isExpanded": false,
"childrenLoaded": false,
"children": []
},
{
"Path": "/media/movies/The Matrix (1999)/poster.jpg",
"Name": "poster.jpg",
"ItemType": "File",
"IsExpanded": false,
"ChildrenLoaded": false,
"Children": []
"path": "/media/movies/The Matrix (1999)/poster.jpg",
"name": "poster.jpg",
"itemType": "File",
"isExpanded": false,
"childrenLoaded": false,
"children": []
}
]
```
@@ -21,7 +21,7 @@
- [Split Path](#split-path)
- [Split Path Request](#split-path-request)
- [Split Path Response](#split-path-response)
- [Split Path](#split-path)
- [Validate Path](#validate-path)
- [Validate Path Request](#validate-path-request)
- [Validate Path Response](#validate-path-response)
@@ -45,7 +45,7 @@ GET api/v1/path/check-path-exists?path=C%3A%5CUsers%5C&includeHiddenElements=tru
```json
{
"Exists": true
"exists": true
}
```
@@ -65,7 +65,7 @@ GET api/v1/path/combine?originalPath=C%3A%5C&newPath=Users
```json
{
"Path": "C:\\Users\\"
"path": "C:\\Users\\"
}
```
@@ -86,7 +86,7 @@ GET api/v1/path/get-path-parent?path=C%3A%5CUsers%5C
```json
[
{
"Path": "C:"
"path": "C:"
}
]
```
@@ -106,11 +106,9 @@ GET api/v1/path/get-path-root?path=C%3A%5CUsers%5C
```
```json
[
{
"Path": "C:\\"
}
]
{
"path": "C:\\"
}
```
#### Get Path Separator
@@ -128,14 +126,12 @@ GET api/v1/path/get-path-separator
```
```json
[
{
"Separator": "\\"
}
]
{
"separator": "\\"
}
```
#### Split Path
#### Split Path
##### Split Path Request
@@ -152,15 +148,15 @@ GET api/v1/path/split?path=C%3A%5CUsers%5C
```json
[
{
"Path": "C:\\"
"path": "C:\\"
},
{
"Path": "Users"
"path": "Users"
}
]
```
#### Validate Path
#### Validate Path
##### Validate Path Request
@@ -176,6 +172,6 @@ GET api/v1/path/validate?path=C%3A%5CUsers%5C
```json
{
"IsValid": true
"isValid": true
}
```
@@ -24,3 +24,5 @@ GET api/v1/thumbnails/get-thumbnail?path=C%3A%5CUsers%5C&quality=75
```js
200 Ok
```
Returns the thumbnail as a binary image file whose `Content-Type` depends on the requested image type (`Png`, `Jpeg`, `Webp`, `Gif`, `Bmp` or `Tiff`).