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
clone the repo: git@github.com:mur-wtag/bouncer.git
install gems: bundle
(if bundler not available: gem install bundler
)
You can run the app with ruby app.rb
, and open http://localhost:4567 to see the interface.
Basic Authentication Credentials
-
username = 'bounce'
-
password = 'pass'
Available URLs
-
GET /
-
GET /ping
-
POST /voucher_eligible
Thanks!