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

Signup login and auth middleware #3

Merged
merged 6 commits into from
Mar 19, 2020

Conversation

Reinoptland
Copy link
Contributor

What this pullrequest does:

  • Adds endpoints for /signup, /login, /me and /authorized_post_request
  • Adds the auth middleware (used in GET /me and POST /authorized_post_request)
  • Adds some sample requests with axios & httpie
  • Updated readme so this info is easy to find

Adds the following endpoints

Method Path Purpose required parameters auth
POST '/signup' Create a new user and get a token email, name, password no
POST '/login' Get a token with email & password email, password no
GET '/me' Get information of this user none yes
POST '/authorized_post_request' Test POST requests (token required) none yes

@Reinoptland Reinoptland merged commit d1264c5 into master Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant