Hello Team,
I am trying to get patientlist using opneemr rest api. I got the token successfully using the following api uri
http://localhost/openemr/oauth2/default/token
As I want the patient list, I used this link http://localhost/openemr/apis/default/fhir/Patient api by passing the token that I received in the previous step, but got 401 error.
When I tried to debug and fix the issue I found that isLocalapi() returns false by default under fhirRestRequestSkipSecurityCheck() in src\Common\Http\HttpRestRouteHandler.php.
Then I coded return true to make it work. Please let me know what cause
$restRequest->isLocalApi() is false in default. Should I change any thing in the code to make default value true??
Thanks in advance.