Skip to content

How do I return the request object as the response after adding one key to the request body? #119

@EarthyOrange

Description

@EarthyOrange

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions