Exploring what is available using the API browser
Now that you can access the Spire API using your browser, you can explore what is available. You can go up a level, and look at what’s available at this URL;
https://localhost:10880/api/v2/
{ "links":{ "accounts":"https://localhost:10880/api/v2/accounts/", "admin":"https://localhost:10880/api/v2/admin", "companies":"https://localhost:10880/api/v2/companies/", "licenses":"https://localhost:10880/api/v2/license/", "status":"https://localhost:10880/api/v2/status", "updates":"https://localhost:10880/api/v2/updates" } }
Note that from this level in the hierarchy of endpoints and collections, you can get information like;
accounts – A list of the user account and their attributes
companies – A list of available companies
licenses – Information about licenses the current Spire license holder has
status – The current version of the server
updates – What updates there are available, and attributes you can review about those updates
One important point here is that the API does not limit you to accessing company data. Here we are gaining access to data regarding the overall installation of Spire.