Skip to content

Commit

Permalink
IQSS#6083 update examples for 'View a Dataverse' section of Native API.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Jan 24, 2020
1 parent 80c3bbe commit e6be2a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@ To view a published dataverse:

.. code-block:: bash
curl $SERVER_URL/api/dataverses/$id
export SERVER_URL=https://demo.dataverse.org
export ID=root
curl $SERVER_URL/api/dataverses/$ID
To view an unpublished dataverse:

.. code-block:: bash
curl -H X-Dataverse-key:$API_TOKEN $SERVER_URL/api/dataverses/$id
curl https://demo.dataverse.org/api/dataverses/root
Delete a Dataverse
~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit e6be2a8

Please sign in to comment.