Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on June 15, 2023, 01:24:14 am



Title: Ask Reuben 179 - Mapping curl to httpRequest
Post by: Reuben B. on June 15, 2023, 01:24:14 am
When coding a request to a third party Web Service, it would be nice if they follow standards and provide an OpenAPI specification that you can use fglrestful or fglwsdl to generate 4gl code.
 
Unfortunately not all Web Service providers do this.  What you may find is that their API documentation provides helper classes or code examples in various programming languages but not Genero.  You have to then interpret their documentation to write your 4gl code.
 
Hopefully they have some curl examples at which point it is then a case of understanding a correlation between various curl options and 4gl methods in order to build your 4gl code to call a Web Service.

Read more at https://4js.com/ask-reuben/ig-179/