Removes unused file system API endpoints

This commit is contained in:
BinaryAlley committed 2025-01-02 14:56:45 +02:00
1 parent 8c579cd4bd
commit 532322eab2
35 files changed
-3111

No files matched your search

@@ -6,12 +6,6 @@
- [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
@@ -49,117 +43,3 @@ GET api/v1/directories/get-directories?path=C%3A%5CUsers%5C&includeHiddenElement
}
]
```
#### 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": []
}
]
```
@@ -1,2 +0,0 @@
GET {{host}}/api/v1/directories/get-directory-tree?path=C%3A%5CUsers%5C&includeFiles=true&includeHiddenElements=true
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -1,2 +0,0 @@
GET {{host}}/api/v1/directories/get-tree-directories?path=C%3A%5CUsers%5C&includeHiddenElements=true
Authorization: Bearer {{ACCESS_TOKEN}}