Discussions related to Visual Prolog
sbishop61
Posts: 15
Joined: 9 May 2021 9:55

OpenAPI client interface builder

Post by sbishop61 »

On the offchance, has anyone built an easy way to generate VIP classes to call an OpenAPI server?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1466
Joined: 28 Feb 2000 0:01

Re: OpenAPI client interface builder

Post by Thomas Linder Puls »

We have not made such a generator.

But the actual calling of any web server is relatively simple using an iXMLHTTPRequest or an iServerXMLHTTPRequest2 object:

Code: Select all

class msxml_HTTP_api     [generated, feature("Commercial Edition")]   predicates     newServerXMLHTTP60 : () -> iServerXMLHTTPRequest2 IServerXMLHTTPRequest2.     newXMLHTTP60 : () -> iXMLHTTPRequest IXMLHTTPRequest.   end class msxml_HTTP_api
In our examples you can study the ...\webService\jsonRpcClient.
Regards Thomas Linder Puls
PDC
Belleann
Posts: 4
Joined: 8 Jul 2024 11:15

Re: OpenAPI client interface builder

Post by Belleann »

Hello @sbishop61

The process of creating vip classes for open api servers can be made simpler with the help of certain tools and libraries. One popular option is open API generator; earlier referred to as swagger codegen. From your openAPI means, you can produce client libraries, including vip classes, in a number of programming languages.
sbishop61
Posts: 15
Joined: 9 May 2021 9:55

Re: OpenAPI client interface builder

Post by sbishop61 »

Thank you. I looked before, and have just checked again; unfortunately VIP isn't a supported client. C and cop are, but I was hoping to be naive VIP from the start

Have I missed a VIP language client output?