Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module implements the endpoints described at Cryptokeys API
Synopsis
- data CryptokeysAPI f = CryptokeysAPI {
- apiListCryptokeys :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> Get '[JSON] [Cryptokey])))))
- apiCreateCryptokey :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (ReqBody '[JSON] Cryptokey :> PostCreated '[JSON] Cryptokey))))))
- apiGetCryptokey :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> Get '[JSON] Cryptokey))))))
- apiUpdateCryptokey :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> (ReqBody '[JSON] Cryptokey :> PutNoContent)))))))
- apiDeleteCryptokey :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> DeleteNoContent))))))
- data Cryptokey = Cryptokey {}
API
data CryptokeysAPI f Source #
CryptokeysAPI | |
|
Instances
Generic (CryptokeysAPI f) Source # | |
Defined in PowerDNS.API.Cryptokeys type Rep (CryptokeysAPI f) :: Type -> Type # from :: CryptokeysAPI f -> Rep (CryptokeysAPI f) x # to :: Rep (CryptokeysAPI f) x -> CryptokeysAPI f # | |
type Rep (CryptokeysAPI f) Source # | |
Defined in PowerDNS.API.Cryptokeys type Rep (CryptokeysAPI f) = D1 ('MetaData "CryptokeysAPI" "PowerDNS.API.Cryptokeys" "powerdns-0.4.0-1owosWjIhFXLqZhYAyUo9f" 'False) (C1 ('MetaCons "CryptokeysAPI" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiListCryptokeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> Get '[JSON] [Cryptokey]))))))) :*: S1 ('MetaSel ('Just "apiCreateCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (ReqBody '[JSON] Cryptokey :> PostCreated '[JSON] Cryptokey))))))))) :*: (S1 ('MetaSel ('Just "apiGetCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> Get '[JSON] Cryptokey)))))))) :*: (S1 ('MetaSel ('Just "apiUpdateCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> (ReqBody '[JSON] Cryptokey :> PutNoContent))))))))) :*: S1 ('MetaSel ('Just "apiDeleteCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> DeleteNoContent)))))))))))) |