Magicdream / todola

TODO list project. You can see my code examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todola app

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.

API

Tokens

Get Token: curl --data "email=test@test.com&password=123123123" http://obscure-gorge-3963.herokuapp.com/api/tokens

Get Token with wrong params: curl --data "email=test@test.com&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

Tasks:

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

Author

Mikhail Khomutetckii

About

TODO list project. You can see my code examples


Languages

Language:Ruby 98.3%Language:CoffeeScript 1.4%Language:JavaScript 0.3%