-
Notifications
You must be signed in to change notification settings - Fork 105
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
Transaction extension inconsistency #610
Comments
The plan is to have a separate Collection Transaction Extension specification from the existing (item) Transaction Extension spec. See this PR + thread: stac-api-extensions/transaction#4 No one has committed to working on this yet, but it is generally agreed upon as a useful feature. stac-server also has support for POST create of a Collection: https://github.com/stac-utils/stac-server/blob/3299c6d0f344d87635bdea8d68d52f42d7991148/src/lambdas/api/app.js#L152 I agree that the existing non-standard support for collection transactions should be more aligned with the Transaction Extension for items, which tries to follow a typical RESTful / HATEOAS style. I would also say that the (inaccurate) documentation of the existing endpoint should instead be:
(note that the existing Transaction support doesn't support PATCH -- I filed this last year #375) |
I feel like we should make a pr to fix this for now. |
Closing but feel free to re-open. |
The collections operations are not part of the transaction API extension (yet). But these endpoints are already implemented in
stac-fastapi
.It would be nice if the operations are more consistent with the item operations.
For example, to update a collection, use the
PUT /collections/{collection_id}
endpoint explicitly including the collection ID.It looks like it is also intended to be implemented like this according to this documentation snippet:
stac-fastapi/stac_fastapi/extensions/stac_fastapi/extensions/core/transaction.py
Lines 35 to 44 in 925a9bb
However right now, the update collection endpoint doesn't include the collection ID:
stac-fastapi/stac_fastapi/extensions/stac_fastapi/extensions/core/transaction.py
Lines 119 to 132 in 925a9bb
The text was updated successfully, but these errors were encountered: