Call Rest APIs from Power BI / Power Query

Most of the time we have a question in our mind about connecting APIs in Power BI. In this post we will learn how we can connect any type of Rest APIs in Power BI or PowerQuery?