From 5a3b1b6e5cb91ca4a30f35c5a599fbae5c2d47b5 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Mon, 7 Nov 2022 07:54:43 -0500 Subject: [PATCH] docs: fix list roots endpoint Signed-off-by: Eric Callahan --- docs/web_api.md | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/docs/web_api.md b/docs/web_api.md index b2f51ec..ae19884 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -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