Get it from:
http://examples.cloudant.com/animaldb
curl -XPOST http://localhost:5984/animaldb/_index \
-H 'Content-type: application/json' \
-d '{"index": {"fields": ["min_weight"]}}'
curl -XPOST http://localhost:5984/animaldb/_find \
-H 'Content-type: application/json' \
-d '{"selector": {"min_weight": {"$gt": 10}}}'
curl -XPOST http://localhost:5984/animaldb/_find \
-H 'Content-type: application/json' \
-d '{"selector": {"min_weight": {"$eq": 40}}}'
Replace $YOURUSERNAME
with your username
curl -XPOST http://$YOURUSERNAME.cloudant.com/animaldb/_index \
-H 'Content-type: application/json' \
-d '{"index": {"fields": ["min_weight"]}}'
curl -XPOST http://$YOURUSERNAME.cloudant.com/animaldb/_find \
-H 'Content-type: application/json' \
-d '{"selector": {"min_weight": {"$gt": 10}}}'
curl -XPOST http://$YOURUSERNAME.cloudant.com/animaldb/_find \
-H 'Content-type: application/json' \
-d '{"selector": {"min_weight": {"$eq": 40}}}'