Difference between revisions of "I2Rest Start"
Pavel.lobko (talk | contribs) |
Pavel.lobko (talk | contribs) |
||
Line 11: | Line 11: | ||
#:<code>/QSYS.LIB/I2REST.LIB/I2REST.PGM -start -config <path to *.json config file></code> | #:<code>/QSYS.LIB/I2REST.LIB/I2REST.PGM -start -config <path to *.json config file></code> | ||
With first option, you can define any additional options for submitting job. Only two things are required - ALWMLTTHD(*YES) and I2REST library in library list of submitted job.<br/> | With first option, you can define any additional options for submitting job. Only two things are required - ALWMLTTHD(*YES) and I2REST library in library list of submitted job.<br/> | ||
− | Second option is useful when there is no "syslog" parameter defined in json config file. In this case, all output messages will be printed in qshell console. Note that if qshell console will be closed, server instance will be stopped automatically. To leave qshell console without closing it, use F12 and execute STRQSH again to return back. Job that serving this i2Rest Server instance under QShell will have name <code>nnnnnn/<your_user_id>/QP0ZSPWT</code>. | + | Second option is useful when there is no "syslog" parameter defined in json config file. In this case, all output messages will be printed in qshell console. Note that if qshell console will be closed, server instance will be stopped automatically. To leave qshell console without closing it, use F12 and execute STRQSH again to return back. Job that serving this i2Rest Server instance under QShell will have name <code>nnnnnn/<your_user_id>/QP0ZSPWT</code>.<br> |
Now, with your own i2Rest Server instance running, you can proceed to [[I2Rest_Basic_Test|test API call]]. | Now, with your own i2Rest Server instance running, you can proceed to [[I2Rest_Basic_Test|test API call]]. |
Revision as of 16:49, 15 June 2020
To start i2Rest Server instance, you need JSON configuration file . See instructions how to prepare simplest config.
There are two ways to start i2Rest Server instance:
- Using SBMJOB
ADDLIBLE I2REST
SBMJOB CMD(CALL PGM(I2REST) PARM('-start' '-config' '<path to *.json config file>')) ALWMLTTHD(*YES)
- From QShell terminal:
STRQSH
liblist -a I2REST
export QIBM_MULTI_THREADED=Y
/QSYS.LIB/I2REST.LIB/I2REST.PGM -start -config <path to *.json config file>
With first option, you can define any additional options for submitting job. Only two things are required - ALWMLTTHD(*YES) and I2REST library in library list of submitted job.
Second option is useful when there is no "syslog" parameter defined in json config file. In this case, all output messages will be printed in qshell console. Note that if qshell console will be closed, server instance will be stopped automatically. To leave qshell console without closing it, use F12 and execute STRQSH again to return back. Job that serving this i2Rest Server instance under QShell will have name nnnnnn/<your_user_id>/QP0ZSPWT
.
Now, with your own i2Rest Server instance running, you can proceed to test API call.