Gets the data for the datasource

Gets the data for the datasource. There are optional query parameters to filter the data