@@ -24,7 +24,7 @@ type TestApi =
24 -- All of the verbs
24 -- All of the verbs
25 :<|> "get" :> Get '[JSON] NoContent
25 :<|> "get" :> Get '[JSON] NoContent
26 :<|> "put" :> Put '[JSON] NoContent
26 :<|> "put" :> Put '[JSON] NoContent
27− :<|> "post" :> ReqBody '[JSON] 'True :> Post '[JSON] NoContent
27+ :<|> "post" :> ReqBody '[JSON] Bool :> Post '[JSON] NoContent
28 :<|> "delete" :> Header "ponies" String :> Delete '[JSON] NoContent
28 :<|> "delete" :> Header "ponies" String :> Delete '[JSON] NoContent
29 :<|> "raw" :> Raw
29 :<|> "raw" :> Raw
30 :<|> NoEndpoint
30 :<|> NoEndpoint
@@ -124,6 +124,6 @@ type WrongPath = "getTypo" :> Get '[JSON] NoContent
124type WrongReturnType = "get" :> Get '[JSON] Bool
124type WrongReturnType = "get" :> Get '[JSON] Bool
125type WrongContentType = "get" :> Get '[OctetStream] NoContent
125type WrongContentType = "get" :> Get '[OctetStream] NoContent
126type WrongMethod = "get" :> Post '[JSON] NoContent
126type WrongMethod = "get" :> Post '[JSON] NoContent
127−type NotALink = "hello" :> ReqBody '[JSON] 'True :> Get '[JSON] Bool
127+type NotALink = "hello" :> ReqBody '[JSON] Bool :> Get '[JSON] Bool
128type AllGood = "get" :> Get '[JSON] NoContent
128type AllGood = "get" :> Get '[JSON] NoContent
129type NoEndpoint = "empty" :> EmptyAPI
129type NoEndpoint = "empty" :> EmptyAPI