The Phorest API is an application programming interface, it’s a set of rules that lets a program talk to the Phorest Application, exposing Phorest data and functionality.
Testing the API - Step-by-step guide
You can find the Phorest Postman collection with all the endpoints here.
To import the Phorest API Collection into Postman go to File -> Import -> Import From Link tab.
The Phorest Postman Collection has a set of variables that you may want to configure.
To configure these variables click Edit on the API collection.
This will show a list of variables that can be set.
The most important ones to set are third-party-api, business and branch.
You can also set your username and password by right-clicking on the endpoints folder and selecting the Authorization tab. The API requires Basic Authentication, this will be the API username and password supplied by Phorest.
Note: The username will always have the prefix `global/` e.g firstname.lastname@example.org.
To test the setup, open up the collection and click on the endpoints folder.
Click Get branches and press Send.
The response will be a list of branches and the branch details.