simple-2.0.0: A minimalist web framework for the WAI server interface
Safe HaskellSafe
LanguageHaskell2010

Web.REST

Description

Synopsis

Documentation

data REST (m :: Type -> Type) s Source #

Type used to encode a REST controller.

Constructors

REST 

Fields

type RESTController (m :: Type -> Type) r = RESTControllerM m r () Source #

rest :: forall (m :: Type -> Type) r a. Monad m => RESTControllerM m r a -> REST m r Source #

routeREST :: forall (m :: Type -> Type) s. Monad m => REST m s -> ControllerT s m () Source #

index :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

GET /

show :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

GET /:id

create :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

POST /

update :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

PUT /:id

delete :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

DELETE /:id

edit :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

GET /:id/edit

new :: forall s (m :: Type -> Type). ControllerT s m () -> RESTController m s Source #

GET /new