Skip to content

Commit

Permalink
Convert getModelProps RPC operation to a GET request from POST (#3835)
Browse files Browse the repository at this point in the history
* change getModelProps to a GET request

* rush change
  • Loading branch information
nick4598 authored Jun 20, 2022
1 parent 6a8d16c commit 5aee808
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-common",
"comment": "make getModelProps a GET request instead of a POST",
"type": "none"
}
],
"packageName": "@itwin/core-common"
}
1 change: 1 addition & 0 deletions core/common/src/rpc/IModelReadRpcInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export abstract class IModelReadRpcInterface extends RpcInterface {
public async getConnectionProps(_iModelToken: IModelRpcOpenProps): Promise<IModelConnectionProps> { return this.forward(arguments); }
public async queryRows(_iModelToken: IModelRpcProps, _request: DbQueryRequest): Promise<DbQueryResponse> { return this.forward(arguments); }
public async queryBlob(_iModelToken: IModelRpcProps, _request: DbBlobRequest): Promise<DbBlobResponse> { return this.forward(arguments); }
@RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)
public async getModelProps(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<ModelProps[]> { return this.forward(arguments); }
@RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)
public async queryModelRanges(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<Range3dProps[]> { return this.forward(arguments); }
Expand Down

0 comments on commit 5aee808

Please sign in to comment.