Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/anthonyrouss/todos-rest-api-rails
- Owner: anthonyrouss
- License: gpl-3.0
- Created: 2024-02-07T20:07:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-12T17:10:55.000Z (9 months ago)
- Last Synced: 2024-02-12T19:32:26.485Z (9 months ago)
- Topics: jwt-authentication, rest-api, ruby-on-rails, swagger, todos-api
- Language: Ruby
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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