Determining your URL
You access a website using a URL (Uniform Resource Locator) and you do the same thing with Spire server via the API. In fact, the term “resource” is widely used when referring to different aspects of the API (collections, endpoints). You may have noticed that when you logon to Spire Server Administration, you are directed to a particular URL (for example https://sparkling-rain-6873.spirelan.com:10880/app/companies). On your own machine, that same server can also be accessed through, http://localhost:10880/app/companies.
For general applicability of these examples, we will use the “localhost” domain but remember that you can access a server in your environment by replacing “localhost” with either the server name, or provided domain name (https://sparkling-rain-6873.spirelan.com/). “localhost” is simply a way of saying “on this machine”.
If you aren’t sure what URL you should be using, but you are able to login to Spire desktop and access company data, do the following;
1 – Logon to Spire desktop
2 – Choose “Tools”, “Server Administration…”
Make note of the URL. It a good idea to copy this to a text editor like notepad. We’ll be using this a lot along the way.