This is sample TODO application, which shows my basic Rails skills. You can register and create your simple TODO-list. App is deployed to Heroku obscure-gorge-3963.herokuapp.com.
Get Token: curl --data "[email protected]&password=123123123" http://obscure-gorge-3963.herokuapp.com/api/tokens
Get Token with wrong params: curl --data "[email protected]&password=wrong" http://obscure-gorge-3963.herokuapp.com/api/tokens
Remove token (sign out): curl -X DELETE http://obscure-gorge-3963.herokuapp.com/api/tokens/KgW9y8uG7WxeyWBpDEeu
Without auth token: curl http://obscure-gorge-3963.herokuapp.com/api/tasks
Index: curl http://obscure-gorge-3963.herokuapp.com/api/tasks?auth_token=R8Bp4ba5UHSwcLZxV9qZ
Show: curl http://obscure-gorge-3963.herokuapp.com/api/tasks/1?auth_token=R8Bp4ba5UHSwcLZxV9qZ
Create: curl --data "auth_token=R8Bp4ba5UHSwcLZxV9qZ&name=API&priority=1" http://obscure-gorge-3963.herokuapp.com/api/tasks
Destroy: curl -X DELETE http://obscure-gorge-3963.herokuapp.com/api/tasks/1?auth_token=R8Bp4ba5UHSwcLZxV9qZ
Update (Correct): curl -X PUT --data "auth_token=R8Bp4ba5UHSwcLZxV9qZ&name=changed&priority=1" http://obscure-gorge-3963.herokuapp.com/api/tasks/1
Update (see priority Error): curl -X PUT --data "auth_token=R8Bp4ba5UHSwcLZxV9qZ&name=changed&priority=0" http://obscure-gorge-3963.herokuapp.com/api/tasks/1
Mark as completed: curl -X PUT --data "auth_token=R8Bp4ba5UHSwcLZxV9qZ" http://obscure-gorge-3963.herokuapp.com/api/tasks/1/complete
Mark as uncompleted: curl -X PUT --data "auth_token=R8Bp4ba5UHSwcLZxV9qZ" http://obscure-gorge-3963.herokuapp.com/api/tasks/1/uncomplete
Mikhail Khomutetckii