diff --git a/CHANGELOG.md b/CHANGELOG.md index 5df6f9d0..967e10ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added `GET /_plugins/_ml/connectors/{connector_id}`, `_search`, `POST /_plugins/_ml/connectors/_search`, and `PUT /_plugins/_ml/connectors/{connector_id}` ([#764](https://github.com/opensearch-project/opensearch-api-specification/pull/764)) - Added the ability to skip an individual chapter test ([#765](https://github.com/opensearch-project/opensearch-api-specification/pull/765)) - Added uploading of test spec logs ([#767](https://github.com/opensearch-project/opensearch-api-specification/pull/767)) +- Added generation of file for Postman ([#770](https://github.com/opensearch-project/opensearch-api-specification/pull/770)) ### Removed - Removed unsupported `_common.mapping:SourceField`'s `mode` field and associated `_common.mapping:SourceFieldMode` enum ([#652](https://github.com/opensearch-project/opensearch-api-specification/pull/652)) diff --git a/tools/src/OpenSearchHttpClient.ts b/tools/src/OpenSearchHttpClient.ts index 247f1f8f..071735c5 100644 --- a/tools/src/OpenSearchHttpClient.ts +++ b/tools/src/OpenSearchHttpClient.ts @@ -221,6 +221,11 @@ export class OpenSearchHttpClient { } } + getUrl(): string | undefined { + if(this._opts != null && !this._opts.url) return this._opts.url ; + return DEFAULT_URL; + } + async request, D = any>(config: AxiosRequestConfig): Promise { return await this._axios.request(config) }