Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anthonyrouss/todos-rest-api-rails

A simple Ruby on Rails Todos REST API with JWT authentication & Swagger documentation.
https://github.com/anthonyrouss/todos-rest-api-rails

jwt-authentication rest-api ruby-on-rails swagger todos-api

Last synced: 29 days ago
JSON representation

A simple Ruby on Rails Todos REST API with JWT authentication & Swagger documentation.

Awesome Lists containing this project

README

        

# Todos REST API

This project is a simple Todos REST API developed in Ruby on Rails as a university assignment. It provides endpoints to manage todos and todo items. The API includes JWT authentication for securing and authorizing requests, and Swagger documentation for easy API exploration.

## Endpoints

### Authentication
- **POST /auth/login:** Login
- **POST /signup:** Signup a new user

### Todos
- **GET /todos:** List all todos and todo items
- **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

### Todo Items
- **GET /todos/:todo_id/items:** List all todo items
- **POST /todos/:todo_id/items:** Create a new todo item
- **GET /todos/:todo_id/items/:id:** Get a todo item
- **PUT /todos/:todo_id/items/:id:** Update a todo item
- **DELETE /todos/:todo_id/items/:id:** Delete a todo item

## Screenshots

todos-api-swagger