REST API

The REST API provides developers with a Web Application Programming Interface (Web API) based on the Representational state transfer (REST) software architectural style.

The following web.config application settings are used to configure the REST API:

KeyValue
ApiAuthority The URL of an authorization server, which supplies the API with a public signing key so that it can validate the signature of access tokens. Required.
ApiAudience The audience of tokens that will be accepted. Required.
ApiDbConnection Connection details for the SISfm database. Required for the Database API, and should normally be the same as the DbConnectionIFM setting.
ApiDataFolderMap The URL or physical path of the folder containing facility map XML, SVG and image files. Required for the Map Compiler API, and should normally be the same as the DataFolderMap setting.

Other web.config settings are required to use the REST API (see required for REST API comments in the released version of this file):

The REST API can be tested using utilities such as:

In the following API documentation, SISfm is the SISfm URL, and the request body and response data are in JSON format.

Map Compiler API

The Map Compiler desktop edition uses SISfm/api/MC when its UploadAuthTokenUrl setting is defined, to get details from a remote SISfm website, and to post compiled files to it.

Database API

GET SISfm/api/data

POST SISfm/api/data

PUT SISfm/api/data

DELETE SISfm/api/data