hercules-ci-api-0.6.0.1: Hercules CI API definition with Servant
Safe HaskellNone
LanguageHaskell2010

Hercules.API.State

Synopsis

Documentation

type ContentLength = Header "Content-Length" Integer Source #

type ContentDisposition = Header "Content-Disposition" Text Source #

data StateAPI auth f Source #

Constructors

StateAPI 

Fields

Instances

Instances details
Generic (StateAPI auth f) Source # 
Instance details

Defined in Hercules.API.State

Associated Types

type Rep (StateAPI auth f) :: Type -> Type #

Methods

from :: StateAPI auth f -> Rep (StateAPI auth f) x #

to :: Rep (StateAPI auth f) x -> StateAPI auth f #

type Rep (StateAPI auth f) Source # 
Instance details

Defined in Hercules.API.State

type Rep (StateAPI auth f) = D1 ('MetaData "StateAPI" "Hercules.API.State" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) (C1 ('MetaCons "StateAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "putProjectStateData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Upload a state file" :> ("projects" :> (Capture' '[Required, Strict] "projectId" (Id Project) :> ("state" :> (Capture' '[Required, Strict] "stateName" Text :> ("data" :> (StreamBody NoFraming OctetStream (SourceIO RawBytes) :> (auth :> Put '[JSON] NoContent)))))))))) :*: (S1 ('MetaSel ('Just "getProjectStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "List all state files" :> ("projects" :> (Capture' '[Required, Strict] "projectId" (Id Project) :> ("states" :> (auth :> Get '[JSON] ProjectState))))))) :*: S1 ('MetaSel ('Just "getProjectStateData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Download a state file" :> ("projects" :> (Capture' '[Required, Strict] "projectId" (Id Project) :> ("state" :> (Capture' '[Required, Strict] "stateName" Text :> ("data" :> (auth :> StreamGet NoFraming OctetStream (Headers '[ContentLength, ContentDisposition] (SourceIO RawBytes))))))))))))))