Safe Haskell | None |
---|---|
Language | Haskell2010 |
Fedora.FAS.Client
- getPerson :: ClientConfig -> SearchType -> String -> IO (Either SomeException (Response PersonResponse))
- getPeople :: ClientConfig -> Integer -> Integer -> IO (Either SomeException (Response PeopleResponse))
- getGroups :: ClientConfig -> Integer -> Integer -> IO (Either SomeException (Response GroupsResponse))
- localClientConfig :: APIKey -> ClientConfig
Person
Arguments
:: ClientConfig | How to connect to FAS3 |
-> SearchType | What to filter results by |
-> String | The search query |
-> IO (Either SomeException (Response PersonResponse)) |
Finds a unique person by some unique identifier (SearchType
).
Internally, this hits /api/people/searchtype/query
.
Arguments
:: ClientConfig | How to connect to FAS3 |
-> Integer | The page number |
-> Integer | The limit |
-> IO (Either SomeException (Response PeopleResponse)) |
Get a list of all people.
Internally, this hits /api/people
.
Group
Arguments
:: ClientConfig | How to connect to FAS3 |
-> Integer | The page number |
-> Integer | The limit |
-> IO (Either SomeException (Response GroupsResponse)) |
Get a list of all groups.
Internally, this hits /api/group
.