summaryrefslogtreecommitdiffstats
path: root/cholerab/clive-2
diff options
context:
space:
mode:
authortv <tv@also>2011-08-06 00:57:39 +0200
committertv <tv@also>2011-08-06 00:57:39 +0200
commit47217c36082cfd39bfb0a6f94579d3380c03d74a (patch)
treecf882c1becfcd7e8e89aed6e3529cbdb89aada85 /cholerab/clive-2
parentb2ecd75ea81aea77477ba3b8dfdfc8a32e710745 (diff)
parentc823c6fcfc9b655bd18c202cfcaed3c7f77950ab (diff)
Merge remote-tracking branch '52e446de-9909-430a-becf-0c1b94e08fc6/4b74cb04-c218-4cbd-8cd7-e73623ef87f6'
Diffstat (limited to 'cholerab/clive-2')
-rw-r--r--cholerab/clive-245
1 files changed, 45 insertions, 0 deletions
diff --git a/cholerab/clive-2 b/cholerab/clive-2
new file mode 100644
index 00000000..1370486e
--- /dev/null
+++ b/cholerab/clive-2
@@ -0,0 +1,45 @@
+
+# Krebs Cholerab Live Instruction Set Mark 2
+
+## Taunt
+
+ taunt : <anything>
+
+
+## Character Punch
+
+ terminal character punch : <row> <column> <utf8-character>
+
+
+# Envelope
+
+Every Krebs Cholerab Live Instruction is issued as an HTTP-JSON-RPC
+request/response as this section demonstrates.
+
+## Request
+
+ POST /namespace HTTP/1.1
+ Host: krebs:1337
+ Content-Type: application/vnd.krebs.clive-2+json
+
+ { "method": "taunt", "params": "lol", "id": 42 }
+
+
+## Positive Response
+
+ HTTP/1.1 200 OK
+
+ { "result": true, "id": 42 }
+
+
+## Negative Response
+Negative responses should reflect the JSON-RPC error as hard as possible.
+
+ HTTP/1.1 400 You are made of stupid!
+
+ { "error": {
+ "code": 1,
+ "message": "You are made of stupid!"
+ },
+ "id": 42
+ }