Grafana Plugin app using REST API

Grafana Version : 5.2.2
I have a grafana plugin type app with some pages and in one of the page I need to invoke a REST based end point to pull some information and POST it back to a different end point.

Do you have a sample app or any code that I can refer to see how this can be achieved.