Simple SQL DB2 IBMi Webservice call
A simple example of how to call a webservice using IBMi DB2 SQL functions to return a joke in JSON format using HTTP_GET and HTTP_GET_VERBOSE.
select QSYS2.HTTP_GET('https://v2.jokeapi.dev/joke/Programming','{"sslTolerate": "true"}') from sysibm.sysdummy1;
select * from table(qsys2.http_Get_Verbose('https://v2.jokeapi.dev/joke/Programming','{"sslTolerate": "true"}')) x;
Swift Developer presso ECONORMA Sas | Comarch ERP Java Developer presso Progetto EDP Srl
10 个月Hi, Thanks for ehe simple example. How can i add "bearer authorization" to header in the GET call? Thanks
President at West Coast Casual Inc.
2 年How is my longtime friend been doing recently? good I hope