Project

General

Profile

Redmine Version Object and REST API with ruby

Added by Marcin Garski over 8 years ago

Hey,

Does anybody know how to get list of all objects of Redmine Version (versions table) from database using REST API for ruby?

I did something like that:

require_relative 'redmine_connection'

class RedmineVersion < RedmineConnection
  self.element_name = 'version'
end

After that RedmineVersion.fist gives me:

2.3.0 :005 > RedmineVersion.first
NoMethodError: undefined method `first' for nil:NilClass

The RedmineConnection class include all data required to authenticate - it works for other objects, like Issues, Projects and so on. The problem occurs with Versions. I don't want to use SQL queries.
I used wiki: Rest_api_with_ruby

Thanks for help,
gary