Difference between revisions of "I2Rest Advanced Setup"

From i2Rest
Jump to: navigation, search
 
(106 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:I2Rest Basic Setup}}
+
This section describes configuration options of i2Rest Server. [[I2Rest_quick_config|Basic configuration]] allows only demo server functionality, and must be extended to supply full functional server instancence. Combining examples bellow you can achieve server functionality that suits your requirements. <br>
Take a look on how the minimal i2Rest configuration might look like.
+
 
<pre>
+
* [[Using secured connections]]
{
+
* [[i2Rest Gate URL definition using Unix socket|Serving incoming connections using Unix sockets]]
  "gates":
+
* [[I2Rest_with_syslog|Using syslog with i2Rest Server]]
  {
+
* [[Configuring OAuth2 authorization]]
      "main"      : {"url":"http://i2rest.com:22088"},
+
* [[Run_command_Api_config|How to allow calls to run_command API]]
      "management" : {"url":"http://192.168.0.233:8080"},
+
* [[Management_API_config|How to allow calls to management API]]
      "session"    : {"url":"http://192.168.0.233:8888/session_gate"}
+
* [[Remote_API_call_config|How to call API located on remote IBM i server]]
  },
+
* [[I2Rest_Basic_PowerApps_Connector|How to create Microsoft Power Apps custom adapter to i2Rest Server]]
  "session_systems":
+
i2Rest server should be [[I2Rest_Start|restarted]] to aplly your new configuration *.json.
  [
 
        {"name": "*LOCAL",    "submit":"SBMJOB JOB(I2RESTS) USER(${user}) CMD(CALL JPCML/I2REST PARM('-session' '-url' '${surl}' '-uid' '${uid}'
 
          '-user' '${user}' '-init' 'ADDLIBLE JPCML' '-dcm_client_id' 'MYCLIENT')) INLLIBL(KAPBASELIB QGPL)"},
 
        {"name": "*ANONYMOUS", "submit":"SBMJOB JOB(I2RESTA) USER(${user}) CMD(CALL JPCML/I2REST PARM('-session' '-url' '${surl}' '-uid' '${uid}'
 
          '-user' '${user}' '-init' 'ADDLIBLE JPCML' '-dcm_client_id' 'MYCLIENT')) INLLIBL(KAPBASELIB QGPL)"},
 
  ],
 
}
 
</pre>
 
According to [[I2Rest_Config|I2Rest Configuration Object description]] just two i2Rest Configuration Object fields are mandotary: [[gates object]] and [[i2Rest_Gates|main, manager and session gates object]]. With only this two configured fields we already can run a server instance, but still can't get use of it.
 

Latest revision as of 20:25, 12 July 2020

This section describes configuration options of i2Rest Server. Basic configuration allows only demo server functionality, and must be extended to supply full functional server instancence. Combining examples bellow you can achieve server functionality that suits your requirements.

i2Rest server should be restarted to aplly your new configuration *.json.