Skip to content

Behaviour with POST and Accept: application/vnd.pgrst.object+json #3374

Answered by wolfgangwalther
sted asked this question in Q&A
Discussion options

You must be logged in to vote

in line with the principle of least astonishment.

I'd be very surprised if the success of my POST request depended on the Prefer: return=rep header. Or, since this is only my preference and not strictly enforced.. if the success of my POST request depended on the server's willingness to honor my return=rep preference.

Thinking this further, the server would have the choice to never return a response in those cases, even if it could, just to avoid the 406 error.

This will quickly be much more complex and confusing than what we have right now.

At least the current handling is consistent.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@steve-chavez
Comment options

Comment options

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

@wolfgangwalther
Comment options

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

This discussion was converted from issue #3372 on April 03, 2024 16:56.