The following example shows the ExposedSingleton:
This server code is represented in SmartPlant Foundation using the following model XML:
This is exposed using the following GET:
http://[Local Host]/spfserver/api/v1/ExposedSingleton
For this singleton example to work, the return type must be a class object with a defined public ID string property. The displayed example will not work with a primitive return type.