Skip to content

Commit

Permalink
Merge pull request IQSS#9454 from dsd-sztaki-hu/external-tools-fix
Browse files Browse the repository at this point in the history
External tools fix
  • Loading branch information
kcondon authored Jun 16, 2023
2 parents 1d3f6ed + 2805d8a commit 0796518
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
{
"locale":"{localeCode}"
}
],
"allowedApiCalls": [
{
"name":"retrieveDatasetJson",
"httpMethod":"GET",
"urlTemplate":"/api/v1/datasets/{datasetId}",
"timeOut":10
}
]
}
]
},
"allowedApiCalls": [
{
"name":"retrieveDatasetJson",
"httpMethod":"GET",
"urlTemplate":"/api/v1/datasets/{datasetId}",
"timeOut":10
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
{
"locale":"{localeCode}"
}
],
"allowedApiCalls": [
{
"name":"retrieveDataFile",
"httpMethod":"GET",
"urlTemplate":"/api/v1/access/datafile/{fileId}",
"timeOut":270
}
]
}
},
"allowedApiCalls": [
{
"name":"retrieveDataFile",
"httpMethod":"GET",
"urlTemplate":"/api/v1/access/datafile/{fileId}",
"timeOut":270
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public String handleRequest(boolean preview) {
case DATASET:
callback=SystemConfig.getDataverseSiteUrlStatic() + "/api/v1/datasets/"
+ dataset.getId() + "/versions/:latest/toolparams/" + externalTool.getId();
break;
case FILE:
callback= SystemConfig.getDataverseSiteUrlStatic() + "/api/v1/files/"
+ dataFile.getId() + "/metadata/" + fileMetadata.getId() + "/toolparams/"
Expand Down

0 comments on commit 0796518

Please sign in to comment.