I have an endpoint that accepts a JSON object and responds with the same JSON object with the ID field updated with a unique value. So the rest of the request body is pretty much untouched.
My plan is to use a few fields from the request body for switch and assign an ID based on that. Since it can be a huge object, I want to avoid using templating to copy all the keys from the request body to the response body. Is there an easy way to do that?
Thanks!!