You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
In the openMEDIS database, make sure that there is an employeeID column in the assests db table, if not then create it.
Copy all the above sources into a folder "api" at the root of openMEDIS
Update the file called config.php, and edit the URL as well as credentials. (They can be found in common.inc.php of openMEDIS)
In api/db folder, run the query mobile_installation_to_extend_existing.sql on the openMEIDS database. This will create fields for key in the login table.
Test it's reachable:
Using Chrome extension "Postman", login to the following POST at http://"domain"/api/public/v1/login, with:
Headers: select Content type = application/json
Body: selet "raw", and enter the contents: {"username":"","password":""} (in JSON minified)
Test by running this GET: http://"domain"/api/public/v1/database/scheme
Headers:
X-PublicKey = [public key from DB login table for your username]
X-Hash = [result of step 2]
Installation:
Test it's reachable:
Using Chrome extension "Postman", login to the following POST at http://"domain"/api/public/v1/login, with:
Headers: select Content type = application/json
Body: selet "raw", and enter the contents: {"username":"","password":""} (in JSON minified)
open http://ideone.com/ to run the python code
Headers:
X-PublicKey = [public key from DB login table for your username]
X-Hash = [result of step 2]