Hi,
In Mendix Marketplace there is a module for this, you can import it to your application https://marketplace.mendix.com/link/component/114601
else
There is a widget in mendix for this, you can reuse this https://marketplace.mendix.com/link/component/119857
Also you can refer the Rest api documentation, for more details : https://docs.mendix.com/refguide/integration/consume-a-rest-service/