cancel
Showing results for 
Search instead for 
Did you mean: 

Experts how can I use CPI API endpoint as an REST service in SAPUI5?

0 Kudos

Hi experts,

I have a scenario where I have exposed the iFlow on CPI as an REST service so that it can be called by SAPUI5 as a service. Please provide any guidance on how to achieve that.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vanshikachaturvedi3312,

You can use it just as long as it is to kick start the iFlow.

The Sender piece usually is meant as an Asynchronous interface. So, your UI5 shouldn't expect any answer from CPI in Synchronous mode. Technically it is possible to make it synchronous, but it not a best practice. CPI is a message broker and every time you make some interface work in synchronous, you make it very slow.

To consume the rest endpoint, all you need it to create an an instance of JSONModel on your UI5 controller.

Best regards,
Ivan