cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP define custom server.js and post datas to cds specific entity

mustafabilen
Explorer
0 Kudos

Hello everybody,

My question is how can I define custom server.js under srv, how to give endpoint and after giving endpoint, how to post datas to my cds entity in my db folder. I have a example code like below but i don't have any idea please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

martinstenzig
Contributor

You don't need any of this "complexity" if you simply want to receive data through an OData request and store it in the database. CAP does the standard wiring and implementation for you. Have a look at this: https://cap.cloud.sap/docs/get-started/in-a-nutshell