mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 06:01:10 +00:00
Adds file system documentation
This commit is contained in:
1 parent
b8cd79534c
commit
caa519fa8e
23 files changed
+677
No files matched your search
@@ -0,0 +1,165 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [Directories](#directories)
|
||||
- [Get Directories](#get-directories)
|
||||
- [Get Directories Request](#get-directories-request)
|
||||
- [Get Directories Response](#get-directories-response)
|
||||
- [Get Directory Tree](#get-directory-tree)
|
||||
- [Get Directory Tree Request](#get-directory-tree-request)
|
||||
- [Get Directory Tree Response](#get-directory-tree-response)
|
||||
- [Get Tree Directories](#get-tree-directories)
|
||||
- [Get Tree Directories Request](#get-tree-directories-request)
|
||||
- [Get Tree Directories Response](#get-tree-directories-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### Directories
|
||||
|
||||
#### Get Directories
|
||||
|
||||
##### Get Directories Request
|
||||
|
||||
```js
|
||||
GET api/v1/directories/get-directories?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Get Directories Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```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 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"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Get Directory Tree
|
||||
|
||||
##### Get Directory Tree Request
|
||||
|
||||
```js
|
||||
GET api/v1/directories/get-directory-tree?path=C%3A%5CUsers%5C&includeFiles=true&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Get Directory Tree Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "/",
|
||||
"Name": "The Lord of the Rings - The Fellowship of the Ring (2001)",
|
||||
"ItemType": "Root",
|
||||
"IsExpanded": true,
|
||||
"ChildrenLoaded": true,
|
||||
"Children": [
|
||||
{
|
||||
"Path": "/media/",
|
||||
"Name": "media",
|
||||
"ItemType": "Directory",
|
||||
"IsExpanded": true,
|
||||
"ChildrenLoaded": true,
|
||||
"Children": [
|
||||
{
|
||||
"Path": "/media/movies/",
|
||||
"Name": "movies",
|
||||
"ItemType": "Directory",
|
||||
"IsExpanded": true,
|
||||
"ChildrenLoaded": true,
|
||||
"Children": [
|
||||
{
|
||||
"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)",
|
||||
"ItemType": "Directory",
|
||||
"IsExpanded": true,
|
||||
"ChildrenLoaded": true,
|
||||
"Children": [
|
||||
{
|
||||
"Path": "/media/movies/The Lord of the Rings - The Fellowship of the Ring (2001)/Extras/",
|
||||
"Name": "Extras",
|
||||
"ItemType": "Directory",
|
||||
"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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Get Tree Directories
|
||||
|
||||
##### Get Tree Directories Request
|
||||
|
||||
```js
|
||||
GET api/v1/directories/get-tree-directories?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Get Tree Directories Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "/media/movies/The Matrix (1999)/",
|
||||
"Name": "The Matrix (1999)",
|
||||
"ItemType": "Directory",
|
||||
"IsExpanded": false,
|
||||
"ChildrenLoaded": false,
|
||||
"Children": []
|
||||
},
|
||||
{
|
||||
"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)",
|
||||
"ItemType": "Directory",
|
||||
"IsExpanded": false,
|
||||
"ChildrenLoaded": false,
|
||||
"Children": []
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -0,0 +1,47 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [Drives](#drives)
|
||||
- [Get Drives](#get-drives)
|
||||
- [Get Drives Request](#get-drives-request)
|
||||
- [Get Drives Response](#get-drives-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### Drives
|
||||
|
||||
#### Get Drives
|
||||
|
||||
##### Get Drives Request
|
||||
|
||||
```js
|
||||
GET api/v1/drives/get-drives
|
||||
```
|
||||
|
||||
##### Get Directories Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "C:\\",
|
||||
"Name": "C:\\",
|
||||
"ItemType": "Root",
|
||||
"IsExpanded": false,
|
||||
"ChildrenLoaded": false,
|
||||
"Children": []
|
||||
},
|
||||
{
|
||||
"Path": "D:\\",
|
||||
"Name": "D:\\",
|
||||
"ItemType": "Root",
|
||||
"IsExpanded": false,
|
||||
"ChildrenLoaded": false,
|
||||
"Children": []
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -0,0 +1,32 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [File System](#file-system)
|
||||
- [Get File System Type](#get-file-system-type)
|
||||
- [Get Type Request](#get-type-request)
|
||||
- [Get Type Response](#get-type-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### File System
|
||||
|
||||
#### Get File System Type
|
||||
|
||||
##### Get Type Request
|
||||
|
||||
```js
|
||||
GET api/v1/file-system/get-type
|
||||
```
|
||||
|
||||
##### Get Type Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"PlatformType": "Unix"
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,91 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [Files](#files)
|
||||
- [Get Files](#get-files)
|
||||
- [Get Files Request](#get-files-request)
|
||||
- [Get Files Response](#get-files-response)
|
||||
- [Get Tree Files](#get-tree-files)
|
||||
- [Get Tree Files Request](#get-tree-files-request)
|
||||
- [Get Tree Files Response](#get-tree-files-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### Files
|
||||
|
||||
#### Get Files
|
||||
|
||||
##### Get Files Request
|
||||
|
||||
```js
|
||||
GET api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Get Files Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```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": 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"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Get Tree Files
|
||||
|
||||
##### Get Tree Files Request
|
||||
|
||||
```js
|
||||
GET api/v1/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Get Tree Files Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```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.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": []
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -0,0 +1,181 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [Paths](#paths)
|
||||
- [Check Path Exists](#check-path-exists)
|
||||
- [Check Path Exists Request](#check-path-exists-request)
|
||||
- [Check Path Exists Response](#check-path-exists-response)
|
||||
- [Combine Path](#combine-path)
|
||||
- [Combine Path Request](#combine-path-request)
|
||||
- [Combine Path Response](#combine-path-response)
|
||||
- [Get Path Parent](#get-path-parent)
|
||||
- [Get Path Parent Request](#get-path-parent-request)
|
||||
- [Get Path Parent Response](#get-path-parent-response)
|
||||
- [Get Path Root](#get-path-root)
|
||||
- [Get Path Root Request](#get-path-root-request)
|
||||
- [Get Path Root Response](#get-path-root-response)
|
||||
- [Get Path Separator](#get-path-separator)
|
||||
- [Get Path Separator Request](#get-path-separator-request)
|
||||
- [Get Path Separator Response](#get-path-separator-response)
|
||||
- [Split Path](#split-path)
|
||||
- [Split Path Request](#split-path-request)
|
||||
- [Split Path Response](#split-path-response)
|
||||
- [Split Path](#split-path)
|
||||
- [Validate Path Request](#validate-path-request)
|
||||
- [Validate Path Response](#validate-path-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### Paths
|
||||
|
||||
#### Check Path Exists
|
||||
|
||||
##### Check Path Exists Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/check-path-exists?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
```
|
||||
|
||||
##### Check Path Exists Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"Exists": true
|
||||
}
|
||||
```
|
||||
|
||||
#### Combine Path
|
||||
|
||||
##### Combine Path Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/combine?originalPath=C%3A%5C&newPath=Users
|
||||
```
|
||||
|
||||
##### Combine Path Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"Path": "C:\\Users\\"
|
||||
}
|
||||
```
|
||||
|
||||
#### Get Path Parent
|
||||
|
||||
##### Get Path Parent Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/get-path-parent?path=C%3A%5CUsers%5C
|
||||
```
|
||||
|
||||
##### Get Path Parent Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "C:"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Get Path Root
|
||||
|
||||
##### Get Path Root Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/get-path-root?path=C%3A%5CUsers%5C
|
||||
```
|
||||
|
||||
##### Get Path Root Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "C:\\"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Get Path Separator
|
||||
|
||||
##### Get Path Separator Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/get-path-separator
|
||||
```
|
||||
|
||||
##### Get Path Separator Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Separator": "\\"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Split Path
|
||||
|
||||
##### Split Path Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/split?path=C%3A%5CUsers%5C
|
||||
```
|
||||
|
||||
##### Split Path Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Path": "C:\\"
|
||||
},
|
||||
{
|
||||
"Path": "Users"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
#### Validate Path
|
||||
|
||||
##### Validate Path Request
|
||||
|
||||
```js
|
||||
GET api/v1/path/validate?path=C%3A%5CUsers%5C
|
||||
```
|
||||
|
||||
##### Validate Path Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"IsValid": true
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,26 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [File System Management](#file-system-management)
|
||||
- [Thumbnails](#thumbnails)
|
||||
- [Get Thumbnail](#get-thumbnail)
|
||||
- [Get Thumbnail Request](#get-thumbnail-request)
|
||||
- [Get Thumbnail Response](#get-thumbnail-response)
|
||||
|
||||
## File System Management
|
||||
|
||||
### Thumbnails
|
||||
|
||||
#### Get Thumbnail
|
||||
|
||||
##### Get Thumbnail Request
|
||||
|
||||
```js
|
||||
GET api/v1/thumbnails/get-thumbnail?path=C%3A%5CUsers%5C&quality=75
|
||||
```
|
||||
|
||||
##### Get Thumbnail Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/directories/get-directories?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/directories/get-directory-tree?path=C%3A%5CUsers%5C&includeFiles=true&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/directories/get-tree-directories?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/drives/get-drives
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/file-system/get-type
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/files/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/check-path-exists?path=C%3A%5CUsers%5C&includeHiddenElements=true
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/combine?originalPath=C%3A%5C&newPath=Users
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/get-path-parent?path=C%3A%5CUsers%5C
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/get-path-root?path=C%3A%5CUsers%5C
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/get-path-separator
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/split?path=C%3A%5CUsers%5C
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/path/validate?path=C%3A%5CUsers%5C
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/thumbnails/get-thumbnail?path=C%3A%5CUsers%5C&quality=75
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"dev": {
|
||||
"host": "http://localhost:5214",
|
||||
"ACCESS_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJ1bmlxdWVfbmFtZSI6ImEiLCJqdGkiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJleHAiOjE3MzU4MTQyMjgsImlzcyI6Ikx1bWluYSIsImF1ZCI6Ikx1bWluYSJ9.6FBaXXQ9IJynrM89KqyV4U3Xi2fmPvnadcp5c9xkf7E"
|
||||
},
|
||||
"prod": {
|
||||
"host": "https://api.lumina.com"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user