Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Yummy:
- Rejestracja:
- curl -X POST \
- http://52.35.176.30:9999/dwe/api/createUser \
- -H 'cache-control: no-cache' \
- -H 'content-type: application/json' \
- -H 'postman-token: 8bd9f0d2-5e7b-f7cf-c8f2-1d057c7a1c7c' \
- -d '{
- "email":"user2@gmail.com",
- "password": "password2"
- }'
- Login
- curl -X POST \
- http://52.35.176.30:9999/dwe/api/login \
- -H 'cache-control: no-cache' \
- -H 'content-type: application/json' \
- -H 'postman-token: 8bd9f0d2-5e7b-f7cf-c8f2-1d057c7a1c7c' \
- -d '{
- "email":"user2@gmail.com",
- "password": "password2"
- }'
- Tu dostajesz headera z autoryzacja, ktorego dodajesz do wszystkich nastepnych requestow.
- Usuniecie konta:
- curl -X POST \
- http://52.35.176.30:9999/dwe/api/deleteUser \
- -H 'cache-control: no-cache' \
- -H 'content-type: application/json' \
- -d '{
- "email":"user2@gmail.com",
- "password": "password2"
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement