This is my implementation of a todo list API built in the @scoth-io three-part tutorial 'Build a RESTful JSON API with Rails 5'
Source repo at akabiru/todos-api
- Ruby 2.2.2+
- Rails 5+
Endpoint | Functionality |
---|---|
POST /signup | Signup |
POST /auth/login | Login |
GET /auth/logout | Logout |
GET /todos | List all todos |
POST /todos | Create a new todo |
GET /todos/:id | Get a todo |
PUT /todos/:id | Update a todo |
DELETE /todos/:id | Delete a todo and its items |
GET /todos/:id/items | Get a todo item |
PUT /todos/:id/items | Update a todo item |
DELETE /todos/:id/items | Delete a todo item |