docs: fix list roots endpoint

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-11-07 07:54:43 -05:00
parent ddf3325dae
commit 5a3b1b6e5c
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B

View File

@ -1559,6 +1559,24 @@ A list of objects, where each object contains file data.
]
```
#### List registered roots
Reports all "root" directories registered with Moonraker. Information
such as location on disk and permissions are included.
HTTP request:
```http
GET /server/files/roots
```
JSON-RPC request:
```json
{
"jsonrpc": "2.0",
"method": "server.files.roots",
"id": 4644
}
```
Returns:
A list of objects, where each object contains file data:
@ -1592,25 +1610,6 @@ A list of objects, where each object contains file data:
]
```
#### List registered roots
Reports all "root" directories registered with Moonraker. Information
such as location on disk and permissions are included.
HTTP request:
```http
GET /server/files/roots
```
JSON-RPC request:
```json
{
"jsonrpc": "2.0",
"method": "server.files.roots",
"id": 4644
}
```
#### Get gcode metadata
Get metadata for a specified gcode file. If the file is located in
a subdirectory, then the file name should include the path relative to