Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Magicdream/todola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published