====/api/connect==== ===Usage=== This function returns details about the ARDI server and its database configuration. ===Details== ^Detail^Value^ |Group|Server| |From Server Version|0.9.0| |Permission|[[permission_guest|Public]]| |Methods|GET or POST| ==Parameters== ^Parameter^Notes^Meaning^ |**format**|String (xml)|Either 'xml' or 'json'| ===Return Value=== The return value is an XML or JSON file that gives you information about... ^Element^Meaning^ |Auth|If this is **no**, indicates that the server is in //guest mode// and does not require authentication to request simple data| |Sites|A list of the sites available on the server (if supported and permitted)| |Version|The internal database version of the server.| |Services|What ARDI and internal services are available. This will include a list of contexts and which port number(s) any live data consolidators run on | |Settings|Specific settings regarding the server, such as zero energy confirmation and isolation| ===Examples=== ==Request== http:///s//api/connect ==Success (XML)== no Primary Site Secondary Site Tertiary Site Primary Site 0.9.9c disabled Unlimited ==Success (JSON)== { "auth": "no", "sites": [{ "url": "default", "name": "API Demo Server" } ], "name": "TripleI", "version": "0.9.9e", "services": [{ "name": "data", "port": "8079" }, { "name": "contextdata", "port": "8079", "id": "1", "context": "Actual" }, { "name": "web", "port": "80" } ], "settings": [{ "name": "isolation", "value": "disabled" }] }