From 0579022a0cbdb340d4134b7c13bb70a070ff7ea9 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 24 Jul 2011 20:42:35 +0200 Subject: clive-2: initial commit --- cholerab/clive-2 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 cholerab/clive-2 (limited to 'cholerab/clive-2') 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 : + + +## Character Punch + + terminal character punch : + + +# 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 + } -- cgit v1.2.3