- Walk through the in README first
- Start your server
npm start / npm run dev
- Open another terminal
- Try out the requests below
http GET :4000
http POST :4000/echo hello="world" number:=0 cheesesArray:='["cheddar", "rochefort", "stilton"]'
http POST :4000/signup email="[email protected]" password="test1234" name="John Doe"
http POST :4000/login email="[email protected]" password="test1234"
Get a token first:
http POST :4000/login email="[email protected]" password="test1234"
http GET :4000/me Authorization:"Bearer <PASTE_YOUR_TOKEN_HERE>"
http GET :4000/me Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTU4NDYwNzIyMSwiZXhwIjoxNTg0NjE0NDIxfQ.PcK4zqUIuA347cW7jdLFSH-86RckZtPw4RFeChwqh2o"
Get a token first:
http POST :4000/login email="[email protected]" password="test1234"
http POST :4000/authorized_post_request Authorization:"Bearer <PASTE_YOUR_TOKEN_HERE>" hello="world" number:=0 cheesesArray:='["cheddar", "rochefort", "stilton"]'
http POST :4000/authorized_post_request Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIxLCJpYXQiOjE1ODQ2MTQxMjYsImV4cCI6MTU4NDYyMTMyNn0.3WKeq1MmGQaq5iMSds3ff8JNBJa5D2k3DDW645OFrAY" hello="world" number:=0 cheesesArray:='["cheddar", "rochefort", "stilton"]'