Skip to content

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

License

Notifications You must be signed in to change notification settings

roussosan/todos-rest-api-rails

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages