I built a backend platform for my client with which my client can create products for the custom solution. Initially the response of a
POST to the
/products endpoint returned an object containing a
data object which contains the product. Also the id of the newly created product was included in the
data object in the response. With that id I would proceed and setup some database related things.
But today my client tried to add another product resulting in an error. I checked up on the console and noticed that the
/products response has changed.
Now it’s an object directly containing the product, though, with far less information. Most importantly it doesn’t include the id anymore.
Was that change intended? If so how can I retrieve the id of the newly created product?
Thank you for your help!