@@ -49,17 +49,20 @@ class TransactionExtension(ApiExtension):
49
49
PUT /collections/{collection_id}/items
50
50
DELETE /collections/{collection_id}/items
51
51
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
53
54
54
55
Attributes:
55
56
client: CRUD application logic
57
+
56
58
"""
57
59
58
60
client : Union [AsyncBaseTransactionsClient , BaseTransactionsClient ] = attr .ib ()
59
61
settings : ApiSettings = attr .ib ()
60
62
conformance_classes : List [str ] = attr .ib (
61
63
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" ,
63
66
]
64
67
)
65
68
schema_href : Optional [str ] = attr .ib (default = None )
@@ -132,6 +135,11 @@ def register_delete_item(self):
132
135
endpoint = create_async_endpoint (self .client .delete_item , ItemUri ),
133
136
)
134
137
138
+ def register_patch_item (self ):
139
+ """Register patch item endpoint (PATCH
140
+ /collections/{collection_id}/items/{item_id})."""
141
+ raise NotImplementedError
142
+
135
143
def register_create_collection (self ):
136
144
"""Register create collection endpoint (POST /collections)."""
137
145
self .router .add_api_route (
@@ -196,6 +204,10 @@ def register_delete_collection(self):
196
204
endpoint = create_async_endpoint (self .client .delete_collection , CollectionUri ),
197
205
)
198
206
207
+ def register_patch_collection (self ):
208
+ """Register patch collection endpoint (PATCH /collections/{collection_id})."""
209
+ raise NotImplementedError
210
+
199
211
def register (self , app : FastAPI ) -> None :
200
212
"""Register the extension with a FastAPI application.
201
213
0 commit comments