r-vengy / optionsForConsuming

Sample code for Scott Klement's "Options for Consuming REST APIs in RPG" presentation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Code for "Options for Consuming REST APIs from RPG"

Main website https://www.scottklement.com/presentations

LICENSE

See the LICENSE file provided for details on how you may use this source code.

REQUIREMENTS

If you wish to view the source code, you will find it all within the 'src' subdirectory.

GIT & GNU MAKE

You'll need git and GNU make. If not already installed, from a PASE command line, type:

  • yum install git
  • yum install make-gnu

COMPILING

To compile everything in this package, from a PASE command line, type:

  • make BUILDLIB=yourlib clean all

NOTE: you may replace 'yourlib' with the name of a library that you would like the resulting objects to be compiled into.

  • omit clean if you wish to only recompile sources that have changed.
  • omit all if you wish to delete everything this builds.

WORKING WITH NONSTANDARD LOCATIONS FOR HTTPAPI/YAJL

This code assumes that HTTPAPI is install it's its default location, which is library LIBHTTP, and that YAJL is installed in a library named YAJL.

To use a different location for these objects, edit the Makefile and change the HTTPLIB and YAJLLIB variables near the top to point to the libraries where you have these tools.

About

Sample code for Scott Klement's "Options for Consuming REST APIs in RPG" presentation.

License:BSD 2-Clause "Simplified" License


Languages

Language:RPGLE 76.6%Language:Makefile 23.4%