cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming REST API provided by one CF Application into another CF application

0 Kudos

Hi All,

I have created RESTful API and have deployed the Spring boot application in SAP CF. I am able to access those APIs from POSTMAN but when I try to consume those API in another CF RestClient Application Application I am getting error and I am not able to use the same API URL in my new Application.

Being a starter in SAP CF , I think I am missing something here.

Can someone help me here about how to use those APIs?

Thanks in advance

Amitansu

Hi Amitanshu,

The scenario you want to perform seems valid. Could you please share the error that you receive as http response code, response body and etc. Is possible also to share the rest client code?

Best regards,

Ismail Alidzhikov

Accepted Solutions (1)

Accepted Solutions (1)

SergioG_TX
Active Contributor
0 Kudos

the possible issues are:

1) cross domain issue (most likely cause)

2) POSTMan sends additional headers that your external application is not sending - have you tried doing a FETCH first (to get the x-CSRF token ?) then using that as your authentication token - I have encountered this scenario even on an onpremise system when the serving api doesnt recognize the consuming request

https://help.sap.com/viewer/c5bc243e9e824373a5e8de7c37b1dee1/Cloud/en-US/0e432781e0c646a09602a4aab78...

Answers (0)