aboutsummaryrefslogtreecommitdiffstats
path: root/docs/API_Server.md
diff options
context:
space:
mode:
authorDamien <damlobster@gmail.com>2021-07-22 00:40:40 +0200
committerKevinOConnor <kevin@koconnor.net>2021-07-27 13:15:25 -0400
commitcff61605fb7260ab60d1abd4e295b71a533869ac (patch)
treef117dd64e85ec18a62c7c4305781fa03d37ed0a9 /docs/API_Server.md
parent7e88f9220c641dd1e7e5b748381bd7ac758bc8d2 (diff)
downloadkutter-cff61605fb7260ab60d1abd4e295b71a533869ac.tar.gz
kutter-cff61605fb7260ab60d1abd4e295b71a533869ac.tar.xz
kutter-cff61605fb7260ab60d1abd4e295b71a533869ac.zip
docs : make modifications to all md files to make them compatible with mkdocs
all markdown files must have a single H1 heading at the top. Signed-off-by: Damien Martin <damlobster@gmail.com> Update CNAME
Diffstat (limited to 'docs/API_Server.md')
-rw-r--r--docs/API_Server.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/API_Server.md b/docs/API_Server.md
index 6e43ce3e..1ccb6d91 100644
--- a/docs/API_Server.md
+++ b/docs/API_Server.md
@@ -1,9 +1,11 @@
+# API server
+
This document describes Klipper's Application Programmer Interface
(API). This interface enables external applications to query and
control the Klipper host software.
Enabling the API socket
-=======================
+-----------------------
In order to use the API server, the klippy.py host software must be
started with the `-a` parameter. For example:
@@ -16,7 +18,7 @@ can then open a connection on that socket and send commands to
Klipper.
Request format
-==============
+--------------
Messages sent and received on the socket are JSON encoded strings
terminated by an ASCII 0x03 character:
@@ -37,7 +39,7 @@ terminator when transmitting a request. (The Klipper API server does
not have a newline requirement.)
API Protocol
-============
+------------
The command protocol used on the communication socket is inspired by
[json-rpc](https://www.jsonrpc.org/).
@@ -91,7 +93,7 @@ respect to responses from other requests. A JSON request will never
pause the processing of future JSON requests.
Subscriptions
-=============
+-------------
Some Klipper "endpoint" requests allow one to "subscribe" to future
asynchronous update messages.
@@ -119,7 +121,7 @@ send that template. If a "response_template" field is not provided
then it defaults to an empty dictionary (`{}`).
Available "endpoints"
-=====================
+---------------------
By convention, Klipper "endpoints" are of the form
`<module_name>/<some_name>`. When making a request to an "endpoint",