1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-19 06:20:05 +00:00

fix: adding base_uri in all calls to cover instances where viya calls are not on localhost

This commit is contained in:
vrh
2020-09-07 14:01:39 +02:00
parent 58358c916d
commit 3eae34d8b7
5 changed files with 15 additions and 15 deletions

View File

@@ -64,7 +64,7 @@ options noquotelenmax;
%if "&root"="/" %then %do;
/* if root just list root folders */
proc http method='GET' out=&fname1 &oauth_bearer
url='%sysfunc(getoption(servicesbaseurl))/folders/rootFolders';
url="&base_uri/folders/rootFolders";
%if &grant_type=authorization_code %then %do;
headers "Authorization"="Bearer &&&access_token_var";
%end;
@@ -87,7 +87,7 @@ options noquotelenmax;
/* now get the followon link to list members */
data _null_;
set &libref1..links;
if rel='members' then call symputx('href',quote(trim(href)),'l');
if rel='members' then call symputx('href',quote("&base_uri"!!trim(href)),'l');
run;
%local fname2 libref2;
%let fname2=%mf_getuniquefileref();