Skip to content

Commit

Permalink
Update quickstart.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
benpearman committed Mar 20, 2024
1 parent c6b0451 commit e0e802d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/source/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class instances via the library::
Create a new Layer from existing datasources::

>>> layer = koordinates.Layer()
>>> layer.name = "A Test Layer"
>>> layer.title = "A Test Layer"
>>> layer.group = 999
>>> layer.data = koordinates.LayerData(datasources=[123456])
>>> layer.data = koordinates.layers.LayerData(datasources=[123456])
>>> layer = client.layers.create(layer)
>>> print(layer.url)

Expand All @@ -62,9 +62,8 @@ Publish multiple objects of various types::
>>> # Publish a number of items, in this case one
>>> # Table and one Layer
>>> publish = koordinates.publishing.Publish()
>>> publish.add_layer_version(1111)
>>> publish.add_table_version(2222)
>>> publish.strategy = publish.STRATEGY_TOGETHER
>>> publish.add_layer_item(layer)
>>> publish.strategy = publish.PUBLISH_STRATEGY_TOGETHER
>>> publish = client.publishing.create(publish)
>>> print(publish.url)

Expand Down

0 comments on commit e0e802d

Please sign in to comment.