Skip to content

ISS-Security/configshare-api

Repository files navigation

ShareConfigurationsAPI Web Service

Dependency Status

API to store and retrieve configuration files of projects

Routes

Application Routes

  • GET /: root route

Project Routes

  • 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

Configuration Routes

  • 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

Install this API by cloning the relevant branch and installing required gems:

$ bundle install

Testing

Test this API by running:

$ RACK_ENV=test rake db:migrate
$ bundle exec rake spec

Develop

Run this API during development:

$ rake db:migrate
$ bundle exec rackup

or use autoloading during development:

$ bundle exec rerun rackup

About

Web API for Secure Configuration Sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages