How to call get method of a rest API from Mikrotik

Hello All,

I want to use a get method in a rest API to get the command from a remote server to execute in a command line in mikrotik.
Please let me know how to achieve this.

Thanks in advance.

easiest way is to upload a script to internal ftp:
https://wiki.mikrotik.com/wiki/Manual:Configuration_Management#Automatic_Import