Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jamesmartin/http_post_parrot

Listens for HTTP POSTs on arbitrary routes and repeats what it hears
https://github.com/jamesmartin/http_post_parrot

Last synced: 17 days ago
JSON representation

Listens for HTTP POSTs on arbitrary routes and repeats what it hears

Awesome Lists containing this project

README

        

About HTTP POST Parrot
=================================

HTTP Post Parrot is a little [Sinatra](http://sinatrarb.com) web application
that remembers data POSTed to a 'listen' route:

$ curl http://vivid-earth-821.heroku.com/listen/foo -d "bar"

Remembered data can be retrieved by GETtting the associated 'repeat' route:

$ curl http://vivid-earth-821.heroku.com/repeat/foo
$ bar

An [instance](http://vivid-earth-821.heroku.com) of the app (currently the master branch) runs on
[Heroku](http://heroku.com). Feel free to give it a try.

To run your own version locally, do this:
$ git clone http://github.com/jamesmartin/http_post_parrot
$ bundle install
$ rake start

You'll need the key/value datastore, [redis](http://redis.io/). HTTP Post
Parrot uses Redis to persist the data you post. To
install redis on a homebrew enabled OSX, try:

$ brew install redis

Enjoy!