A Grape API mounted on Rack, starting point for API development with Grape. It also includes grape-swagger for documentation generating.
All following commands can and should be adapted/replaced to your needs.
$ ./script/setup
$ ./script/test
$ ./script/server *port (default: 9292)
and go to: http://localhost:port/doc to access the OAPI documentation.
For production, set RACK_ENV=production
$ RACK_ENV=production ./script/server *port (default: 9292)
… dependencies
$ ./script/update
… would only be used, if server started in production mode
$ ./script/stop
rake routes
rake oapi:fetch
rake oapi:validate
comming from: grape-swagger
Rake Tasks
- build:
docker build -t awesome_api .
- run:
docker run -it -p 9292:9292 --rm awesome_api
Bug reports and pull requests are welcome on GitHub at https://github.com/name/repo.
The gem is available as open source under the terms of the MIT License.