Skip to content

Commit

Permalink
IQSS#6083 update examples for 'List Facets Configured for a Dataverse…
Browse files Browse the repository at this point in the history
…' section of Native API.
  • Loading branch information
pkiraly committed Jan 24, 2020
1 parent e96b172 commit 42c5cef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,18 @@ List Facets Configured for a Dataverse

.. code-block:: bash
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export SERVER_URL=https://demo.dataverse.org
export id=root
curl -H X-Dataverse-key:$API_TOKEN $SERVER/api/dataverses/$id/facets
The fully expanded example above (without environment variables) looks like this:

.. code-block:: bash
curl -H X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx https://demo.dataverse.org/api/dataverses/root/facets
Set Facets for a Dataverse
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 42c5cef

Please sign in to comment.