An open API service indexing awesome lists of open source software.

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.

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.