jenkins / api / json?depth = 1不使用ActiveResources

时间:2014-01-08 11:27:48

标签: ruby-on-rails jenkins activeresource

我使用ActiveResource从rails应用程序连接到jenkins应用程序。 jenkins / api / json?depth = 1无效,来自rails app。

虽然在我改变深度属性时从浏览器中获得了更多的数据,深度= 2对深度= 1。

任何帮助都会非常明显。

在我的活动资源远程模型..

require 'active_resource' 
require 'JSON'
class Remote < ActiveResource::Base
include ActiveResource::Formats::JsonFormat
self.site   = "http://myJenkinsDomain:8080/api/json?depth=2" 
#self.site   = "http://myJenkinsDomain:8080/api/json?depth=1" --> any depth is returning the    #same resulset from jenkins json api, depth=0, depth=1, depth=2


end

0 个答案:

没有答案