Question about why return 204 NO_Content when doing update #3007
-
Hi, Expected BehaviorGiven (update data-type/1) Return (Body after updating): Current BehaviorGiven (update data-type/1) Return (Body after updating): Possible Solutionwhen construct the patch response, is it possible to let end user decide to return response or not? ContextI am in a context of building a CRUD admin api. And I need to present the response (entity after updating) to client. Although I have the option to call /Get api after updating, reading the response after update would make work easier. Because I don't need to call extra apis. Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
you can use this method while building the ElideSettings. https://github.com/yahoo/elide/blob/master/elide-core/src/main/java/com/yahoo/elide/ElideSettingsBuilder.java#L182 |
Beta Was this translation helpful? Give feedback.
-
Thank you, that is really helpful. I think it would be nice to add how to override ElideSetting into the Elide documentation |
Beta Was this translation helpful? Give feedback.
you can use this method while building the ElideSettings. https://github.com/yahoo/elide/blob/master/elide-core/src/main/java/com/yahoo/elide/ElideSettingsBuilder.java#L182