File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,26 @@ You should be able to cut/paste any/all of the commands below to run on your Dat
105105> \\ "contentType\\ ":\\ "audio/mp3\\ "
106106> }"
107107
108+ > curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \\
109+ > "{
110+ > \\ "displayName\\ ":\\ "Play Audio\\ ",
111+ > \\ "description\\ ":\\ "Listen to an audio file.\\ ",
112+ > \\ "scope\\ ":\\ "file\\ ",
113+ > \\ "type\\ ":\\ "explore\\ ",
114+ > \\ "hasPreviewMode\\ ":\\ "true\\ ",
115+ > \\ "toolUrl\\ ":\\ "https://globaldataversecommunityconsortium.github.io/dataverse-previewers/previewers/AudioPreview.html\ ",
116+ > \\ "toolParameters\\ ": {
117+ > \\ "queryParameters\\ ":[
118+ > {\\ "fileid\\ ":\\ "{fileId}\\ "},
119+ > {\\ "siteUrl\\ ":\\ "{siteUrl}\\ "},
120+ > {\\ "key\\ ":\\ "{apiToken}\\ "},
121+ > {\\ "datasetid\\ ":\\ "{datasetId}\\ "},
122+ > {\\ "datasetversion\\ ":\\ "{datasetVersion}\\ "}
123+ > ]
124+ > },
125+ > \\ "contentType\\ ":\\ "audio/wav\\ "
126+ > }"
127+
108128> curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \\
109129> "{
110130> \\ "displayName\\ ":\\ "Play Audio\\ ",
You can’t perform that action at this time.
0 commit comments