on 2023 Oct 04 10:49 AM
I have a scenario where I post from SAP ABAP via a proxy to an API endpoint.
In this case, I have to update the user. The URL looks like this https://company.com/api/v2/users/<user_id>;
And the payload for example like this:
{
"user_id": "12344556",
"name": "Edwin",
"nickname": "Edwin",
}
I have set up a REST receiver like this, and the call to the server is indeed to https://company.com/api/v2/users/12344556
But, the receiving party is complaining that user_id should not be in the payload!
So bottom question, how do I get the user_id from the payload and put in the URL (which works), but how to prevent it for being send to the receiver?
What you can do is:
Maybe there are some easier ways but this should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Filip,
Thanks for your suggestion! This really helped a lot.
I have taken a little different approach: I added the user_id to the ASMA with a UDF in the mapping.
Great! I'm happy that I could help 🙂
User | Count |
---|---|
75 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.