diff --git a/packages/common/src/search/_internal/portalSearchItems.ts b/packages/common/src/search/_internal/portalSearchItems.ts index d25fc2f5204..d9b90b35360 100644 --- a/packages/common/src/search/_internal/portalSearchItems.ts +++ b/packages/common/src/search/_internal/portalSearchItems.ts @@ -114,6 +114,7 @@ function processSearchParams(options: IHubSearchOptions, query: IQuery) { "sortOrder", "include", "start", + "httpMethod", "requestOptions", // although requestOptions is not needed on ISearchOption we send it through so downstream fns have access to it ]; // copy the props over diff --git a/packages/common/src/search/types/IHubSearchOptions.ts b/packages/common/src/search/types/IHubSearchOptions.ts index bbd01ac59d2..4dc55f552ef 100644 --- a/packages/common/src/search/types/IHubSearchOptions.ts +++ b/packages/common/src/search/types/IHubSearchOptions.ts @@ -3,6 +3,7 @@ import { IHubRequestOptions } from "../../types"; import { EntityType } from "./IHubCatalog"; import { NamedApis, IApiDefinition, ISortOption } from "./types"; +import { HTTPMethods } from "@esri/arcgis-rest-request"; // @private // TODO Deprecate in favor of Includable @@ -93,4 +94,10 @@ export interface IHubSearchOptions extends IPagingOptions, ISortOptions { * LEGACY. Use `start` and `num` instead */ page?: string; + /** + * Allow override of the default http method. Allows for + * POST requests to be made if the query is very large + * NOTE: The OGC API will ignore this property + */ + httpMethod?: HTTPMethods; }