Create Prescription Using Rest API

What is the logic to create a prescription (like the picture above) using rest api? What I mean is basically creating a set of drug order.

Is this Wiki page helpful? https://wiki.openmrs.org/display/docs/Order+Entry+API

Thanks a lot Pascal. Definitely this gives me brief description about Order API.