API to store and retrieve confidential development files (configuration, credentials)
All routes return Json
- GET
/
: Root route shows if Web API is running - GET
api/v1/accounts/[username]
: Get account details - POST
api/v1/accounts
: Create a new account - GET
api/v1/projects/[proj_id]/documents/[doc_id]
: Get a document - GET
api/v1/projects/[proj_id]/documents
: Get list of documents for project - POST
api/v1/projects/[proj_id]/documents
: Upload document for a project - GET
api/v1/projects/[proj_]
: Get information about a project - GET
api/v1/projects
: Get list of all projects - POST
api/v1/projects
: Create new project
Install this API by cloning the relevant branch and use bundler to install specified gems from Gemfile.lock
:
bundle install
Setup development database once:
rake db:migrate
Setup test database once:
RACK_ENV=test rake db:migrate
Run the test specification script in Rakefile
:
rake spec
Add fake data to the development database to work on this project:
rake db:seed
Launch the API using:
rake run:dev
Before submitting pull requests, please check if specs, style, and dependency audits pass (will need to be online to update dependency database):
rake release?
Setup test database once:
RACK_ENV=test rake db:migrate
Run the test specification script in Rakefile
:
rake spec
Add fake data to the development database to work on this project:
rake db:seed
Launch the API using:
rackup
Before submitting pull requests, please check if specs, style, and dependency audits pass (will need to be online to update dependency database):
rake release?