简体   繁体   English

在 Forge BIM 360 API 中搜索项目

[英]Search for project in Forge BIM 360 API

We have over 3000 projects in our BIM 360 account and need to be able to search for a specific project by name.我们的 BIM 360 帐户中有 3000 多个项目,需要能够按名称搜索特定项目。 Currently we are using the GET projects endpoint in the Forge BIM 360 API to create a list of projects and querying the list to find the project.目前,我们正在使用 Forge BIM 360 API 中的 GET 项目端点来创建项目列表并查询该列表以查找项目。 This was working well for a while, but due to a limit of 100 projects returned by the endpoint we have to make multiple calls using the offset parameter.这在一段时间内运行良好,但由于端点返回的项目限制为 100 个,我们必须使用 offset 参数进行多次调用。 With 3000 projects this requires 30 requests, and we are starting to see a performance hit in some of our applications, which will only get worse over time as we add more projects.对于 3000 个项目,这需要 30 个请求,我们开始看到一些应用程序的性能受到影响,随着我们添加更多项目,这种情况只会随着时间的推移而变得更糟。 Is there a way to call the GET projects endpoint with a filter on project name?有没有办法使用项目名称过滤器调用 GET 项目端点?

我相信您可以使用page[limit]=200调用/project/v1/hubs/:hub_id/projects ,但不幸的是我们没有按名称过滤器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM