Description:
Per Issue #172 reported, this PR will allow sending query-parameters with RestClient GET Requests.
Introduced Changes:
Introduced a new common interface IRequestQueryParams, which can be globally used by any contributors willing to benefit from it OR build upon it after this contribution.
function getUrl of Util.ts to receive optional query parameters object, to use while building the request's URL: getUrl(resource: string, baseUrl?: string, queryParams?: IRequestQueryParams).
Modified the RestClient.ts module so that the IRequestOptions interface now can have optional queryParameters field of IRequestQueryParams type.
Description: Per Issue #172 reported, this PR will allow sending query-parameters with RestClient GET Requests.
Introduced Changes:
Introduced a new common interface IRequestQueryParams, which can be globally used by any contributors willing to benefit from it OR build upon it after this contribution.
function getUrl of Util.ts to receive optional query parameters object, to use while building the request's URL:
getUrl(resource: string, baseUrl?: string, queryParams?: IRequestQueryParams)
.Modified the
RestClient.ts
module so that theIRequestOptions
interface now can have optional queryParameters field ofIRequestQueryParams
type.Added integration tests to address the change
Added unit tests to address changes