Skip to content

Patch response body #2123

Answered by aklish
kelseybrennan asked this question in Q&A
May 24, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I originally thought this was not supported, but it looks like support is there.

If you set the following setting in ElideSettings to 200 (when you configure the Elide bean):

https://github.com/yahoo/elide/blob/master/elide-core/src/main/java/com/yahoo/elide/ElideSettings.java#L42

which you can set by calling:

https://github.com/yahoo/elide/blob/master/elide-core/src/main/java/com/yahoo/elide/ElideSettingsBuilder.java#L161-L164

It should change the behavior of patch requests to return the response body:

https://github.com/yahoo/elide/blob/master/elide-core/src/main/java/com/yahoo/elide/jsonapi/parser/state/BaseState.java#L173-L176

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aklish
Comment options

@kelseybrennan
Comment options

Answer selected by kelseybrennan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants