Automatic fetch of documents to index

Is there a provision by which I can point Elasticsearch at a list service say -
/person/list
which produces a list of persons. And then Elasticsearch automatically indexes them?

Also, Elastic search must honor the cache-headers returned from /person/list. So, if the expires is set at 1 hour, a call should be automatically made after an hour to populate the index.