Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin login API #89

Merged
merged 2 commits into from Sep 18, 2018
Merged

Add admin login API #89

merged 2 commits into from Sep 18, 2018

Conversation

mederic-p
Copy link
Contributor

Closes #81

Overview

This PR adds the admin login endpoint.

Usage

Use is very similar to the client login endpoint:

let config = AdminConfiguration(baseURL: "http://localhost:4000")
let apiClient = HTTPAdminAPI(config: config)
let params = LoginParams(email: "admin@example.com", password: "password")
apiClient.login(withParams: params) { (response) in
    switch response {
    case .success(data: let data): print(data)
    case .fail(error: let error): print(error)
    }
}

@ghost ghost added the s2/wip 🚧 This is still being worked on label Sep 17, 2018
@mederic-p mederic-p merged commit ac360db into master Sep 18, 2018
@ghost ghost removed the s2/wip 🚧 This is still being worked on label Sep 18, 2018
@mederic-p mederic-p deleted the 81-admin-login branch September 18, 2018 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants