on 2023 Sep 23 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
Request clarification before answering.
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 |
---|---|
30 | |
21 | |
16 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.