Skip to content

Commit

Permalink
Fix at 'Show the dataset whose id is passed' section #6083
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Sep 18, 2019
1 parent 6f8bdeb commit 8431d7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,15 @@ Get JSON Representation of a Dataset

curl http://localhost:8080/api/datasets/:persistentId/versions/:draft?persistentId=doi:10.5072/FK2/J8SJZB


|CORS| Show the dataset whose id is passed::

GET http://$SERVER/api/datasets/$id?key=$apiKey
curl http://$SERVER/api/datasets/$id?key=$apiKey

fully expanded::

curl http://localhost:8080/api/datasets/xxxx?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

The (numeric) id isn't shown up at the user interface (which uses the DOI for identification). You can get it from the JSON representation of the dataset.

List Versions of a Dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 8431d7f

Please sign in to comment.