cancel
Showing results for 
Search instead for 
Did you mean: 

Run and Debug Action in CAP Node.JS

Vipin_V
Explorer
0 Kudos

Hi,

I have unbound functions and actions in my service definition and able to successfully run and debug functions

https://port4004-workspaces-ws-xyz.us10.applicationstudio.cloud.sap/xyzxyz/xyzxyz()

however not with action

Action needs post call rather than GET and as such is there a way to run and debug action from BAS ? went through Capire document and couldn't find a way and in the web there are mentions of using form for making post call and using POSTMAN however they aren't triggering the breakpoint (understandable)

How an action implemented in Node.JS CAP is being debugged by you ? what approach are you following ?

Regards,

Vipin.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor

I would suggest you use the BAS pre-installed Extension REST Client and craft the POST request there. You can find a lot of examples in my sample app:

https://github.com/gregorwolf/bookshop-demo/tree/main/tests/app