Added to the 2019-07-18 release is the support for two additional media types: CSV and Excel. Users may request top-level foundational standards exports in either CSV or Excel Workbook format. The media type for CSV is text/csv, while application/vnd.ms-excel for Excel. Note |
---|
CSV and Excel Workbook media types are only available at the top-level of a foundational standard. When requesting them at levels in any lower hierarchy, the API will return an HTTP 406 Not Acceptable status code. |
Info |
---|
Refer to to Limitations for an important note about the CSV and Excel exports. |
For example, a cURL snippet to obtain ADaM OCCDS v1.0 (lines #1-3), SDTMIG v3.3 (lines #5-7), and Controlled Terminology P38 (lines #9-11) in CSV format: Code Block |
---|
language | text |
---|
linenumbers | true |
---|
| curl -X GET \
https://library.cdisc.org/api/mdr/adam/adam-occds-1-0 \
-H 'Accept: text/csv'
curl -X GET \
https://library.cdisc.org/api/mdr/sdtmig/3-3 \
-H 'Accept: text/csv'
curl -X GET \
https://library.cdisc.org/api/mdr/ct/packages/sdtmct-2019-06-28 \
-H 'Accept: text/csv' |
Similarly, a cURL snippet to obtain ADaM OCCDS v1.0 (lines #1-3) , SDTMIG v3.3 (lines #5-7), and Controlled Terminology P38 (lines #9-11) in Excel Workbook format: Code Block |
---|
language | text |
---|
linenumbers | true |
---|
| curl -X GET \
https://library.cdisc.org/api/mdr/adam/adam-occds-1-0 \
-H 'Accept: application/vnd.ms-excel'
curl -X GET \
https://library.cdisc.org/api/mdr/sdtmig/3-3 \
-H 'Accept: application/vnd.ms-excel'
curl -X GET \
https://library.cdisc.org/api/mdr/ct/packages/sdtmct-2019-06-28 \
-H 'Accept: application/vnd.ms-excel' |
|