Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer:resolution/missing options should be inside a Content-Type #3164

Open
steve-chavez opened this issue Jan 16, 2024 · 0 comments
Open
Labels
idea Needs of discussion to become an enhancement, not ready for implementation

Comments

@steve-chavez
Copy link
Member

Problem

Currently there are disparate prefers headers to do a bulk insert and upsert. Ideally this would be done through a single content type so it later can be overridden with #2826.

A similar idea was previously discussed on #2066 (comment)

Solution

Use a vendor media type that contains both options:

POST /employees
Content-Type: application/vnd.pgrst.bulk+json;resolution=merge-duplicates;missing=default

Later on we can include the on_conflict and columns query parameters as parameters of the same content-type.

@steve-chavez steve-chavez added the idea Needs of discussion to become an enhancement, not ready for implementation label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Needs of discussion to become an enhancement, not ready for implementation
Development

No branches or pull requests

1 participant