Difference between revisions of "I2Rest API Implementation"

From i2Rest
Jump to: navigation, search
Line 3: Line 3:
  
 
* Prepare file describing your program in [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzahh/pcml.htm PCML format]. You can do it manually or generate PCML automatically using CRTRPGMOD (PGMINFO and INFOSTMF fields)
 
* Prepare file describing your program in [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzahh/pcml.htm PCML format]. You can do it manually or generate PCML automatically using CRTRPGMOD (PGMINFO and INFOSTMF fields)
* (Optional) Enhance  PCML description with extended [I2Rest_PCML_syntax i2Rest PCML attributes and tags]
+
* (Optional) Enhance  PCML description with extended [[I2Rest_PCML_syntax|i2Rest PCML attributes and tags]]
 
* Publish PCML description to i2Rest Server using ADD_PCML API or add it to i2Rest Server Configuration file
 
* Publish PCML description to i2Rest Server using ADD_PCML API or add it to i2Rest Server Configuration file
  
 
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.

Revision as of 14:43, 22 May 2020

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

  • Prepare file describing your program in PCML format. You can do it manually or generate PCML automatically using CRTRPGMOD (PGMINFO and INFOSTMF fields)
  • (Optional) Enhance PCML description with extended i2Rest PCML attributes and tags
  • Publish PCML description to i2Rest Server using ADD_PCML API or add it to i2Rest Server Configuration file

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