Running of a collection to test API’s from IBM i

Folks:

I’m looking for some guidance regarding automating the running of a collection to test API’s.

Under normal circumstances, I’d install the postman cli and invoke the API’s that way.

The problem is, I want to trigger the run from an IBM i system (formerly known as AS/400, System i, & iSeries).

There is no CLI client for IBM i (or AIX, which I could use in a pinch).

I tried creating a monitor that I can invoke via a web request … but some of the API’s in the collection are failing when run via the monitor but do not fail when run using the PM desktop or web clients.

Is there a better way to trigger the run of a collection using a specific environment without installing the CLI app?

Thanks!

David

Ah, figured out the problem.

Turns out the api key I was using was set at the global level … which aren’t available when running a monitor.

I moved the api key to the environment and it works perfectly.

1 Like