BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Rest call from backend service

    Posted 02/19/24 06:08 AM

    Hi,

    In my user interface I have a REST call and now I want to call it from a service.

    How can I (without adding a external service) do it?

    Regards



    ------------------------------
    Filipe Ventura
    ------------------------------


  • 2.  RE: Rest call from backend service

    Posted 02/20/24 01:53 AM

    Hi @Filipe Ventura,

    any reason why you do not want to use external services? This is the recommended capability for this use case and it is very easy to use provided the REST API has an OpenAPI definition: https://www.ibm.com/docs/en/baw/23.x?topic=services-calling-external-service

    If the REST API does not have an OpenAPI definition you can try to write an OpenAPI definition that describes the OpenAPI definition.

    Alternatively, you could use the out of the box Http Client client External Service from the system data toolkit. However, it is only available in traditional environments. You could also write your own Java based Http Client and use it as a Java External Service: https://www.ibm.com/docs/en/baw/23.x?topic=service-invoking-java



    ------------------------------
    Maximilian Tews
    ------------------------------



  • 3.  RE: Rest call from backend service

    Posted 02/28/24 07:50 AM

    Hi Filipe,

    You can try this : 
    Invoking a REST service by using JavaScript - IBM Documentation

    Best regards



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------