Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 875 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 875 Bytes

CodePraise

Web API for the CodePraise application

Routes

Our API is rooted at /api/v0.1/ and has the following subroutes:

  • GET repo – Index of all repos stored
  • GET repo/ownername/reponame - Fetch metadata of a previously stored repo
  • POST repo/ownername/reponame - Load a repo from Github and store metadata in API

Setup

To setup and test this API on your own machine:

$ git clone [email protected]: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)