Web API for the CodePraise application
Our API is rooted at /api/v0.1/
and has the following subroutes:
GET repo
– Index of all repos storedGET repo/ownername/reponame
- Fetch metadata of a previously stored repoPOST repo/ownername/reponame
- Load a repo from Github and store metadata in API
To setup and test this API on your own machine:
$ git clone git@github.com:soumyaray/code_praise.git
$ cd code_praise
$ bundle install
$ bundle exec rake db:migrate
$ RACK_ENV=test bundle exec rake db:migrate
$ bundle exec rake spec
You may have to add your Github developer token to config/secrets.yml
(see example in folder)