API to store and retrieve configuration files of projects
- GET
/
: root route
- GET
api/v1/projects/
: returns a json list of all projects - GET
api/v1/projects/[ID]
: returns a json of all information about a project - POST
api/v1/projects/
: creates a new project
- GET
api/v1/projects/[PROJECT_ID]/configurations/
: returns a json of all configurations for a project - GET
api/v1/projects/[PROJECT_ID]/configurations/[ID].json
: returns a json of all information about a configuration - GET
api/v1/projects/[PROJECT_ID]/configurations/[ID]/document
: returns a text/plain document with a configuration document - POST
api/v1/projects/[PROJECT_ID]/configurations/
: creates a new configuration for a project
Install this API by cloning the relevant branch and installing required gems:
$ bundle install
Test this API by running:
$ RACK_ENV=test rake db:migrate
$ bundle exec rake spec
Run this API during development:
$ rake db:migrate
$ bundle exec rackup
or use autoloading during development:
$ bundle exec rerun rackup