hello, Can I know in what file do i type the code to access the REST API and is funcionality, I have read the REST API documentation but still couldnt decipher where to write the code to use the API’s.
For example, the curl codes mentioned below,
// encounter
$enc_data[‘patient’] = “uuid of the patient”;
$enc_data[‘encounterDatetime’] = “encounter date”;
$enc_data[‘encounterType’] = “encounter type”;
Those examples given by me were implementation of REST API using PHP. ( As I am using certain framework which uses MVC pattern, obviously this code comes under controller part ). We can implement this API in any language as you wish ( you have to follow the syntax rules of that language which you intend to use )