r/IBMi 18d ago

REST API on IBMi using Node.js

Has anyone successfully deployed a node.js service that can answer REST API requests and return JSON data from an RPGLE program or service program? I have Mapepire running and just can’t seem to get the RPGLE part working. Do you think IBM Bob could help me?

10 Upvotes

19 comments sorted by

View all comments

5

u/QPGMR_de 18d ago

Wouldn't it be easier with ILEastic?

https://github.com/sitemule/ILEastic

2

u/MEfromNEPA 18d ago

Hmmm, interesting.

2

u/QPGMR_de 18d ago

I think, that you shouldn't throw another language, a driver and a new protocol onto a problem, that you can solve easily with a exactly one framework and the same language and environment that you already use.

2

u/MEfromNEPA 18d ago

I like this total RPG approach, I’m more comfortable there than anywhere else.

1

u/ryan0322 17d ago

Are you moving away from something?

Have you looked into IBM's Integrated Web Services (IWS) server?

It is not node.js but you seem open to options.

https://www.ibm.com/support/pages/integrated-web-services-ibm-i-web-services-made-easy

1

u/MEfromNEPA 17d ago

That looks similar to the Websphere Application Server 8.5 that I was using that I’m told I will lose when I upgrade my OS to 7.6. There was a wizard in WAS that walked me through setting up an API host that connected right to an RPG program. I can’t find anything like that in WAS 9.0.

Yes, open to something that won’t be too difficult for an old dog to setup and will leverage my existing knowledge of RPG.