Requirements:
- Create a github profile.
- Create 4 programs/procedures each for GET/POST/PUT/DELETE.
API & References used:
- CGIDEV2
- Easy400.net
List of programs/modules:
- MAIN.RPGLE
- REQUEST.RPGLE
- PROCESSREQ.RPGLE
Compile instructions:
- Compile MAIN.RPGLE as module and then create MAIN program using CRTPGM from it.
- Compile REQUEST.RPGLE as module.
- Compile nomain module PROCESSREQ.RPGLE(as module, need to bind it to REQUEST.RPGLE)
- Create a program using CRTPGM. Keep REQUEST.RPGLE as entry module and bind PROCESSREQ.RPGLE module as well.
Server configuration:
- Create a URL mapping in server configurations to redirect a URL to your main program. Set LIBRARY permissions accordingly.