commit 7b6b0595e89ab6ed1db3e6cbf7d9b9a51eb56317
parent eba9c47e59ccb95209b38188a2389a63b39e333b
Author: Luxferre <lux@ferre>
Date: Sun, 27 Oct 2024 18:53:03 +0200
Mentioned posting via GET in the docs
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/ii-doc.txt b/ii-doc.txt
@@ -68,7 +68,7 @@ Response: newline-separated list of msgid:base64_msgtext
where base64_msgtext is a Base64-encoded Node-to-Point Message (see below).
-- Posting a message -
+- Posting a message (via POST) -
Request: POST /u/point
Content-Type: application/x-www-form-urlencoded
@@ -78,6 +78,18 @@ Response: in case of success, must start with "msg ok"
where base64_msgtext is the Base64-encoded Point-to-Node Message (see below).
The maximum length of the tmsg field must be 87382 bytes.
+- Posting a message (via GET) -
+
+Request: GET /u/point/auth_string/base64_msgtext
+Response: in case of success, must start with "msg ok"
+
+where base64_msgtext is the Base64URL-encoded Point-to-Node Message.
+The maximum length of the tmsg field must be 87382 bytes.
+
+Note: the Base64URL encoding means that after the standard base64 encoding,
+the + character is replaced with -, the / character is replaced with _, and
+the = character is omitted from the end.
+
Node-to-Point Message format
----------------------------
The encoding must be UTF-8 and the newline separator must be "\n" (ASCII 10).