curl -d '{"username": "zubat", "email": "[email protected]", "password": "iamthenight"}' -H "Content-Type: application/json" -X POST http://localhost:5000/auth/register
curl -d '{"email": "[email protected]", "password": "iamthenight"}' -H "Content-Type: application/json" -X POST http://localhost:5000/auth/login
curl -d '{"email": "[email protected]", "username": "zubat", password": "iamtheKNIGHT"}' -H "Content-Type: application/json" -X PUT http://localhost:5000/users/60059b4d8ccc074679667f24
curl -d '{"email": "[email protected]", "password": "iamtheKNIGHT"}' -H "Content-Type: application/json" -H "Authorization: Bearer tokenhere" -X PUT http://localhost:5000/users/60059b4d8ccc074679667f24
curl -H "Content-Type: application/json" -H "Authorization: Bearer tokenhere" http://localhost:5000/auth/me
curl -d '{"surname": "Chu", "age": 100}' -H "Content-Type: application/json" -X POST http://localhost:3000/users // prompts error
curl -d '{"name": "Jiggly", "surname": "Puff", "age": 3}' -H "Content-Type: application/json" -X PUT http://localhost:3000/users/5f4f5726ddde594d290c80d1
curl -d '{"price": 10, "user": 2}' -H "Content-Type: application/json" -X POST http://localhost:3000/orders
curl -d '{"price": 12, "user": 5}' -H "Content-Type: application/json" -X PUT http://localhost:3000/orders/5
curl -X DELETE http://localhost:3000/users/5f4d7587bf290843cc1e7f95
colorful-invisible / authwithjws Goto Github PK
View Code? Open in Web Editor NEWThis project forked from feychou/scrapyard