i2Rest Server quickstart
Revision as of 17:41, 5 June 2020 by Pavel.lobko (talk | contribs)
Our done-in-three-steps i2Rest Server configuration template will help you to set up you server in a minutes.
- step1
- Specify host and port for "main" and "management" gates of the server.
- step2
- Set the User to
{ "curdir" : "/home/btab/svn/123/jpcml", "gates": { "main" : {"url":"http://i2rest.com:22088"}, "management" : {"url":"http://192.168.0.233:8080"} }, "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)"} ], "anonymous_user":"BTPL", "pcmls": [ {"pcml_mount":"echo", "pcml_file":"pcml/echo.pcml", "valid_in_anonymous":true}, ], "OAuth2": { "scopes": {"run_program" : {"description":"Run *PGM and *SRVPGM"}, "management_functions" : {"description":"Invoke i2Rest manager APIs"}}, "clients": { "OAUTH21":{"redirect_uri":"http://api.i2rest.com:22088/oauth2/redirect", "description":"Test client", "valid_scopes":["run_program", "management_functions"], "valid_grant_types":["authorization_code", "urn:ietf:params:oauth:grant-type:device_code", "refresh_token", "client_credentials"]} }, "tokens": {"type":"token"},"refresh_tokens":{"type":"refresh_token"},"codes":{"type":"code"},"device_codes":{"type":"user_code"}, "login_page" : "/pages/Login/index.html", "decision_page" : "/pages/user_decide.html", "bad_auth_page" : "/pages/bad_auth.html", "enter_code_page" : "/pages/enter_code.html", "device_connected_page" : "/pages/device_connected.html" } }