Auto-generated properties in CRUD operation #1256
Unanswered
louiskhchan
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a question about mocking the server response for POST requests in Mockoon. On our server, when we use POST to create an object, the server adds some additional properties (like item ID, creation date, etc.) to that object and returns it as the response.
For example, if we POST the following JSON object to the server:
The server may respond with something like this:
However, Mockoon does not support this behavior because the CRUD route only reads the JSON body from a POST request and saves it in the data bucket as is. Are there any plans to add this feature to Mockoon? For instance, can you enable us to create a template for the new object in the data bucket and reference the incoming JSON object in that template?
Beta Was this translation helpful? Give feedback.
All reactions