RESTful API sample using rails api
.
Note: To run the application as a docker container head over README-docker.md.
Features added to the app:
-
api documentation
- swagger DSL written inside controllers
- serving swagger-ui whithin the app
-
code quality
- automatic static analisys of code
- automatic generation of code coverage reports
-
database sample data
- rake task to load data [from factories] into database
- ruby (v2.3.1)
- bundler (v1.12.5)
$ bundle install --path=vendor
$ bundle exec rails db:migrate
$ bundle exec rails db:factories:load
$ git submodule init
$ git submodule update
$ bundle exec rake swagger:docs
$ bundle exec rails server
And head over to http://localhost:3000/docs to interact with the api.