简体   繁体   English

Redmine REST API获得所有用户

[英]Redmine REST API to get all users

I want to retrieve all users from redmine and I use its REST API to get data. 我想从redmine检索所有用户,并使用其REST API来获取数据。 it give the 100 users only if i set the limit to 200 also. 仅当我将限制也设置为200时,它才给100个用户。

Is there any way to retrieve all user from API? 有什么办法可以从API中检索所有用户?

Have you checked that the user you are authenticating as has access to view all the users? 您是否检查过要验证的用户是否有权查看所有用户?

If that is not the issue, then according to the Redmine REST API documentation , collections you try and GET from Redmine are not set up generally to return all at once so you will have to use an offset and poll until you have gotten everything. 如果这不是问题,那么根据Redmine REST API文档 ,通常不会将您尝试的集合以及从Redmine进行的GET设置为一次返回所有内容,因此您必须使用偏移量并进行轮询,直到获得所有内容为止。

Or better yet, you can save yourself time and use a library so you don't have to worry about a problem someone has already solved. 或者更好的是,您可以节省时间并使用图书馆,因此您不必担心别人已经解决的问题。 There is a list of packages in different languages at the bottom of the REST API doc here . 有一个在REST API文档的底部,在不同的语言包的列表在这里

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

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