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

Part 4: Create: returning the created feature in the body of the response ? #925

Open
rouault opened this issue May 23, 2024 · 2 comments
Open

Comments

@rouault
Copy link
Contributor

rouault commented May 23, 2024

When creating a feature, the server may compute automatically some fields (UUIDs, timestamps, etc.) that the client may wish. Currently it needs to follow the Location header returned by the 201 response. It could be worth to have a way of getting the updated feature representation, returned as the body of the response, to save a client-server round-trip. If we don't want to impose such behaviour as required, that could be done through some "Return-Created-Feature: true" request header, optionally honored by the server.

(triggered by qgis/QGIS#57486)

@cportele
Copy link
Member

cportele commented Jun 3, 2024

Meeting 2024-06-03: Having the possibility to get the representation in the response sounds like a useful option. The default behavior should be to not require content in the response.

@m-mohr
Copy link
Contributor

m-mohr commented Jul 16, 2024

Is this really needed? What's the issue with following the Location header?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants