rest_server_integration_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rest_server_integration_guide [2020/05/12 22:43] – wikiadmin | rest_server_integration_guide [2023/03/20 10:43] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Deploying TransSECS with a REST interface allows the reading and writing of values over http. The default port for the server is 7220, so, for example the url may start with http:// | + | ==== TransSECS as a REST Server ==== |
| + | |||
| + | |||
| + | Deploying TransSECS with a REST interface allows the reading and writing of values over http. | ||
| + | |||
| + | The default port for the server is 7220, so, for example the url may start with http:// | ||
| All REST requests return a JSON object. | All REST requests return a JSON object. | ||
| Line 10: | Line 15: | ||
| <code javascript> | <code javascript> | ||
| - | {" | + | { |
| - | " | + | " |
| + | " | ||
| + | } | ||
| </ | </ | ||
| Line 21: | Line 28: | ||
| <code javascript> | <code javascript> | ||
| {" | {" | ||
| + | </ | ||
| + | |||
| + | ==== REST Server in TransSECS ==== | ||
| + | |||
| + | |||
| + | It's also possible to deploy a RESTServiceManager inside TransSECS rather than wrapping at deployment. | ||
| + | |||
| + | serversdevicemanager.additionalservers=com.ergotech.vib.servers.rest.RESTServiceManager | ||
| + | |||
| + | Then add " | ||
| + | |||
| + | http:// | ||
| + | |||
| + | That should give you a list of all the servers in the " | ||
| + | |||
| + | For broader access, set //Publish// and //All Application// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Now LIST will now give you many additional tags. For example, if you are using the GEMHost sample application, | ||
| + | |||
| + | http:// | ||
| + | |||
| + | will give you a list of all the variables in the system. | ||
| + | |||
| + | |||
| + | You can also update values and send messages. | ||
| + | |||
| + | < | ||
| + | curl -X POST -H " | ||
| + | curl -X POST -H " | ||
| </ | </ | ||
rest_server_integration_guide.1589337835.txt.gz · Last modified: by wikiadmin
