Difference between revisions of "I2Rest API Implementation"

From i2Rest
Jump to: navigation, search
Line 7: Line 7:
  
 
You don't have to do any changes in your RPGLE code, existing programs can still untouched.
 
You don't have to do any changes in your RPGLE code, existing programs can still untouched.
 +
 +
Upon deployment, you will be able to call all RPGLE programs described in some PCML file as an APIs at following URL:
 +
<pre>http(s)://<your_i2rest_server_main_gate>/<mount_point>/<program_name></pre>
 +
Where:
 +
* your_i2rest_server_main_gate - name and optional port of i2Rest Server's main gate
 +
* <div id="mount_point></div>mount_point - common mount point name for all programs in this PCML
 +
* program_name - value of 'name' attribute of program as described in PCML
 +
 +
The specification file for this PCML will be available at:
 +
<pre>http(s)://<your_i2rest_server_main_gate>/openapi30/<mount_point></pre>

Revision as of 16:23, 25 May 2020

In order to convert existing *PGM or *SRVPGM object to REST OAuth2 enabled web service, you have to complete following steps:

You don't have to do any changes in your RPGLE code, existing programs can still untouched.

Upon deployment, you will be able to call all RPGLE programs described in some PCML file as an APIs at following URL:

http(s)://<your_i2rest_server_main_gate>/<mount_point>/<program_name>

Where:

  • your_i2rest_server_main_gate - name and optional port of i2Rest Server's main gate
  • mount_point - common mount point name for all programs in this PCML
  • program_name - value of 'name' attribute of program as described in PCML

The specification file for this PCML will be available at:

http(s)://<your_i2rest_server_main_gate>/openapi30/<mount_point>