WebApi Dashboard

Hello All,

Can we create a dashboard having data source as Elasticsearch and that Elasticsearch will collect data by using webApi?
How can we create dashboard that will collect data using Webapi.

Kindly suggest.