hercules-ci-api-0.8.0.0: Hercules CI API definition with Servant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Repos

Documentation

data ReposAPI auth f Source #

Constructors

ReposAPI 

Fields

Instances

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

Defined in Hercules.API.Repos

Associated Types

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

Methods

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

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

type Rep (ReposAPI auth f) Source # 
Instance details

Defined in Hercules.API.Repos

type Rep (ReposAPI auth f) = D1 ('MetaData "ReposAPI" "Hercules.API.Repos" "hercules-ci-api-0.8.0.0-inplace" 'False) (C1 ('MetaCons "ReposAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "reposByOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Repositories that the account owns or has explicit access to." :> ("accounts" :> (Capture' '[Required, Strict] "accountId" (Id Account) :> ("repos" :> (auth :> Get '[JSON] [Repo]))))))) :*: S1 ('MetaSel ('Just "parseGitURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Parse a git remote URL into site, owner and repo. Returns 400 if invalid, 404 if the site can not be determined. Does provide any guarantee that the repository exists." :> ("parse-git-url" :> (QueryParam' '[Required, Strict] "gitURL" Text :> (auth :> Get '[JSON] RepoKey))))))))