Difference between revisions of "API Documentation"
Line 7: | Line 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
|Methods relating to Prescriptions | |<strong>Methods relating to Prescriptions</strong> | ||
|<nowiki>http://ptsservername/PTSWeb/api/Prescriptions</nowiki> | |<nowiki>http://ptsservername/PTSWeb/api/Prescriptions</nowiki> | ||
|- | |- | ||
|Methods relating to Events (activities recorded against prescriptions) | |<strong>Methods relating to Events (activities recorded against prescriptions)</strong> | ||
|<nowiki>http://ptsservername/PTSWeb/api/Events</nowiki> | |<nowiki>http://ptsservername/PTSWeb/api/Events</nowiki> | ||
|- | |- | ||
|Methods relating to Notes | |<strong>Methods relating to Notes</strong> | ||
|<nowiki>http://ptsservername/PTSWeb/api/Notes</nowiki> | |<nowiki>http://ptsservername/PTSWeb/api/Notes</nowiki> | ||
|- | |- | ||
|Methods relating to Users | |<strong>Methods relating to Users</strong> | ||
|<nowiki>http://ptsservername/PTSWeb/api/Users</nowiki> | |<nowiki>http://ptsservername/PTSWeb/api/Users</nowiki> | ||
|} | |} |
Revision as of 09:40, 18 July 2022
This documentation explains the various methods that can be called on the Application Programming Interface (API) that is exposed by the Prescription Tracking Application (PTS5).
The PTS5 API is an HTTP REST API. Examples using JSON format will be provided throughout the documentation.
Accessing the API
The API can be accessed at the following endpoints:
Methods relating to Prescriptions | http://ptsservername/PTSWeb/api/Prescriptions |
Methods relating to Events (activities recorded against prescriptions) | http://ptsservername/PTSWeb/api/Events |
Methods relating to Notes | http://ptsservername/PTSWeb/api/Notes |
Methods relating to Users | http://ptsservername/PTSWeb/api/Users |
“ptsservername” will need to be replaced by the name of the server that is hosting PTS5.
“PTSWeb” is the default path for installations. This may be different for your installation.
By default, only API calls that return patient identifiable data will expect any credentials to be passed. These credentials form a username and password that are sent in the GET request query string. To secure these credentials it is recommended that the PTS application is accessed via HTTPS.