cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to test sap btp api without passing the cookies?

DarshanAsknani
Explorer
0 Kudos
260

Hi Experts,

I'm trying to test my SAP RAP application in Postman which works well in the browser but cannot get the results in Postman.
web_output.jpg
I have done the authorization referring to this blog: Manually Testing SAP BTP ABAP Environment APIs with Postman using OAuth 2.0 Authorization Code Grant


In Postman the status shows '200' still getting no results in the body: 

postman_error.jpg
But it works when I copy the cookies from the browser and add them to the request header without even passing any credentials or authorization details.

postman_success.jpg
Is there any way this could work without passing the cookies?

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion
0 Kudos

if you follow that blog correctly, make sure the url is *****abap*****, not ******abap-web*****, no "-web" in the url for the odata call.

DarshanAsknani
Explorer
0 Kudos
Thanks for the response. Now I'm able to test it in Postman.

Answers (0)