Hi George,
In a GET http request usually the parameters are passed on the URL.
Some may be passed through the HTTP(S) headers, for instance authentication is often passed that way.
This will work both in a service object or in the HttpRequestSend() function calls.
If you need help on a specific project or service/API call that you cannot share in public, feel free to create a support case so our tech support can assist you with this.
Regards,
------------------------------
Roger van Valen
Senior manager, software engineering
Rocket Software
Dordrecht, The Netherlands
------------------------------
Original Message:
Sent: 05-04-2023 11:10
From: George Milisis
Subject: How to call an API from a Web Page with parameters
In this case the service will be GET, I suppose even if I provide either necessary input?
------------------------------
George Milisis
Syntax Information Technology Inc.
Athens GR
Original Message:
Sent: 05-04-2023 10:30
From: Roger Van Valen
Subject: How to call an API from a Web Page with parameters
Hi George,
Another more convenient way would be to create a service definition in the workbenchfirst.
After creating a service definition to call a service (this can be a REST service, SOAP service, Database service or what have you), you can drag and drop this service from the 'services' view onto your web page directly. The Web builder will create a button to onvoke the service and also input and output fields for the input and result of the service.
Regards,
Roger.
------------------------------
Roger van Valen
Senior manager, software engineering
Rocket Software
Dordrecht, The Netherlands
Original Message:
Sent: 05-04-2023 10:09
From: George Milisis
Subject: How to call an API from a Web Page with parameters
Hello,
I would like to call an API from a Web Page that uses parameters. Could anyone please give me a sample?
Thanking you in advance
George
------------------------------
George Milisis
Syntax Information Technology Inc.
Athens GR
------------------------------