X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/41f6f1e495c82fcfa79b87cf718fa2e9cd91c726..c48d10802d4ae95273f8b98e622e5df200cdc3a7:/src/services/common-service/common-service.ts diff --git a/src/services/common-service/common-service.ts b/src/services/common-service/common-service.ts index ddaf2ab0..f16a2024 100644 --- a/src/services/common-service/common-service.ts +++ b/src/services/common-service/common-service.ts @@ -117,7 +117,13 @@ export class CommonService { get(uuid: string, showErrors?: boolean, select?: string[], session?: Session) { this.validateUuid(uuid); - const cfg: AxiosRequestConfig = {}; + const cfg: AxiosRequestConfig = { + params: { + select: select + ? `[${select.map(snakeCase).map(s => `"${s}"`).join(',')}]` + : undefined + } + }; if (session) { cfg.baseURL = session.baseUrl; cfg.headers = { 'Authorization': 'Bearer ' + session.token }; @@ -125,7 +131,7 @@ export class CommonService { return CommonService.defaultResponse( this.serverApi - .get(`/${this.resourceType}/${uuid}`, session ? cfg : undefined), + .get(`/${this.resourceType}/${uuid}`, cfg), this.actions, true, // mapKeys showErrors