From 501af62018e3c67c7f66d2c0ee6f042396dbc68c Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 23 Feb 2022 12:25:52 -0500 Subject: [PATCH] docs: update /server/info and /machine/system_info docs These endpoints now return additional values. Signed-off-by: Eric Callahan --- docs/web_api.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/docs/web_api.md b/docs/web_api.md index 11ea1c6..4cca696 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -475,7 +475,9 @@ An object containing various fields that report server state. "Unparsed config section [fake_section] detected. This may be the result of a component that failed to load. In the future this will result in a startup error." ], "websocket_count": 2, - "moonraker_version": "v0.7.1-105-ge4f103c" + "moonraker_version": "v0.7.1-105-ge4f103c", + "api_version": [1, 0, 0], + "api_version_string": "1.0.0" } ``` !!! warning @@ -922,13 +924,45 @@ Returns: Information about the host system in the following format: "virtualization": { "virt_type": "none", "virt_identifier": "none" + }, + "python": { + "version": [ + 3, + 7, + 3, + "final", + 0 + ], + "version_string": "3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]" + }, + "network": { + "wlan0": { + "mac_address": "", + "ip_addresses": [ + { + "family": "ipv4", + "address": "192.168.1.127", + "is_link_local": false + }, + { + "family": "ipv6", + "address": "", + "is_link_local": false + }, + { + "family": "ipv6", + "address": "fe80::", + "is_link_local": true + } + ] + } } } } ``` !!! note - If no SD Card is detected the `sd_info` field will contain an empty object. + If no SD Card is detected the `sd_info` field will contain an empty object. #### Shutdown the Operating System HTTP request: