No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Procfile
README.md
pom.xml

README.md

hookbin

This project inspired by requestb.in and inspectb.in was created to support our automation strategy at FitPay. RequestBin and InspectBin our awesome tools, but we needed something just a little bit more, tailored towards QA automation.

At this point there is no UI for hookbin, it's an API driven project. If somebody were so inspired to provide for a UI on top of the API... well that would be awesome.

In the spirit of an API driven strategy:

Getting Started

Here are some quick references for using the API.

Create a webhook bucket

curl -X POST http://hookbin.fitpay.ninja/api/buckets

Sample Response

{
   "_links":{
      "self":{
         "href":"http://hookbin.fitpay.ninja/api/buckets/bHDywNJS8z"
      },
      "receive":{
         "href":"http://hookbin.fitpay.ninja/bHDywNJS8z"
      }
   },
   "bucketId":"bHDywNJS8z",
   "createdTsEpoch":1439212629091,
   "createdTs":"2015-08-10T13:17:09.091+0000",
   "requestCount":0,
   "ttl":359995
}

Send a webhook into a bucket

curl -X POST -d "some sample data" http://hookbin.fitpay.ninja/bHDywNJS8z

Delete a bucket

curl -X DELETE http://hookbin.fitpay.ninja/api/buckets/bHDywNJS8z

Retrieve the last request received into a bucket

curl http://hookbin.fitpay.ninja/api/buckets/bHDywNJS8z/lastRequest

Retrieve a list of requests received into a bucket

curl http://hookbin.fitpay.ninja/api/buckets/bHDywNJS8z/requests