blob: 1370486e0c18eb90e027853cbe6b7c9acdfc3ee9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}
|