rfc-servant-0.0.0.1: src/RFC/Servant/API.hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
module RFC.Servant.API
( JDelete
, JGet
, JPatch
, JPost
, JPut
, JReqBody
) where
import RFC.Prelude ()
import Servant.API
-- |JSON DELETE
type JDelete a = Delete '[JSON] a
-- |JSON GET
type JGet a = Get '[JSON] a
-- |JSON PATCH
type JPatch a = Get '[JSON] a
-- |JSON POST
type JPost a = Post '[JSON] a
-- |JSON PUT
type JPut a = Post '[JSON] a
-- |JSON Request Body ('ReqBody')
type JReqBody a = ReqBody '[JSON] a