Replies: 2 comments 1 reply
-
Please find the below example in which you fetch the changeset details using a change set id : API : GET https://api.bentley.com/imodels/{id}/changesets/{changeset} Request Example : Note: It is recommended to use the version 3.x of iModelJs. Please visit the link for more details : https://developer.bentley.com/apis/imodels/operations/get-imodel-changeset-details/#get-imodel-changeset-details |
Beta Was this translation helpful? Give feedback.
-
@pahm3y Can you please explain me the requirement for backend API without http request. |
Beta Was this translation helpful? Give feedback.
-
Using the imodeljs library version 2.19.2.
Using the following API to get the ChangeSet using the changeset id.
/** Get the [[ChangeSet]]s for the iModel.
* @param requestContext The client request context
* @param iModelId Id of the iModel. See [[HubIModel]].
* @param query Optional query object to filter the queried ChangeSets or select different data from them.
* @returns ChangeSets that match the query.
* @throws WsgError with WSStatus.InstanceNotFound if [[InstanceIdQuery.byId]] is used and a [[ChangeSet]] with the specified id could not be found.
* @throws Common iModelHub errors
*/
get(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, query?: ChangeSetQuery): Promise<ChangeSet[]>;
For the last parameter in the above API, We are using
const queryChange: ChangeSetQuery = new ChangeSetQuery();
queryChange.fromId("")
The above API fails to get the changeset detail giving the following error:
Error |itwin-client.Clients| 400 Error: No parser is registered for the query option.
Need help in identifying the required API or resolve this issue.
If there are any other API that can give the ChangeSet information if we have the changeset id, please let me know.
Note: I am bound to use only 2.19.2 version of iModelJs.
Beta Was this translation helpful? Give feedback.
All reactions