https://github.com/lreimer/puma-rack-app
A simple REST API as a Ruby Rack application powered by Puma.
https://github.com/lreimer/puma-rack-app
demo-app puma rack-app rest-api ruby
Last synced: over 1 year ago
JSON representation
A simple REST API as a Ruby Rack application powered by Puma.
- Host: GitHub
- URL: https://github.com/lreimer/puma-rack-app
- Owner: lreimer
- License: mit
- Created: 2021-07-26T08:48:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-26T09:37:14.000Z (almost 5 years ago)
- Last Synced: 2025-03-05T15:02:18.497Z (over 1 year ago)
- Topics: demo-app, puma, rack-app, rest-api, ruby
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Puma Rack App
A small Rack application using Puma and MongoDB to expose a REST API for Users.
## Usage Instructions
```bash
$ bundle install --path vendor/bundle
$ docker-compose up -d
$ open http://localhost:8081
$ bundle exec puma
$ http get localhost:9292/version
$ http get localhost:9292/health
$ http get localhost:9292/api/users
$ http --json post localhost:9292/api/users username=lreimer email=mario-leander.reimer@qaware.de
$ http get localhost:9292/api/users/:id # insert _id from previous command
$ http delete localhost:9292/api/users/:id # insert _id from previous command
```
## Maintainer
M.-Leander Reimer (@lreimer),
## License
This software is provided under the MIT open source license, read the `LICENSE` file for details.