prodapi-0.1.0.0: Some curated and opinionated packages for building Haskell services.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prod.Reports

Synopsis

Documentation

type ReportsApi a = Summary "receives and acknowledge some reports" :> ("reports" :> (ReqBody '[JSON] (Report a) :> Post '[JSON] Int)) Source #

data Report a Source #

Some minimal report wrapper. Has low expectations on the client.

Constructors

Report 

Fields

Instances

Instances details
FromJSON a => FromJSON (Report a) Source # 
Instance details

Defined in Prod.Reports

ToJSON a => ToJSON (Report a) Source # 
Instance details

Defined in Prod.Reports

countReports :: Runtime a -> Report a -> Handler Int Source #

Count and drop reports.

data Runtime a Source #

A default runtime for the dropReports route.