@@ -104,7 +104,7 @@ export class RestClient {
104
104
resources : any ,
105
105
options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
106
106
107
- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
107
+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
108
108
let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
109
109
110
110
let data : string = JSON . stringify ( resources , null , 2 ) ;
@@ -123,7 +123,7 @@ export class RestClient {
123
123
resources : any ,
124
124
options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
125
125
126
- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
126
+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
127
127
let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
128
128
129
129
let data : string = JSON . stringify ( resources , null , 2 ) ;
@@ -142,7 +142,7 @@ export class RestClient {
142
142
resources : any ,
143
143
options ?: IRequestOptions ) : Promise < IRestResponse < T > > {
144
144
145
- let url : string = util . getUrl ( resource , this . _baseUrl ) ;
145
+ let url : string = util . getUrl ( resource , this . _baseUrl , ( options || { } ) . queryParameters ) ;
146
146
let headers : ifm . IHeaders = this . _headersFromOptions ( options , true ) ;
147
147
148
148
let data : string = JSON . stringify ( resources , null , 2 ) ;
0 commit comments