Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////
- // api's on Base Tab
- ////////
- //get all settings for base tab
- GET /api/basesettings
- {}
- Reply:
- {
- "rabbitMqConnectionString": "host=myServer;virtualHost=myVirtualHost;username=mike;password=topsecret",
- "serviceDbConnectionString": "User ID=shmadmin;Password=shmadmin;Host=postgres;Port=5432;Database=shm;Pooling=false;",
- "versionNumber": 2,
- "isConfigured": true,
- "port":8022
- }
- //pushes new settings to service. Restart is needed to apply them.
- POST /api/basesettings
- {
- "rabbitMqConnectionString": "host=myServer;virtualHost=myVirtualHost;username=mike;password=topsecret",
- "serviceDbConnectionString": "User ID=shmadmin;Password=shmadmin;Host=postgres;Port=5432;Database=shm;Pooling=false;",
- "port":8022
- }
- Reply:
- 200 OK
- //Restart service
- POST /api/control
- {
- "state":"Restart"
- }
- Reply:
- 200 OK
- //start service
- POST /api/control
- {
- "state":"Start"
- }
- Reply:
- 200 OK
- //Stop service
- POST /api/control
- {
- "state":"Stop"
- }
- Reply:
- 200 OK
- ////////
- // api's on Main Tab
- ////////
- GET /api/rm
- {
- "pageNumber": 0
- "itemCount": 15
- }
- Reply:
- {
- "AgentSystemId": "str",
- "AgentSensorId": "stri",
- "AgentMeasuringValueId": "strin",
- "ValueRule": "string",
- "SensorId": 5
- }
- POST /api/rm
- {
- "AgentSystemId": null,
- "AgentSensorId": "",
- "AgentMeasuringValueId": "Vaoijfoisdgusiodg",
- "ValueRule": "",
- "SensorId": 5
- }
- Reply (sends back serialized created object):
- {
- "AgentSystemId": null,
- "AgentSensorId": "",
- "AgentMeasuringValueId": "Vaoijfoisdgusiodg",
- "ValueRule": "",
- "SensorId": 5
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement