on 09-23-2023 7:17 AM
Hi,
I have created an action:
@protocol: 'rest'service RootService {
In the eventhandler I want to access the payload when I call the action:
POST {{protocol}}://{{host}}:{{port}}/rest/root/createPDFAuthorization: Basic admin:Content-Type: application/json
But "data" is allways emty
srv.on("createPDF", async (req, next) => { console.log(req.data) --> undefined!
Any ideas, how I can access the payload from my POST request within the CAP action?
Jens
Body should be:
{ "payload": { "TID": 1} }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.