Advertisement
Guest User

Untitled

a guest
Jan 31st, 2018
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Yummy:
  2.  
  3.  
  4. Rejestracja:
  5.  
  6.  
  7. curl -X POST \
  8.  
  9. http://52.35.176.30:9999/dwe/api/createUser \
  10.  
  11. -H 'cache-control: no-cache' \
  12.  
  13. -H 'content-type: application/json' \
  14.  
  15. -H 'postman-token: 8bd9f0d2-5e7b-f7cf-c8f2-1d057c7a1c7c' \
  16.  
  17. -d '{
  18.  
  19. "email":"user2@gmail.com",
  20.  
  21. "password": "password2"
  22.  
  23. }'
  24.  
  25.  
  26.  
  27. Login
  28.  
  29.  
  30. curl -X POST \
  31.  
  32. http://52.35.176.30:9999/dwe/api/login \
  33.  
  34. -H 'cache-control: no-cache' \
  35.  
  36. -H 'content-type: application/json' \
  37.  
  38. -H 'postman-token: 8bd9f0d2-5e7b-f7cf-c8f2-1d057c7a1c7c' \
  39.  
  40. -d '{
  41.  
  42. "email":"user2@gmail.com",
  43.  
  44. "password": "password2"
  45.  
  46. }'
  47.  
  48.  
  49. Tu dostajesz headera z autoryzacja, ktorego dodajesz do wszystkich nastepnych requestow.
  50.  
  51.  
  52. Usuniecie konta:
  53.  
  54.  
  55. curl -X POST \
  56.  
  57. http://52.35.176.30:9999/dwe/api/deleteUser \
  58.  
  59. -H 'cache-control: no-cache' \
  60.  
  61. -H 'content-type: application/json' \
  62.  
  63. -d '{
  64.  
  65. "email":"user2@gmail.com",
  66.  
  67. "password": "password2"
  68.  
  69. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement