Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RawBytes = RawBytes {}
- type ContentLength = Header "Content-Length" Integer
- type ContentDisposition = Header "Content-Disposition" Text
- data ProjectStateResourceGroup auth f = ProjectStateResourceGroup {
- putStateData :: f :- (Summary "Upload a state file" :> ("state" :> (Capture' '[Required, Strict] "stateName" Text :> ("data" :> (StreamBody NoFraming OctetStream (SourceIO RawBytes) :> (auth :> Put '[JSON] NoContent))))))
- getStates :: f :- (Summary "List all state files" :> ("states" :> (auth :> Get '[JSON] ProjectState)))
- getStateData :: f :- (Summary "Download a state file" :> ("state" :> (Capture' '[Required, Strict] "stateName" Text :> ("data" :> (QueryParam' '[Optional, Strict] "version" Int :> (auth :> StreamGet NoFraming OctetStream (Headers '[ContentLength, ContentDisposition] (SourceIO RawBytes))))))))
- data StateAPI auth f = StateAPI {
- byProjectId :: f :- Substitute ("projects" :> (Capture' '[Required, Strict] "projectId" (Id Project) :> Placeholder)) (ToServantApi (ProjectStateResourceGroup auth))
- byProjectName :: f :- Substitute ("site" :> (Capture' '[Required, Strict] "site" (Name SourceHostingSite) :> ("account" :> (Capture' '[Required, Strict] "account" (Name Account) :> ("project" :> (Capture' '[Required, Strict] "project" (Name Project) :> Placeholder)))))) (ToServantApi (ProjectStateResourceGroup auth))
Documentation
A newtype wrapper for servant-swagger
Instances
ToSchema RawBytes Source # | |
Defined in Hercules.API.State | |
MimeRender OctetStream RawBytes Source # | |
Defined in Hercules.API.State mimeRender :: Proxy OctetStream -> RawBytes -> ByteString # | |
MimeUnrender OctetStream RawBytes Source # | |
Defined in Hercules.API.State mimeUnrender :: Proxy OctetStream -> ByteString -> Either String RawBytes # mimeUnrenderWithType :: Proxy OctetStream -> MediaType -> ByteString -> Either String RawBytes # |
type ContentLength = Header "Content-Length" Integer Source #
type ContentDisposition = Header "Content-Disposition" Text Source #
data ProjectStateResourceGroup auth f Source #
ProjectStateResourceGroup | |
|
Instances
StateAPI | |
|
Instances
Generic (StateAPI auth f) Source # | |
type Rep (StateAPI auth f) Source # | |
Defined in Hercules.API.State type Rep (StateAPI auth f) = D1 ('MetaData "StateAPI" "Hercules.API.State" "hercules-ci-api-0.7.0.0-GoERcLROG9vArImZjRgsGD" 'False) (C1 ('MetaCons "StateAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "byProjectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- Substitute ("projects" :> (Capture' '[Required, Strict] "projectId" (Id Project) :> Placeholder)) (ToServantApi (ProjectStateResourceGroup auth)))) :*: S1 ('MetaSel ('Just "byProjectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- Substitute ("site" :> (Capture' '[Required, Strict] "site" (Name SourceHostingSite) :> ("account" :> (Capture' '[Required, Strict] "account" (Name Account) :> ("project" :> (Capture' '[Required, Strict] "project" (Name Project) :> Placeholder)))))) (ToServantApi (ProjectStateResourceGroup auth)))))) |