Skip to content

Commit 018c7f8

Browse files
committed
update docs [skip ci]
1 parent 4f8bb8e commit 018c7f8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/en/usage.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,22 @@ OGC API - Records - Part 1: Core 1.0
273273
>>> my_catalogue_cql_json_query['features'][0]['properties']['title']
274274
u'Roadrunner ambush locations'
275275

276+
>>> import json
277+
278+
>>> record_data = 'sample-geojson-record.json'
279+
280+
>>> with open(record_data) as fh:
281+
.. data = json.load(fh)
282+
283+
>>> identifier = data['id']
284+
285+
>>> w.collection_item_create('my-catalogue', data)
286+
287+
>>> w.collection_item_update('my-catalogue', identifier, data)
288+
289+
>>> w.collection_item_delete('my-catalogue', identifier)
290+
291+
276292

277293
OGC API - Features - Part 4: Create, Replace, Update and Delete
278294
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)