i2Rest Server quickstart

From i2Rest
Revision as of 12:16, 8 June 2020 by Pavel.lobko (talk | contribs)
Jump to: navigation, search

Our i2Rest Server configuration template will help you to set up you server in a minutes. With this minimal configuration your server instance will be able to process request to test I2RESTECHO program.
Create *.json (you can name your file any you like, config.json for example) file and copy-paste to it the next lines:

{
   "gates":
   {
      "main"       : {"url":"http://<host_name>[:port]"},
      "management" : {"url":"http://<host_name>[:port]"}
   },
   "session_systems":
   [
         {"name": "*LOCAL",     "submit":"SBMJOB JOB(I2RESTS) USER(${user}) CMD(CALL JPCML/I2REST PARM('-session' '-url' '${surl}' '-uid' '${uid}' 
             '-user' '${user}' '-init' 'ADDLIBLE JPCML' )) 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' )) INLLIBL(KAPBASELIB QGPL)"}
   ],

   "pcmls":
   [
      {"pcml_mount":"echo",     "pcml_file":"pcml/i2restecho.pcml", "valid_in_anonymous":true},
   ]
}

Contact to your System administrator for available host and port for "main" and "management" gates of the server, and set up appropriate settings.
Now save your config.json on IFS (for example in i2Rest folder, but it's up to you) and you are ready to start your i2Rest Server instance.
Please explore more details how to configure your i2Rest server.