summaryrefslogtreecommitdiffstats
path: root/cholerab/clive-2
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-06 01:56:55 +0200
committermakefu <github@syntax-fehler.de>2011-08-06 01:56:55 +0200
commit4ba5f6f8bf321c4c1f1c0f5652248fbbc2cd2419 (patch)
tree42e042d5c7ff27584c64742ec3dcd82fca0c69ac /cholerab/clive-2
parent67331f023a364d8e256c848ea42467d2ad870e47 (diff)
parent94bc4b14ecaa9935dcddfd104704c05c6fa13764 (diff)
emergency merge
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
+ }