NB: Power BI now supports a REST API for sending queries to DataSets, which can be used without having to deploy an additional endpoint. See https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/
This should be removed or have another note because currently the rest endpoint does not support querying datasets that are analysis servers:

This should be removed or have another note because currently the rest endpoint does not support querying datasets that are analysis servers:
