@@ -104,7 +104,7 @@ export class RestClient {
104104 resources : any ,
105105 options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
106106
107- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
107+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
108108 let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
109109
110110 let data : string = JSON . stringify ( resources , null , 2 ) ;
@@ -123,7 +123,7 @@ export class RestClient {
123123 resources : any ,
124124 options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
125125
126- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
126+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
127127 let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
128128
129129 let data : string = JSON . stringify ( resources , null , 2 ) ;
@@ -142,7 +142,7 @@ export class RestClient {
142142 resources : any ,
143143 options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
144144
145- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
145+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
146146 let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
147147
148148 let data : string = JSON . stringify ( resources , null , 2 ) ;
0 commit comments