forked from tonyg/rabbithub
-
Notifications
You must be signed in to change notification settings - Fork 9
/
NOTES
59 lines (47 loc) · 1.35 KB
/
NOTES
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
HTTP headers that pertain to the entity:
- Message headers
- Date? It talks about the creation of the message, not the entity
- Via
- Entity headers
- Content-Encoding
- Content-Language
- Content-Location
- Content-MD5
- Content-Range
- Content-Type
- Expires
- Last-Modified
... and extension headers.
---------------------------------------------------------------------------
ISubscribable:
A subscribe(callback, topic, verify[, verify_token]) =
POST topic
<other parameters as fields>
--> 202 if verify
| 201 if not verify and sucessful; "Location" header with name
of binding
| 304 if already bound
| 401 Unauthorized
| 403 if e.g., topic is reserved for internal use
| 404 if topic does not exist (and will not be automatically
created)
| 410 if e.g., topic is black-listed
| 5xx
A unsubscribe(callback, topic, verify[, verify_token]) =
DELETE bindingName
| POST topic <other parameters as parameters>
--> 202 ?
| 204 successful
| 4xx as above
| 5xx
IEndpoint:
A publish(msg) =
POST topic <body of msg>
--> 202 (AMQP use-case?)
| 204 success
| 4xx
| 5xx
A gettoken() --> 200 | 4xx | 5xx
X subscribe(token) --> 2xx | 404 | 4xx | 5xx
X unsubscribe(token) --> 2xx | 404 | 4xx | 5xx
Discovery interface?