add route to comprehensive API
commit6cbf0d38914522bc5652998c86fcef1de4cb89a5
authorjschaul <jschaul@users.noreply.github.com>
dateWed 20 Mar 2019, 12:34 (8 years ago)
parenta4e5707
servant-docs/golden/comprehensive.md+22
@@ -96,6 +96,28 @@
9696
9797```
9898
99+## GET /capture-lenient/:foo
100+
101+### Captures:
102+
103+- *foo*: Capture foo Int
104+
105+### Response:
106+
107+- Status code 200
108+- Headers: []
109+
110+- Supported content types are:
111+
112+ - `application/json;charset=utf-8`
113+ - `application/json`
114+
115+- Example (`application/json;charset=utf-8`, `application/json`):
116+
117+```javascript
118+
119+```
120+
99121## GET /description
100122
101123### foo
servant/src/Servant/Test/ComprehensiveAPI.hs+1
@@ -49,6 +49,7 @@ type ComprehensiveAPIWithoutStreamingOrRaw' endpoint =
4949 GET
5050 :<|> "get-int" :> Get '[JSON] Int
5151 :<|> "capture" :> Capture' '[Description "example description"] "foo" Int :> GET
52+ :<|> "capture-lenient" :> Capture' '[Lenient] "foo" Int :> GET
5253 :<|> "header" :> Header "foo" Int :> GET
5354 :<|> "header-lenient" :> Header' '[Required, Lenient] "bar" Int :> GET
5455 :<|> "http-version" :> HttpVersion :> GET