curl -XPOST -H "Content-type: application/json" -d '{"user": { "email": "test@email.com", "password": "123", "username": "test" } }' 'http://localhost:3000/sign_up'
curl -XPOST -H "Content-type: application/json" -d '{"user": { "email": "test@email.com", "password": "123" } }' 'http://localhost:3000/verification'
curl -XPOST -H "Content-type: application/json" -d '{"user": { "email": "test@email.com", "password": "123" } }' 'http://localhost:3000/sign_in'
curl -XGET -H "Content-type: application/json" -H "Authorization: TOKEN" 'http://localhost:3000/customers'
curl -XGET -H "Content-type: application/json" -H "Authorization: TOKEN" 'http://localhost:3000/products'
curl -XGET -H "Content-type: application/json" -H "Authorization: TOKEN" 'http://localhost:3000/orders'
curl -XPOST -H "Content-type: application/json" -H "Authorization: TOKEN" -d '{"order": { "customer_id": 2, "ordered_items": [{ "product_id": 2, "quantity": 123 }] } }' 'http://localhost:3000/orders'
rspec spec
- Add rubocop/breakman, etc.
- Add more validation to incoming parameters
- Unify responses in all controllers
- Make all TODO's in project