Cannot get API to work


(Stephen Waite) #21

hi @vandijk, for the internal api test script, InternalApiTest.php, you have to edit it and remove the exit() function located at the top for security purposes.


(Ajay) #22

Hi, i also got same issue.


(van dijk) #23

Problem was .htacces was overridden by Apache default settings. So the rewrite in file /var/www/html/yoursite/apis/.htaccess do not work.
I solved the problem by adding this to the /etc/apache2/sites-available/yoursite.conf:
<Directory /var/www/html/yoursite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

This works for my test-site. Don’t use this blindly for a production site!!!

I don’t know why we are the only ones having this problem…


(Ajay) #24

Yes but I managed with making custom API. I have made custom API with that admin can send dynamically message to any patient.

Thank you