GithubHelp home page GithubHelp logo

trycatch_test's Introduction

Test for TryCatch

This is a Rails 4 app, running with SQLite3 database.

How to run this application

  1. Clone this repositiory
git clone https://github.com/filabreu/trycatch_test.git
  1. Go into application folder and install all gems dependencies
cd trycatch_test
bundle install
  1. Create the database schema
rake db:create && rake db:migrate
  1. Check if all tests are running properly
rspec
  1. Load seed data
rake db:seed
  1. Now access the application API

Authentication

All APIs must use Basic HTTP authentication

  1. For admin user
username: 'admin', password: 'password'
  1. For default user
username: 'user', password: 'password'
  1. For guest user
username: 'guest', password: 'password'

Application APIs

Foo

GET /foos

List all Foo records

GET /foo/:id

Show a specific Foo record

POST /foos

Create a Foo record

{ foo: { title: <string> }}
PUT /foos/:id

Update a Foo record

{ foo: { title: <string> }}
DELETE /foos/:id

Destroy a Foo record

Bar

GET /foos/:foo_id/bars

List all Bar records for a Foo record

GET /foos/:foo_id/bars/:id

Show a Bar record for a Foo record

POST /foos/:foo_id/bars

Create a Bar record for a Foo record

{ bar: { title: <string> }}
PUT /foo/:foo_id/bars/:id

Update a Bar record for a Foo record

{ bar: { title: <string> }}
DELETE /foo/:foo_id/bars/:id

Destroy a Bar record for a Foo record

trycatch_test's People

Contributors

filabreu avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.