API to store and retrieve configuration files
- 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:
$ rake db:migrate RACK_ENV=test
$ bundle exec rake spec
Run this API during deployment:
$ rake db:migrate (If switching from test environment)
$ bundle exec rackup
or use autoloading during development:
$ bundle exec rerun rackup