add route to comprehensive API
This commit is contained in:
parent
a4e5707955
commit
6cbf0d3891
2 changed files with 23 additions and 0 deletions
|
@ -96,6 +96,28 @@
|
|||
|
||||
```
|
||||
|
||||
## GET /capture-lenient/:foo
|
||||
|
||||
### Captures:
|
||||
|
||||
- *foo*: Capture foo Int
|
||||
|
||||
### Response:
|
||||
|
||||
- Status code 200
|
||||
- Headers: []
|
||||
|
||||
- Supported content types are:
|
||||
|
||||
- `application/json;charset=utf-8`
|
||||
- `application/json`
|
||||
|
||||
- Example (`application/json;charset=utf-8`, `application/json`):
|
||||
|
||||
```javascript
|
||||
|
||||
```
|
||||
|
||||
## GET /description
|
||||
|
||||
### foo
|
||||
|
|
|
@ -49,6 +49,7 @@ type ComprehensiveAPIWithoutStreamingOrRaw' endpoint =
|
|||
GET
|
||||
:<|> "get-int" :> Get '[JSON] Int
|
||||
:<|> "capture" :> Capture' '[Description "example description"] "foo" Int :> GET
|
||||
:<|> "capture-lenient" :> Capture' '[Lenient] "foo" Int :> GET
|
||||
:<|> "header" :> Header "foo" Int :> GET
|
||||
:<|> "header-lenient" :> Header' '[Required, Lenient] "bar" Int :> GET
|
||||
:<|> "http-version" :> HttpVersion :> GET
|
||||
|
|
Loading…
Reference in a new issue