curl -XGET http://www.example.com:9200/myIndexName/_search?pretty=true&q=*:*
This uses the Search API and will return all the entries under index myIndexName.
Search
myIndexName
Reference Link: Here