Copyright | (c) 2020 Jens Petersen |
---|---|
License | MIT |
Maintainer | Jens Petersen <juhpetersen@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Fedora PDC web api client library
Synopsis
- fedoraPDC :: String
- pdcArches :: String -> IO [Object]
- pdcChangesets :: String -> Query -> IO Object
- pdcComponentBranches :: String -> Query -> IO Object
- pdcComponentBranchSLAs :: String -> Query -> IO Object
- pdcComponentRelationshipTypes :: String -> IO [Object]
- pdcComponentSLATypes :: String -> Query -> IO [Object]
- pdcComposes :: String -> Maybe String -> Query -> IO Object
- pdcComposeImages :: String -> String -> IO Object
- pdcComposeImageRttTests :: String -> Query -> IO Object
- pdcComposeRpms :: String -> String -> IO Object
- pdcComposeTreeRttTests :: String -> Query -> IO Object
- pdcContentDeliveryContentFormats :: String -> Query -> IO [Object]
- pdcGlobalComponents :: String -> Query -> IO Object
- pdcImages :: String -> Query -> IO Object
- pdcModules :: String -> Query -> IO Object
- pdcProductVersions :: String -> Query -> IO [Object]
- pdcProducts :: String -> Query -> IO [Object]
- pdcReleases :: String -> Query -> IO Object
- pdcWhereToFileBugs :: String -> Query -> IO Object
- pdcRpms :: String -> Query -> IO Object
- queryPDC :: String -> String -> Query -> IO Object
- lookupKey :: FromJSON a => Text -> Object -> Maybe a
- lookupKey' :: FromJSON a => Text -> Object -> a
- makeKey :: String -> String -> Query
- makeItem :: String -> String -> QueryItem
- maybeKey :: String -> Maybe String -> Query
- type Query = [QueryItem]
- type QueryItem = (ByteString, Maybe ByteString)
- getResultsList :: Object -> [Object]
Documentation
pdcComponentBranches :: String -> Query -> IO Object Source #
Component Branch List
https://pdc.fedoraproject.org/rest_api/v1/component-branches/
pdcComponentBranchSLAs :: String -> Query -> IO Object Source #
Sla To Component Branch List
https://pdc.fedoraproject.org/rest_api/v1/component-branch-slas/
pdcComponentRelationshipTypes :: String -> IO [Object] Source #
Release Component Relationship Type List
https://pdc.fedoraproject.org/rest_api/v1/component-relationship-types/
pdcComposeImages :: String -> String -> IO Object Source #
Compose Image Instance
https://pdc.fedoraproject.org/rest_api/v1/compose-images/ {compose_id}/
pdcComposeImageRttTests :: String -> Query -> IO Object Source #
Compose Image Rtt Test List
https://pdc.fedoraproject.org/rest_api/v1/compose-image-rtt-tests/ (all untested?)
pdcComposeRpms :: String -> String -> IO Object Source #
Compose Rpm List (seems heavy)
https://pdc.fedoraproject.org/rest_api/v1/compose-rpms/ {compose_id}/
pdcComposeTreeRttTests :: String -> Query -> IO Object Source #
Compose Tree Rtt Test List
https://pdc.fedoraproject.org/rest_api/v1/compose-tree-rtt-tests/
pdcContentDeliveryContentFormats :: String -> Query -> IO [Object] Source #
Content Format List
https://pdc.fedoraproject.org/rest_api/v1/content-delivery-content-formats/
pdcGlobalComponents :: String -> Query -> IO Object Source #
Global Component List
https://pdc.fedoraproject.org/rest_api/v1/global-components/
pdcWhereToFileBugs :: String -> Query -> IO Object Source #
Filter Bugzilla Products And Components List
https://pdc.fedoraproject.org/rest_api/v1/rpc/where-to-file-bugs/
lookupKey' :: FromJSON a => Text -> Object -> a #
Like lookupKey but raises an error if no key found
Query.
General form: a=b&c=d
, but if the value is Nothing, it becomes
a&c=d
.
type QueryItem = (ByteString, Maybe ByteString) #
Query item
getResultsList :: Object -> [Object] Source #
Get results key from a response object