Below you will find screenshots using httpie for each endpoint in our API.
http POST http://localhost:3000/signup Content-Type:application/json username=usrnm password:psswrd
http POST http://localhost:3000/auth/login Content-Type:application/json username=chris password=12345
http POST http://localhost:3000/todos title="Todo List" description="My Todo List" -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.SYqaEbJe79I6WUqEmVLURl8PgHi4g66r5w_lkyehtxU
http GET http://localhost:3000/todos -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.SYqaEbJe79I6WUqEmVLURl8PgHi4g66r5w_lkyehtxU
http GET http://localhost:3000/todos/1 -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.SYqaEbJe79I6WUqEmVLURl8PgHi4g66r5w_lkyehtxU
http DELETE http://localhost:3000/todos/1 -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.SYqaEbJe79I6WUqEmVLURl8PgHi4g66r5w_lkyehtxU
http GET http://localhost:3000/todos/2/items item_id=1 -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.YvpeoTwNNC78GlPrVKCGbqvtjFDl_kTBcGjbY_gaQxA
http PUT http://localhost:3000/todos/2/items -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.YvpeoTwNNC78GlPrVKCGbqvtjFDl_kTBcGjbY_gaQxA < ~/test.json
The data we used for this command were:
http DELETE http://localhost:3000/todos/2/items item_id=1 -A bearer -a eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.YvpeoTwNNC78GlPrVKCGbqvtjFDl_kTBcGjbY_gaQxA