Extend tests with more content types

This commit is contained in:
Timo von Holtz 2015-03-04 08:59:36 +11:00
parent 5578488538
commit 2c2a2fcb54

View file

@ -13,11 +13,12 @@ import Language.ECMAScript3.Parser (parseFromString)
import Test.Hspec import Test.Hspec
import Servant.API import Servant.API
import Servant.API.ContentTypes
import Servant.JQuery import Servant.JQuery
import Servant.JQuerySpec.CustomHeaders import Servant.JQuerySpec.CustomHeaders
type TestAPI = "simple" :> ReqBody '[JSON] String :> Post '[JSON] Bool type TestAPI = "simple" :> ReqBody '[JSON,FormUrlEncoded] String :> Post '[JSON] Bool
:<|> "has.extension" :> Get '[JSON] Bool :<|> "has.extension" :> Get '[FormUrlEncoded,JSON] Bool
type TopLevelRawAPI = "something" :> Get '[JSON] Int type TopLevelRawAPI = "something" :> Get '[JSON] Int
:<|> Raw :<|> Raw