Advertisement
Guest User

curl

a guest
Mar 23rd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. curl --header "Content-Type: application/json" \
  2. --request POST \
  3. --data '{"name":"user", "email":"mail@gmail.com","password":"pass"}' \
  4. http://localhost:8080/auth/signup
  5.  
  6. curl --header "Content-Type: application/json" \
  7. --request POST \
  8. --data '{"email":"mail@gmail.com","password":"pass"}' \
  9. http://localhost:8080/auth/login
  10.  
  11.  
  12. curl --header "Authorization: Bearer <TOKEN_HERE>" \
  13. http://localhost:8080/user/me
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement