2014-10-28 09:04:27 +01:00
|
|
|
POST /greet
|
|
|
|
-----------
|
|
|
|
|
|
|
|
**Request Body**:
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{"msg":"Hello, haskeller!"}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Response**:
|
|
|
|
|
|
|
|
- Status code 201
|
|
|
|
- Response body as below.
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{"msg":"Hello, haskeller!"}
|
|
|
|
```
|
|
|
|
|
|
|
|
GET /hello/:name
|
|
|
|
----------------
|
|
|
|
|
|
|
|
**Captures**:
|
|
|
|
|
|
|
|
- *name*: name of the person to greet
|
|
|
|
|
|
|
|
**GET Parameters**:
|
|
|
|
|
|
|
|
- capital
|
|
|
|
- **Values**: *true, false*
|
|
|
|
- **Description**: Get the greeting message in uppercase (true) or not (false). Default is false.
|
|
|
|
|
2014-11-25 18:13:18 +01:00
|
|
|
|
2014-10-28 09:04:27 +01:00
|
|
|
**Response**:
|
|
|
|
|
|
|
|
- Status code 200
|
|
|
|
- Response body as below.
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{"msg":"Hello, haskeller!"}
|
|
|
|
```
|
|
|
|
|
2014-11-25 18:13:18 +01:00
|
|
|
DELETE /greet/:greetid
|
|
|
|
----------------------
|
2014-10-28 09:04:27 +01:00
|
|
|
|
|
|
|
**Captures**:
|
|
|
|
|
|
|
|
- *greetid*: identifier of the greet msg to remove
|
|
|
|
|
|
|
|
**Response**:
|
|
|
|
|
|
|
|
- Status code 204
|
|
|
|
- No response body
|