- This is an API to manager your Albums, to go along with the Album Manager UI
- It's built using Rails with a Postgres database
- Ruby version
2.3.1
-
Clone this repo
-
bundle install
-
Database setup
- If you don't have Postgres setup, follow these instructions here
- setup your database username and password
cp config/application.example.yml config/application.yml
- Replace the expample username and password with your database username and password
rake db:setup
-
Run the tests
rspec
-
Start the server
rails s
Artists
- artists#index:
GET /artists
- artists#create:
POST /artists
- artists#show:
GET /artists/:id
- artists#update:
PUT /artists/:id
- artists#destroy:
DELETE /artists/:id
Albums
- albums#index:
GET /artists/:artist_id/albums
- albums#create:
POST /artists/:artist_id/albums
- albums#show:
GET /artists/:artist_id/albums/:id
- albums#update:
PUT /artists/:artist_id/albums/:id
- albums#destroy:
DELETE /artists/:artist_id/albums/:id