https://github.com/bigbluehat/couchdb-http-echo
Hear what CouchDB hears from HTTP (more or less...)
https://github.com/bigbluehat/couchdb-http-echo
Last synced: 4 months ago
JSON representation
Hear what CouchDB hears from HTTP (more or less...)
- Host: GitHub
- URL: https://github.com/bigbluehat/couchdb-http-echo
- Owner: BigBlueHat
- Created: 2015-11-15T04:20:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T12:03:55.000Z (over 9 years ago)
- Last Synced: 2024-12-30T21:26:14.150Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# couchdb-http-echo
Echo's what [CouchDB](http://couchdb.apache.org) makes available to it's
[Request Object](http://docs.couchdb.org/en/1.6.1/json-structure.html#request-object)
(which it in turn gives to _show, _list, and _update functions) when receiving
an HTTP request.Pretty handy for getting started with CouchApps!
## Usage
Grab [couchapp.py](http://github.com/couchapp/couchapp), then...
```
$ couchapp push . http://{user}:{pass}@localhost:5984/couchdb-http-echo
$ curl http://localhost:5984/couchdb-http-echo/_design/http-echo/_show/echo
$ curl http://localhost:5984/couchdb-http-echo/_design/http-echo/_list/echo/all
$ curl -X PUT http://localhost:5984/couchdb-http-echo/_design/http-echo/_update/echo
```## License
Public Domain (srsly! this is hardly copy-writable)