Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 803 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 803 Bytes

Swagger for Rails 5

This is a project to provide Swagger support inside the Ruby on Rails framework.

Prerequisites

You need to install ruby >= 2.2.2 and run:

bundle install

Getting started

Environmental variables

export SERVICE_APPROVAL_DATABASE_USERNAME=<<database_user>>
export SERVICE_APPROVAL_DATABASE_PASSSWORD=<<database_password>>
or
export DATABASE_URL=postgres://pguser:pgpass@localhost/somedatabase
export MANAGEIQ_USER=admin
export MANAGEIQ_PASSWORD=smartvm
export MANAGEIQ_HOST=localhost
export MANAGEIQ_PORT=3000

This sample was generated with the swagger-codegen project.

bin/rake db:create db:migrate
bin/rails s

To list all your routes, use:

bin/rake routes