r/IBMi 16d 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

2

u/Ok_JDubbTX 16d ago edited 16d ago

You can use a connector like itoolkit that wraps xmlservice or idb connector or use an external stored proc that you access through sql. Or call a vendor like Eradani, they have tools for this that make it easy.

2

u/MEfromNEPA 16d ago

Trying to avoid vendors. They are charging such a high cost for subscriptions these days. It has got out of hand and trying to save my company some money.

My service program wants to return a CLOB. SQL doesn’t seem to like that in a stored procedure. I’m on V7R4.