This workshop will show you how to create an RPG SDK (a set of procedures to work with/consume a web API) from scratch.
We use these tools:
- https://ileditor.dev/ - My IDE of choice. You can use any you want (RDi, ILEditor, SEU, etc)
- https://github.com/sitemule/noxDB - The JSON parsing library. Service program is also in this repo so you can restore the save file.
- Copy
jsonxml.pkg
to IFS CPYFRMSTMF FROMSTMF('jsonxml.pkg') TOMBR('/QSYS.LIB/PUNKAPI.LIB/PACKAGE.FILE') MBROPT(*REPLACE) CVTDTA(*NONE)
RST DEV('/QSYS.LIB/PUNKAPI.LIB/PACKAGE.FILE') OBJ(('/QSYS.LIB/PUNKAPI.LIB/JSONXML.SRVPGM'))
- Copy
- https://punkapi.com/documentation/v2 - The API we use in the workshop (parts 1-9).
- https://todo-api-example.herokuapp.com/ - The API we use in the workshop (parts 10-14)
- The repo for this app is here: https://github.com/worksofliam/todo-api
- Introductions
- Setting up the environment
- API Planning
- Fetching the data
- Our first test program
- Cleanup
- Prettier APIs
- Error Handling
- Get by ID
- Intro to next section where we look at how to authentictate with JWT
- Implementing JWT authentication
- Fixes and Test program
- Getting a list
- Adding to the list