1
我爲Redmine使用Ruby REST API(此處爲http://www.redmine.org/projects/redmine/wiki/Rest_api_with_ruby)。我需要能夠一次獲得100個大塊的所有問題。使用Ruby指定Redmine REST API請求中的偏移量和限制
我知道有一個選項[:偏移]和一個選項[:限制],方法「api_offset_and_limit」正在尋找。
當我這樣做時,如何通過這些選項?我嘗試將它們作爲GET選項放入URL中,但它們在另一端沒有出現。如我所料,以下給出了前25個問題。
class Issue < ActiveResource::Base
self.site = 'http://redmine.server/'
self.user = 'foo'
self.password = 'bar'
end
# Retrieving issues
issues = Issue.find(:all)