/todos-api

Exploring Rails with a simple backend "todo app."

Primary LanguageRuby

Todos API travis-ci

A simple "Todos" app, built as a REST API. Deployed to Heroku with Postgres via Travis-CI

The foundation for this project came from 'Build a restful json api with rails'. I've extended the scope of the project by migrating the database from SQlite to Postgres and setting up continuous integration.

Endpoints

  • GET ./todos
    • returns an array of todos
  • POST ./todos
    • Adds a todo
  • GET ./todos/:id
    • returns a specific todo
  • PUT ./todos/:id
    • updates a specific todo
  • DELETE ./todos/:id
    • deletes a specific todo

Example

Using Postman to send requests.