@@ -10,34 +10,42 @@ You'll also note that multiple intros are possible.
11## POST /greet
11## POST /greet
13−#### Request:
13+### Request:
15- Supported content types are:
15- Supported content types are:
17+ - `application/json;charset=utf-8`
17 - `application/json`
18 - `application/json`
19−- Example: `application/json`
20+- If you use ?capital=true (`application/json;charset=utf-8`, `application/json`):
21```javascript
22```javascript
22"HELLO, HASKELLER"
23"HELLO, HASKELLER"
25−#### Response:
26+- If you use ?capital=false (`application/json;charset=utf-8`, `application/json`):
27−- Status code 201
34+- Status code 200
28- Headers: [("X-Example","1729")]
35- Headers: [("X-Example","1729")]
30- Supported content types are:
37- Supported content types are:
39+ - `application/json;charset=utf-8`
32 - `application/json`
40 - `application/json`
34−- If you use ?capital=true
42+- If you use ?capital=true (`application/json;charset=utf-8`, `application/json`):
36```javascript
44```javascript
37"HELLO, HASKELLER"
45"HELLO, HASKELLER"
40−- If you use ?capital=false
48+- If you use ?capital=false (`application/json;charset=utf-8`, `application/json`):
42```javascript
50```javascript
43"Hello, haskeller"
51"Hello, haskeller"
@@ -45,81 +53,70 @@ You'll also note that multiple intros are possible.
46## DELETE /greet/:greetid
54## DELETE /greet/:greetid
48−#### Title
56+### Title
50This is some text
58This is some text
52−#### Second secton
60+### Second secton
54And some more
62And some more
56−#### Captures:
64+### Captures:
58- *greetid*: identifier of the greet msg to remove
66- *greetid*: identifier of the greet msg to remove
61- This endpoint is sensitive to the value of the **unicorns** HTTP header.
70- This endpoint is sensitive to the value of the **unicorns** HTTP header.
63−#### Response:
72+### Response:
65- Status code 200
74- Status code 200
66- Headers: []
75- Headers: []
68- Supported content types are:
77- Supported content types are:
79+ - `application/json;charset=utf-8`
70 - `application/json`
80 - `application/json`
72−- Response body as below.
82+- Example (`application/json;charset=utf-8`, `application/json`):
74```javascript
84```javascript
78## GET /hello/:name
88## GET /hello/:name
80−#### Captures:
90+### Captures:
82- *name*: name of the person to greet
92- *name*: name of the person to greet
84−#### GET Parameters:
94+### GET Parameters:
87 - **Values**: *true, false*
97 - **Values**: *true, false*
88 - **Description**: Get the greeting message in uppercase (true) or not (false).Default is false.
98 - **Description**: Get the greeting message in uppercase (true) or not (false).Default is false.
91−#### Response:
101+### Response:
93- Status code 200
103- Status code 200
94- Headers: []
104- Headers: []
96- Supported content types are:
106- Supported content types are:
108+ - `application/json;charset=utf-8`
98 - `application/json`
109 - `application/json`
99 - `text/plain;charset=utf-8`
110 - `text/plain;charset=utf-8`
101−- If you use ?capital=true
112+- If you use ?capital=true (`application/json;charset=utf-8`, `application/json`, `text/plain;charset=utf-8`):
103```javascript
114```javascript
104"HELLO, HASKELLER"
115"HELLO, HASKELLER"
107−- If you use ?capital=true
118+- If you use ?capital=false (`application/json;charset=utf-8`, `application/json`):
113−- If you use ?capital=false
115```javascript
120```javascript
116"Hello, haskeller"
121"Hello, haskeller"
119−- If you use ?capital=false