Browse code

simplify restocoin

devnewton authored on 13/06/2017 08:55:36
Showing 1 changed files
... ...
@@ -8,7 +8,7 @@ RESTful tribune like protocol.
8 8
 
9 9
 This endpoint MUST accepts HTTP request using GET method.
10 10
 
11
-Endpoint path MUST be `/tribune/post`:
11
+Endpoint path MUST end with `/post`:
12 12
 
13 13
 ## Query string parameters
14 14
 
... ...
@@ -29,7 +29,7 @@ a JSON as response body with latest posts (newer than *since* if set).
29 29
             "msg": "plop",
30 30
             "from": "dave"
31 31
             "at": "2017-06-29T13:45:02.666"
32
-            "href": "/tribune/post/12345678"
32
+            "href": "/post/12345678"
33 33
         }
34 34
     ]
35 35
 }
... ...
@@ -41,7 +41,7 @@ a JSON as response body with latest posts (newer than *since* if set).
41 41
 
42 42
 This endpoint MUST accepts HTTP request using POST method.
43 43
 
44
-Endpoint path MUST be `/tribune/post`:
44
+Endpoint path MUST end with `/post`:
45 45
 
46 46
 ## Request body
47 47
 
... ...
@@ -92,40 +92,43 @@ Goals:
92 92
 ## bigorno
93 93
 
94 94
 Bigorno is way to hail someone prefix his nickname
95
-with markdown like link relative to tribune base URL with 
96
-/tribune/moule/${mouleId} as path fragment:
95
+with markdown like link ending with
96
+/moule/${mouleId} path:
97 97
 ```
98
-[Dave](/tribune/moule/devnewton) how are you?
98
+[Dave](/moule/devnewton) how are you?
99 99
 ```
100 100
 
101 101
 [Coincoins](../ontology/coincoin.md) SHOULD hail user when a [post](../ontology/post.md) is received with his bigorno.
102 102
 
103 103
 ## duck
104 104
 
105
-User can post an ascii art left or right ducks with markdown like link
106
-relative to tribune base URL with 
107
-/tribune/duck/${duckId} as path fragment:
105
+User can post an ascii art left or right ducks:
108 106
 
109 107
 ```
110
-[\_o<](/tribune/duck/${duckId})
108
+\_o< \_o<   >o_/
111 109
 ```
112 110
 
113
-[Coincoins](../ontology/coincoin.md) MAY kill ducks in [hunt](../ontology/hunt.md)
114
-with a GET request on /tribune/duck/${duckId}/pan.
111
+Ducks can have the following character as head:
112
+
113
+```
114
+oO0ô°øòó@
115
+```
116
+
117
+[Coincoins](../ontology/coincoin.md) MAY use ducks in [hunt](../ontology/hunt.md).
115 118
 
116 119
 ## [norloge](../ontology/norloge.md)
117 120
 
118
-Restocoin use markdown-link-like norloge relative to tribune base URL with 
119
-/tribune/post/${postId} as path fragment:
121
+Restocoin use markdown-link-like norloge ending with
122
+/post/${postId} path:
120 123
 
121 124
 ```
122
-[10:12:42](/tribune/post/123456780) plop
125
+[10:12:42](/post/123456780) plop
123 126
 ```
124 127
 
125
-Absolute URL is used for cross bouchot posting:
128
+Absolute URL MUST be used for cross bouchot posting:
126 129
 
127 130
 ```
128
-[10:12:42](https://hadoken.free.fr/tribune/post/123456780) plop
131
+[10:12:42](https://hadoken.free.fr/post/123456780) plop
129 132
 ```
130 133
 
131 134
 ## Formatting
... ...
@@ -160,11 +163,10 @@ _underline_
160 163
 ## [totoz](../ontology/totoz.md)
161 164
 
162 165
 Reference a totoz with markdown like links
163
-relative to tribune base URL with 
164
-/tribune/totoz/${totozId} as path fragment:
166
+ending with /totoz/${totozId} path:
165 167
 
166 168
 ```
167
-[good](/tribune/totoz/good)
169
+[good](/totoz/good)
168 170
 ```
169 171
 
170 172
 [Coincoins](../ontology/coincoin.md) MAY display the referenced totoz image.
171 173
\ No newline at end of file