This is a Rails 4 app, running with SQLite3 database.
- Clone this repositiory
git clone https://github.com/filabreu/trycatch_test.git
- Go into application folder and install all gems dependencies
cd trycatch_test
bundle install
- Create the database schema
rake db:create && rake db:migrate
- Check if all tests are running properly
rspec
- Load seed data
rake db:seed
- Now access the application API
All APIs must use Basic HTTP authentication
- For admin user
username: 'admin', password: 'password'
- For default user
username: 'user', password: 'password'
- For guest user
username: 'guest', password: 'password'
List all Foo records
Show a specific Foo record
Create a Foo record
{ foo: { title: <string> }}
Update a Foo record
{ foo: { title: <string> }}
Destroy a Foo record
List all Bar records for a Foo record
Show a Bar record for a Foo record
Create a Bar record for a Foo record
{ bar: { title: <string> }}
Update a Bar record for a Foo record
{ bar: { title: <string> }}
Destroy a Bar record for a Foo record