fas3-0.1.0.0: Haskell API bindings for the upcoming Fedora Accounts System v3

Safe HaskellNone
LanguageHaskell2010

Fedora.FAS.Client

Contents

Synopsis

Person

getPerson

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.

getPeople

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

getGroups

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.

Utility