progrium/requestbin — pull request #8 by BarryCarlyon (2012-11-04 21:57:14+00:00)
Title: Additional API Methods (Bin/Bin Request)

I added a couple of API Request Methods, and a request count to the home page for each bin listed under recent bins

```
/api/v1/bin/
```

Return information about the Bin of name ``````
Including the dynamically generated key request_count to return the number of requests currently stored for that bin

```
/api/v1/bin//
```

Return the request of index `````` for bin of name ``````
Requesting a index of 1 returns the most recent request.
(Matches the ordering of the ```?inspect``` page

has a range of 1-RequestConfigMax (to return that request)
So for the current config the max is 20.

Both methods support json string and jsonP return.

Some of the exceptions might need tidying up, Python is not my native language, hence trying to do this and pulling it back :-D