Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 915 Bytes

README.md

File metadata and controls

54 lines (38 loc) · 915 Bytes

bouncer

A tiny sinatra post request consuming tool.

It's nothing just consumes a request with:

{
  "customer_id": "<customer_id>",
  "company_id": "<company_id>",
  "amount": "<amount>",
  "currency": "<currency>"
}

and responses:

{
  "id": "<id>",
  "customer_id": "<customer_id>",
  "company_id": "<company_id>",
  "amount": "<amount>",
  "currency": "<currency>",
  "number": "<number>",
  "status": "<status>"
}

:p :p :p

Installation

clone the repo: git@github.com:mur-wtag/bouncer.git

install gems: bundle (if bundler not available: gem install bundler)

Usage

You can run the app with ruby app.rb, and open http://localhost:4567 to see the interface.

Need to know

Basic Authentication Credentials

  • username = 'bounce'

  • password = 'pass'

Available URLs

  1. GET /

  2. GET /ping

  3. POST /voucher_eligible

Thanks!