API references which queries data from Data Source

I am new to grafana. I wanted to understand about the API calls which is triggered by Grafana UI while a user clicks to view a dashboard.
What is the request/response format which queries the data out from the configured datasource ?