(scriptConfig, parameterName, path)
| 424 | } |
| 425 | |
| 426 | function loadFiles(scriptConfig, parameterName, path) { |
| 427 | if (isNull(scriptConfig)) { |
| 428 | throw Error('Config is not available'); |
| 429 | } |
| 430 | |
| 431 | const encodedScript = encodeURIComponent(scriptConfig.name); |
| 432 | const encodedParameter = encodeURIComponent(parameterName); |
| 433 | const url = `scripts/${encodedScript}/${encodedParameter}/list-files`; |
| 434 | const param = toQueryArgs({'path': path, 'id': scriptConfig.id}); |
| 435 | const full_url = url + '?' + param; |
| 436 | |
| 437 | return axiosInstance.get(full_url) |
| 438 | .then(({data}) => data); |
| 439 | } |
no test coverage detected