Skip to content

Commit

Permalink
feat: add support for httpMethod on IHubSearchOptions (#1675)
Browse files Browse the repository at this point in the history
All tests ran; last commit was a comment
  • Loading branch information
dbouwman authored Oct 1, 2024
1 parent c7a0a49 commit 3506956
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/search/_internal/portalSearchItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions packages/common/src/search/types/IHubSearchOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

0 comments on commit 3506956

Please sign in to comment.