Skip to content

Commit 1c1eb30

Browse files
authored
Merge pull request #11668 from IQSS/11634-api-get-available-file-categories
11634 api get available file categories
2 parents d27d4c7 + 9d00ef3 commit 1c1eb30

File tree

5 files changed

+318
-218
lines changed

5 files changed

+318
-218
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Get Dataset File Available Categories API
2+
3+
- This new endpoint allows the user to get all of the available file categories for a dataset, both built-in and custom.
4+

doc/sphinx-guides/source/api/native-api.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3592,6 +3592,21 @@ See :ref:`:CustomDatasetSummaryFields` in the Installation Guide for how the lis
35923592
35933593
curl "$SERVER_URL/api/datasets/summaryFieldNames"
35943594
3595+
.. _get-available-dataset-file-categories:
3596+
3597+
Get Available Dataset File Categories
3598+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3599+
3600+
This api returns a list of Categories that may be applied to the files of a given dataset.
3601+
3602+
.. code-block:: bash
3603+
3604+
export SERVER_URL=https://demo.dataverse.org
3605+
export PERSISTENT_IDENTIFIER=doi:10.5072/FK2/YD5QDG
3606+
3607+
curl "$SERVER_URL/api/datasets/:persistentId/availableFileCategories?persistentId=$PERSISTENT_IDENTIFIER"
3608+
3609+
35953610
.. _guestbook-at-request-api:
35963611

35973612
Configure When a Dataset Guestbook Appears (If Enabled)

0 commit comments

Comments
 (0)