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

Create an authentication endpoint #20

Open
Tracked by #3
dkraczkowski opened this issue Jul 29, 2018 · 0 comments
Open
Tracked by #3

Create an authentication endpoint #20

dkraczkowski opened this issue Jul 29, 2018 · 0 comments
Labels
Api Issues that belong to platform's api Task
Milestone

Comments

@dkraczkowski
Copy link
Contributor

dkraczkowski commented Jul 29, 2018

Request

POST /user/session
{
   "username": <email>,
   "password": <string>
}

Successful response:

HTTP 200 OK
{
    "token": <string>
}

Failed response

HTTP 401 Unauthorized
{
    "error": <int>,
    "reason": "invalid username or password"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Api Issues that belong to platform's api Task
Projects
None yet
Development

No branches or pull requests

1 participant