@@ -49,17 +49,20 @@ class TransactionExtension(ApiExtension):
4949 PUT /collections/{collection_id}/items
5050 DELETE /collections/{collection_id}/items
5151
52- https://github.com/radiantearth/stac-api-spec/blob/master/ogcapi-features/extensions/transaction/README.md
52+ https://github.com/stac-api-extensions/transaction
53+ https://github.com/stac-api-extensions/collection-transaction
5354
5455 Attributes:
5556 client: CRUD application logic
57+
5658 """
5759
5860 client : Union [AsyncBaseTransactionsClient , BaseTransactionsClient ] = attr .ib ()
5961 settings : ApiSettings = attr .ib ()
6062 conformance_classes : List [str ] = attr .ib (
6163 factory = lambda : [
62- "https://api.stacspec.org/v1.0.0-rc.3/ogcapi-features/extensions/transaction" ,
64+ "https://api.stacspec.org/v1.0.0/ogcapi-features/extensions/transaction" ,
65+ "https://api.stacspec.org/v1.0.0/collections/extensions/transaction" ,
6366 ]
6467 )
6568 schema_href : Optional [str ] = attr .ib (default = None )
@@ -132,6 +135,11 @@ def register_delete_item(self):
132135 endpoint = create_async_endpoint (self .client .delete_item , ItemUri ),
133136 )
134137
138+ def register_patch_item (self ):
139+ """Register patch item endpoint (PATCH
140+ /collections/{collection_id}/items/{item_id})."""
141+ raise NotImplementedError
142+
135143 def register_create_collection (self ):
136144 """Register create collection endpoint (POST /collections)."""
137145 self .router .add_api_route (
@@ -196,6 +204,10 @@ def register_delete_collection(self):
196204 endpoint = create_async_endpoint (self .client .delete_collection , CollectionUri ),
197205 )
198206
207+ def register_patch_collection (self ):
208+ """Register patch collection endpoint (PATCH /collections/{collection_id})."""
209+ raise NotImplementedError
210+
199211 def register (self , app : FastAPI ) -> None :
200212 """Register the extension with a FastAPI application.
201213
0 commit comments