2015-01-23 02:19:37 +01:00
|
|
|
#### On proper introductions.
|
2014-12-08 11:25:52 +01:00
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
Hello there.
|
|
|
|
|
|
|
|
As documentation is usually written for humans, it's often useful to introduce concepts with a few words.
|
|
|
|
|
|
|
|
#### This title is below the last
|
|
|
|
|
|
|
|
You'll also note that multiple intros are possible.
|
|
|
|
|
|
|
|
## POST /greet
|
|
|
|
|
|
|
|
#### Request Body:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
``` javascript
|
2015-01-30 05:57:56 +01:00
|
|
|
"Hello, haskeller!"
|
2014-12-08 11:25:52 +01:00
|
|
|
```
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### Response:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
- Status code 201
|
2015-01-04 16:53:02 +01:00
|
|
|
- If you use ?capital=true
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
``` javascript
|
2015-01-30 05:57:56 +01:00
|
|
|
"HELLO, HASKELLER"
|
2015-01-04 16:53:02 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
- If you use ?capital=false
|
|
|
|
|
|
|
|
``` javascript
|
2015-01-30 05:57:56 +01:00
|
|
|
"Hello, haskeller"
|
2014-12-08 11:25:52 +01:00
|
|
|
```
|
|
|
|
|
2015-01-30 05:57:56 +01:00
|
|
|
## GET /hello;lang=<value>/:name
|
2014-12-08 11:25:52 +01:00
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### Captures:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
- *name*: name of the person to greet
|
|
|
|
|
2015-02-18 02:49:08 +01:00
|
|
|
#### Matrix Parameters:
|
2015-01-30 05:57:56 +01:00
|
|
|
|
|
|
|
**hello**:
|
|
|
|
|
|
|
|
- lang
|
|
|
|
- **Values**: *en, sv, fr*
|
|
|
|
- **Description**: Get the greeting message selected language. Default is en.
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### GET Parameters:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
- capital
|
|
|
|
- **Values**: *true, false*
|
2015-01-30 05:57:56 +01:00
|
|
|
- **Description**: Get the greeting message in uppercase (true) or not (false).Default is false.
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### Response:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
- Status code 200
|
2015-01-04 16:53:02 +01:00
|
|
|
- If you use ?capital=true
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
``` javascript
|
2015-01-30 05:57:56 +01:00
|
|
|
"HELLO, HASKELLER"
|
2015-01-04 16:53:02 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
- If you use ?capital=false
|
|
|
|
|
|
|
|
``` javascript
|
2015-01-30 05:57:56 +01:00
|
|
|
"Hello, haskeller"
|
2014-12-08 11:25:52 +01:00
|
|
|
```
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
## DELETE /greet/:greetid
|
2014-12-08 11:25:52 +01:00
|
|
|
|
2015-02-18 02:49:08 +01:00
|
|
|
#### Title
|
|
|
|
|
|
|
|
This is some text
|
|
|
|
|
|
|
|
#### Second secton
|
|
|
|
|
|
|
|
And some more
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### Captures:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
|
|
|
- *greetid*: identifier of the greet msg to remove
|
|
|
|
|
2015-02-18 02:49:08 +01:00
|
|
|
|
|
|
|
- This endpoint is sensitive to the value of the **unicorns** HTTP header.
|
|
|
|
|
2015-01-23 02:19:37 +01:00
|
|
|
#### Response:
|
2014-12-08 11:25:52 +01:00
|
|
|
|
2015-02-18 02:49:08 +01:00
|
|
|
- Status code 200
|
2014-12-08 11:25:52 +01:00
|
|
|
- No response body
|
2014-12-20 21:58:07 +01:00
|
|
|
|
|
|
|
|