From f086905aaa68cb82c84704dbc3b6394f5fdedc27 Mon Sep 17 00:00:00 2001 From: Yura Tolstik Date: Wed, 14 Aug 2013 09:17:41 +0300 Subject: [PATCH 01/14] run rubocop lint with travis --- .travis.yml | 3 +++ target_process.gemspec | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 46e20b2..1a3f52a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,6 @@ gemfile: - Gemfile - gemfiles/rails_3.2.gemfile - gemfiles/rails_4.0.gemfile +script: + - bundle exec rubocop --lint + - bundle exec rake diff --git a/target_process.gemspec b/target_process.gemspec index b4d9a4b..87462d5 100644 --- a/target_process.gemspec +++ b/target_process.gemspec @@ -26,6 +26,8 @@ Gem::Specification.new do |spec| spec.add_development_dependency "webmock", ">=1.8.0" spec.add_development_dependency "simplecov" spec.add_development_dependency "simplecov-gem-adapter" + spec.add_development_dependency "rubocop" + spec.add_runtime_dependency "activesupport" spec.add_runtime_dependency "httparty" spec.add_runtime_dependency "json" From c8027fbecdaf259993ab680676fd2b4fc8e88cbc Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Wed, 14 Aug 2013 11:15:58 +0300 Subject: [PATCH 02/14] rubocop go home --- .travis.yml | 1 - target_process.gemspec | 1 - 2 files changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1a3f52a..76d50b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,4 @@ gemfile: - gemfiles/rails_3.2.gemfile - gemfiles/rails_4.0.gemfile script: - - bundle exec rubocop --lint - bundle exec rake diff --git a/target_process.gemspec b/target_process.gemspec index 87462d5..cc4dfa8 100644 --- a/target_process.gemspec +++ b/target_process.gemspec @@ -26,7 +26,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "webmock", ">=1.8.0" spec.add_development_dependency "simplecov" spec.add_development_dependency "simplecov-gem-adapter" - spec.add_development_dependency "rubocop" spec.add_runtime_dependency "activesupport" spec.add_runtime_dependency "httparty" From fc513939cfa0023abd10ed54415ca411d801b033 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Wed, 14 Aug 2013 18:14:40 +0300 Subject: [PATCH 03/14] rubocop refactor --- lib/target_process.rb | 34 +-- lib/target_process/api_client.rb | 39 ++-- lib/target_process/api_error.rb | 9 +- lib/target_process/base.rb | 36 ++-- lib/target_process/configuration.rb | 6 +- lib/target_process/version.rb | 2 +- spec/lib/target_process/api_client_spec.rb | 70 +++---- spec/lib/target_process/base_spec.rb | 196 +++++++++--------- spec/lib/target_process/configuration_spec.rb | 29 ++- spec/lib/target_process/targetprocess_spec.rb | 16 +- spec/lib/target_process/version_spec.rb | 4 +- 11 files changed, 220 insertions(+), 221 deletions(-) diff --git a/lib/target_process.rb b/lib/target_process.rb index 63310be..6816781 100644 --- a/lib/target_process.rb +++ b/lib/target_process.rb @@ -8,7 +8,7 @@ module TargetProcess class ConfigurationError < StandardError; end def self.configuration - msg = "TargetProcess is not configured yet" + msg = 'TargetProcess is not configured yet' @configuration || raise(TargetProcess::ConfigurationError.new(msg)) end @@ -21,26 +21,26 @@ def self.configure yield(@configuration) end - def self.context(options={}) - options.each { |item| item.to_s.slice(1..-2) if item.is_a?(Array)} - TargetProcess.client.get("context/", options) + def self.context(options = {}) + options.each { |item| item.to_s.slice(1..-2) if item.is_a?(Array) } + TargetProcess.client.get('context/', options) end - ENTITIES = ["Task", "UserStory", "Feature", "Bug", "User", "Project", - "Release", "Iteration", "Request", "TestCase", "Impediment", - "Comment", "Process", "Priority", "Severity", "EntityState", - "Program", "Testplan", "TestPlanRun", "TestCaseRun", "Time", - "Assignment", "Role", "RoleEffort", "ProjectMember", "Build", - "Company", "CustomActivity", "Attachment", "EntityType", - "General", "Assignable", "GeneralUser", "RequestType", "Message", - "MessageUid", "Milestone", "Relation", "RelationType", - "Requester", "Revision", "RevisionFile", "Tag", "Team", - "TeamIteration", "TeamMember", "TeamProject"] - - init_code = "" + ENTITIES = %w(Task UserStory Feature Bug User Project + Release Iteration Request TestCase Impediment + Comment Process Priority Severity EntityState + Program Testplan TestPlanRun TestCaseRun Time + Assignment Role RoleEffort ProjectMember Build + Company CustomActivity Attachment EntityType + General Assignable GeneralUser RequestType Message + MessageUid Milestone Relation RelationType + Requester Revision RevisionFile Tag Team + TeamIteration TeamMember TeamProject) + + init_code = '' ENTITIES.each do |name| init_code += "class #{name}; include Base; end \n" end - eval init_code + module_eval init_code end diff --git a/lib/target_process/api_client.rb b/lib/target_process/api_client.rb index c832086..bce09d2 100644 --- a/lib/target_process/api_client.rb +++ b/lib/target_process/api_client.rb @@ -5,16 +5,17 @@ module TargetProcess class APIClient - def get(path, options={}) + def get(path, options = {}) options.merge!(format: 'json') - options = {body: options} + options = { body: options } response = perform(:get, path, options) normalize_response(response.parsed_response) end def post(path, attr_hash) content = prepare_data(attr_hash).to_json - options = {body: content, headers: {'Content-Type' => 'application/json'}} + options = { body: content, + headers: { 'Content-Type' => 'application/json' } } response = perform(:post, path, options) normalize_response(response.parsed_response) end @@ -25,7 +26,7 @@ def delete(path) private - def perform(type, path, options={}) + def perform(type, path, options = {}) auth = { username: TargetProcess.configuration.username, password: TargetProcess.configuration.password } options.merge!(basic_auth: auth) @@ -41,36 +42,36 @@ def check_for_api_errors(response) end def generate_url(path) - if TargetProcess.configuration.api_url[-1] == "/" + if TargetProcess.configuration.api_url[-1] == '/' TargetProcess.configuration.api_url + path else - TargetProcess.configuration.api_url + "/" + path + TargetProcess.configuration.api_url + '/' + path end end def normalize_response(hash) - hash = Hash[hash.map {|k, v| [k.underscore.to_sym, v] }] - hash.each do |k,v| + hash = Hash[hash.map { |k, v| [k.underscore.to_sym, v] }] + hash.each do |k, v| hash[k] = case v - when Hash - normalize_response(v) - when Array - v.collect! { |el| normalize_response(el) } - when /Date\((\d+)-(\d+)\)/ - ::Time.at($1.to_i/1000) - else - v + when Hash + normalize_response(v) + when Array + v.collect! { |el| normalize_response(el) } + when /Date\((\d+)-(\d+)\)/ + ::Time.at($1.to_i / 1000) + else + v end end end def json_date(time) - "\/Date(#{time.to_i}000+0#{time.utc_offset/3600}00)\/" + "\/Date(#{time.to_i}000+0#{time.utc_offset / 3600}00)\/" end def prepare_data(hash) - hash = Hash[hash.map {|k, v| [k.to_s.camelize.to_sym, v] }] - hash.each { |k,v| hash[k] = json_date(v) if v.is_a?(::Time) } + hash = Hash[hash.map { |k, v| [k.to_s.camelize.to_sym, v] }] + hash.each { |k, v| hash[k] = json_date(v) if v.is_a?(::Time) } end end end diff --git a/lib/target_process/api_error.rb b/lib/target_process/api_error.rb index 97263d4..0d0a584 100644 --- a/lib/target_process/api_error.rb +++ b/lib/target_process/api_error.rb @@ -10,17 +10,16 @@ class Unauthorized < APIError; end def self.parse(response) error = response['Error'] - status = error['Status'] || response['Status'] || "Undefined" + status = error['Status'] || response['Status'] || 'Undefined' message = raw_message(response.parsed_response) - self.constants.include?(status.to_sym) ? - "#{self}::#{status}".safe_constantize.new(message) : - self.new(message) + type = "#{self}::#{status}".safe_constantize + constants.include?(status.to_sym) ? type.new(message) : new(message) end def self.raw_message(response) case response when Hash - response["Error"]["Message"] + response['Error']['Message'] when String response.match(/(.+)<\/title>/)[1] end diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 938189e..1649fa3 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -11,7 +11,7 @@ def self.included(base) attr_reader :attributes, :changed_attributes module InstanceMethods - def initialize(hash={}) + def initialize(hash = {}) @changed_attributes = hash @attributes = {} end @@ -19,7 +19,7 @@ def initialize(hash={}) def delete path = entity_path resp = TargetProcess.client.delete(path) - true if resp.code == "200" + true if resp.code == '200' end def save @@ -31,10 +31,10 @@ def save self end - def ==(obj) - if self.class == obj.class && self.all_attrs-obj.all_attrs==[] - (self.all_attrs|obj.all_attrs).all? do |key| - self.send(key) == obj.send(key) + def ==(other) + if self.class == other.class && all_attrs - other.all_attrs == [] + (all_attrs | other.all_attrs).all? do |key| + send(key) == other.send(key) end else false @@ -42,9 +42,9 @@ def ==(obj) end def method_missing(name, *args) - if self.respond_to?(name) + if respond_to?(name) if name.to_s.match(/=\z/) - key = name.to_s.delete("=").to_sym + key = name.to_s.delete('=').to_sym if @attributes[key] == args.first @changed_attributes.delete(key) else @@ -63,7 +63,7 @@ def method_missing(name, *args) end def respond_to_missing?(name, include_private = false) - if name.to_s.match(/\A[a-z_]+\z/) && self.all_attrs.include?(name) + if name.to_s.match(/\A[a-z_]+\z/) && all_attrs.include?(name) true elsif name.to_s.match(/\A[a-z_]+=\z/) && name != :id= true @@ -82,33 +82,33 @@ def all_attrs end module ClassMethods - def where(params_str, options={}) + def where(params_str, options = {}) options.merge!(where: params_str) - self.all(options) + all(options) end - def all(options={}) + def all(options = {}) path = collection_path TargetProcess.client.get(path, options)[:items].collect! do |hash| - result = self.new + result = new result.attributes.merge!(hash) result || [] end end - def find(id, options={}) - path = collection_path + "#{id}" - result = self.new + def find(id, options = {}) + path = collection_path + id.to_s + result = new result.attributes.merge!(TargetProcess.client.get(path, options)) result end def collection_path - self.to_s.demodulize.pluralize + "/" + to_s.demodulize.pluralize + '/' end def meta - TargetProcess.client.get(collection_path + "/meta") + TargetProcess.client.get(collection_path + '/meta') end end end diff --git a/lib/target_process/configuration.rb b/lib/target_process/configuration.rb index 5d8389c..05c83f8 100644 --- a/lib/target_process/configuration.rb +++ b/lib/target_process/configuration.rb @@ -3,17 +3,17 @@ class Configuration attr_writer :api_url, :username, :password def api_url - msg = "There is no api_url for configuration" + msg = 'There is no api_url for configuration' @api_url || raise(TargetProcess::ConfigurationError.new(msg)) end def username - msg = "There is no username for configuration" + msg = 'There is no username for configuration' @username || raise(TargetProcess::ConfigurationError.new(msg)) end def password - msg = "There is no password for configuration" + msg = 'There is no password for configuration' @password || raise(TargetProcess::ConfigurationError.new(msg)) end end diff --git a/lib/target_process/version.rb b/lib/target_process/version.rb index c441e88..53de47c 100644 --- a/lib/target_process/version.rb +++ b/lib/target_process/version.rb @@ -1,3 +1,3 @@ module TargetProcess - VERSION = "0.0.1" + VERSION = '0.0.1' end diff --git a/spec/lib/target_process/api_client_spec.rb b/spec/lib/target_process/api_client_spec.rb index 54e0863..96c7521 100644 --- a/spec/lib/target_process/api_client_spec.rb +++ b/spec/lib/target_process/api_client_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe TargetProcess::APIClient, :vcr => true do +describe TargetProcess::APIClient, vcr: true do before do TargetProcess.configure do |config| @@ -13,80 +13,80 @@ subject { TargetProcess.client } describe '#get' do - context "with path like 'entity/id'"do - it "returns hash of entity's attributes" do - et = {id:5, name: "Task", is_extendable: true, is_searchable: true} + context 'with path like entity/id' do + it 'returns hash of entity attributes' do + et = { id: 5, name: 'Task', is_extendable: true, is_searchable: true } - expect(subject.get("entitytypes/5")).to eql(et) + expect(subject.get('entitytypes/5')).to eql(et) end end - context "with path like 'entity/'"do - it "it returns array of entities's attributes hashes " do - items = [{id:5, name: "Task", is_extendable: true, is_searchable: true}, - {id:6, name: "User", is_extendable: false, is_searchable: false}] - response = subject.get("entitytypes", {orderby: "id", take: 2, skip: 4}) + context 'with path like entity/' do + it 'it returns array of entities attributes hashes' do + i = [{ id: 5, name: 'Task', is_extendable: true, is_searchable: true }, + { id: 6, name: 'User', is_extendable: false, is_searchable: false }] + resp = subject.get('entitytypes', { orderby: 'id', take: 2, skip: 4 }) - expect(response[:items]).to eql(items) + expect(resp[:items]).to eql(i) end end - context "with unexisted path "do + context 'with unexisted path ' do it 'it raises UnexpectedError' do - expect{ - subject.get("foobars/") - }.to raise_error(TargetProcess::APIError) + expect do + subject.get('foobars/') + end.to raise_error(TargetProcess::APIError) end end - context "with unexisted id "do + context 'with unexisted id ' do it 'it raises NotFound error' do - expect{ - subject.get("tasks/123123") - }.to raise_error(TargetProcess::APIError::NotFound) + expect do + subject.get('tasks/123123') + end.to raise_error(TargetProcess::APIError::NotFound) end end end describe '#post' do - context "with correct path and options" do - it "returns hash of entities's attributes" do - response = subject.post("projects", {:Name => "foobar#{rand(9999999)}"}) + context 'with correct path and options' do + it 'returns hash of entities attributes' do + resp = subject.post('projects', { name: "foobar#{rand(9_999_999)}" }) - expect(response[:name]).to match(/foobar/) + expect(resp[:name]).to match(/foobar/) [:id, :name, :description, :start_date, :end_date, :create_date, :modify_date, :last_comment_date, :tags, :numeric_priority, :is_active, :is_product, :abbreviation, :mail_reply_address, :color, :entity_type, :owner, :project, :program, :process, :company, :custom_fields ].each do |at| - expect(response).to have_key(at) + expect(resp).to have_key(at) end - subject.delete("projects/#{response[:id]}") + subject.delete("projects/#{resp[:id]}") end end - context "with incorrect path and options" do - it "raises UnexpectedError" do - expect{ - subject.post("foo/", {foo: "Bar"}) - }.to raise_error(TargetProcess::APIError) + context 'with incorrect path and options' do + it 'raises UnexpectedError' do + expect do + subject.post('foo/', { foo: 'Bar' }) + end.to raise_error(TargetProcess::APIError) end end end describe '#delete' do - context "with url to existed entity" do + context 'with url to existed entity' do it 'respond with 200 code' do - project = TargetProcess::Project.new(name: "Foo-#{rand(99999999)}").save + project = TargetProcess::Project.new(name: "Foo-#{rand(999_999)}").save expect(subject.delete("projects/#{project.id}").code).to eq('200') end end - context "with unexisted id in path" do + context 'with unexisted id in path' do it 'raise NotFound error' do - expect{ + expect do subject.delete('projects/123') - }.to raise_error(TargetProcess::APIError::NotFound) + end.to raise_error(TargetProcess::APIError::NotFound) end end end diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 9ed69c0..874c39f 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -9,17 +9,17 @@ end end - subject {TargetProcess::Project} + subject { TargetProcess::Project } describe '.new' do - it "creates an instance of Project" do + it 'creates an instance of Project' do item = subject.new expect(item).to be_an_instance_of(subject) end - it "merges recieved hash to @changed_attributes" do - hash = {name: "foo", description: "bar"} + it 'merges recieved hash to @changed_attributes' do + hash = { name: 'foo', description: 'bar' } item = subject.new(hash) expect(item.changed_attributes).to eq(hash) @@ -27,10 +27,10 @@ end describe '.find' do - context "with passed correct id" do - it "returns project" do + context 'with passed correct id' do + it 'returns project' do project = TargetProcess::Project.new( - name: "Project#{rand(99999)*rand(99999)}", + name: "Project#{rand(99999) * rand(99999)}", start_date: Time.now).save item = subject.find(project.id) @@ -40,14 +40,14 @@ end end - context "with passed correct id and options" do - it "returns formatted requested entity" do + context 'with passed correct id and options' do + it 'returns formatted requested entity' do project = TargetProcess::Project.new( - name: "Project#{rand(99999)*rand(99999)}", + name: "Project#{rand(99999) * rand(99999)}", start_date: Time.now).save - options = {include: "[Tasks]", append: "[Tasks-Count]"} + options = { include: '[Tasks]', append: '[Tasks-Count]' } item = subject.find(project.id, options) - attributes = {:id=>project.id, :tasks_count=>0, :tasks=>{:items=>[]}} + attributes = { id: project.id, tasks_count: 0, tasks: { items: [] } } expect(item).to be_an_instance_of(subject) expect(item.attributes).to eq(attributes) @@ -55,26 +55,26 @@ end end - context "with passed string" do - it "raise TargetProcess::BadRequest error" do - expect{ - subject.find("asd") - }.to raise_error(TargetProcess::APIError::BadRequest) + context 'with passed string' do + it 'raise TargetProcess::BadRequest error' do + expect do + subject.find('asd') + end.to raise_error(TargetProcess::APIError::BadRequest) end end - context "with passed unexisted id" do - it "raise an TargetProcess::NotFound error" do - expect { - subject.find(123412) - }.to raise_error(TargetProcess::APIError::NotFound) + context 'with passed unexisted id' do + it 'raise an TargetProcess::NotFound error' do + expect do + subject.find(12412) + end.to raise_error(TargetProcess::APIError::NotFound) end end end describe '.all' do - context "without options" do - it "returns array of projects" do + context 'without options' do + it 'returns array of projects' do result = subject.all expect(result).to have(25).projects @@ -82,8 +82,8 @@ end end - context "with options" do - it "returns all subject with conditions " do + context 'with options' do + it 'returns all subject with conditions ' do result = subject.all(take: 1, skip: 1) expect(result).to have(1).project @@ -92,9 +92,9 @@ end end - describe ".where" do - context "with correct condition" do - it "return array of subjects" do + describe '.where' do + context 'with correct condition' do + it 'return array of subjects' do response = subject.where('CreateDate lt "2014-10-10"') expect(response).to have(25).projects @@ -102,8 +102,8 @@ end end - context "with search condition and options" do - it "return array of subject with conditions" do + context 'with search condition and options' do + it 'return array of subject with conditions' do search = 'CreateDate lt "2014-10-10"' response = subject.where(search, OrderByDesc: 'id', Take: 1) @@ -112,28 +112,28 @@ end end - context "with random string without search condition" do - it "raise an TargetProcess::BadRequest" do - expect { + context 'with random string without search condition' do + it 'raise an TargetProcess::BadRequest' do + expect do subject.where('asdad asd asda') - }.to raise_error(TargetProcess::APIError::BadRequest) + end.to raise_error(TargetProcess::APIError::BadRequest) end end end - describe ".meta" do - it "returns project's metadata" do + describe '.meta' do + it 'returns project metadata' do response = subject.meta - uri = TargetProcess.configuration.api_url + "Projects" + uri = TargetProcess.configuration.api_url + 'Projects' - expect(response[:name]).to eq("Project") + expect(response[:name]).to eq('Project') expect(response[:uri]).to match(uri) end end - describe "#method_missing" do - it "provide getters for attributes's values" do - unique_name = "Project#{rand(99999)*rand(99999)}" + describe '#method_missing' do + it 'provide getters for attributes values' do + unique_name = "Project#{rand(99999) * rand(99999)}" project = TargetProcess::Project.new(name: unique_name).save project.attributes.keys.each do |key| @@ -142,28 +142,28 @@ project.delete end - it "provides any setters" do + it 'provides any setters' do project = subject.new - project.name, project.description, project.asd = "foo", "bar", "asd" + project.name, project.description, project.asd = 'foo', 'bar', 'asd' - expect(project.name).to eq("foo") - expect(project.description).to eq("bar") - expect(project.asd).to eq("asd") + expect(project.name).to eq('foo') + expect(project.description).to eq('bar') + expect(project.asd).to eq('asd') end - it "not allow to edit id" do - project = subject.new(name: "Foo", description: "Bar") + it 'not allow to edit id' do + project = subject.new(name: 'Foo', description: 'Bar') - expect{ + expect do project.id = 123 - }.to raise_error(NoMethodError) + end.to raise_error(NoMethodError) end - context "if set any attribute" do - it "add it to changed_attributes" do - unique_name = "Project#{rand(99999)*rand(99999)}" + context 'if set any attribute' do + it 'add it to changed_attributes' do + unique_name = "Project#{rand(99999) * rand(99999)}" project = TargetProcess::Project.new(name: unique_name).save - new_name = "new name" + new_name = 'new name' project.name = new_name expect(project.changed_attributes[:name]).to eq(new_name) @@ -171,12 +171,12 @@ end end - context "if edit attribute with the same old value in attributes" do - it "delete attribute from changed_attributes" do - unique_name = "Project#{rand(99999)*rand(99999)}" + context 'if edit attribute with the same old value in attributes' do + it 'delete attribute from changed_attributes' do + unique_name = "Project#{rand(99999) * rand(99999)}" project = TargetProcess::Project.new(name: unique_name).save prev_name = project.name - project.name = "foobar" + project.name = 'foobar' project.name = prev_name expect(project.changed_attributes[:name]).to be_nil @@ -186,24 +186,24 @@ end end - describe "#delete" do - context "if project exist on remote host" do - it "delete project on remote host and return true" do - unique_name = "Project#{rand(99999)*rand(99999)}" + describe '#delete' do + context 'if project exist on remote host' do + it 'delete project on remote host and return true' do + unique_name = "Project#{rand(99999) * rand(99999)}" project = TargetProcess::Project.new(name: unique_name).save expect(project.delete).to eq(true) - expect{ + expect do subject.find(project.id) - }.to raise_error(TargetProcess::APIError::NotFound) + end.to raise_error(TargetProcess::APIError::NotFound) end end end - describe "#save" do - context "called on project with required fields" do - it "save it on remote host and update local instance's attributes" do - project = subject.new(name: "Project#{rand(99999)*rand(99999)}").save + describe '#save' do + context 'called on project with required fields' do + it 'save it on remote host and update local instance attributes' do + project = subject.new(name: "Project#{rand(99999) * rand(99999)}").save remote_project = subject.find(project.id) project.numeric_priority = nil remote_project.numeric_priority = nil @@ -213,10 +213,10 @@ end end - context "called on project with updated attributes" do - it "updates task on remote host and clean changed attributes" do - project = subject.new(name: "Project#{rand(99999)*rand(99999)}").save - project.name = "Project_new_name#{rand(99999)*rand(99999)}" + context 'called on project with updated attributes' do + it 'updates task on remote host and clean changed attributes' do + project = subject.new(name: "Project#{rand(99999) * rand(99999)}").save + project.name = "Project_new_name#{rand(99999) * rand(99999)}" project.save remote = subject.find(project.id) remote.numeric_priority = nil @@ -227,9 +227,9 @@ end end - context "called on up-to-date local project" do - it "do nothing with local instance" do - project = subject.new(name: "Project#{rand(99999)*rand(99999)}").save + context 'called on up-to-date local project' do + it 'do nothing with local instance' do + project = subject.new(name: "Project#{rand(99999) * rand(99999)}").save project.save remote = subject.find(project.id) project.numeric_priority = nil @@ -241,34 +241,34 @@ end end - describe "#eq" do - it "compares changed attributes" do - project1 = subject.new(:name => 'first') - project2 = subject.new(:name => 'second') + describe '#eq' do + it 'compares changed attributes' do + project1 = subject.new(name: 'first') + project2 = subject.new(name: 'second') project1.name = 'second' expect(project1).to eq(project2) end - it "compares attributes with changed_attributes" do + it 'compares attributes with changed_attributes' do project1 = subject.new - project1.instance_variable_set(:@attributes, name: "name1") + project1.instance_variable_set(:"@attributes", name: 'name1') project2 = subject.new - project2.instance_variable_set(:@attributes, name: "name2") - project2.name = "name1" + project2.instance_variable_set(:"@attributes", name: 'name2') + project2.name = 'name1' expect(project2).to eq(project1) end - it "compares project with integer" do - project = subject.new(name: "New project") + it 'compares project with integer' do + project = subject.new(name: 'New project') expect(project).to_not eq(3) end - it "comapres projects with different attributes" do - project1 = subject.new(name: "New project") - project2 = subject.new(name: "Project#{rand(99999)*rand(99999)}").save + it 'comapres projects with different attributes' do + project1 = subject.new(name: 'New project') + project2 = subject.new(name: "Project#{rand(99999) * rand(99999)}").save expect(project1).to_not eq(project2) expect(project2).to_not eq(project1) @@ -277,35 +277,35 @@ end describe '#respond_to?' do - it "doesn't responds to underscored getter for non existed attribute" do + it 'does not responds to underscored getter for non existed attribute' do expect(subject.new.respond_to?(:underscored_method)).to be_false end - it "responds to underscored getter forexisted attribute" do - expect(subject.new(foo: "bar").respond_to?(:foo)).to be_true + it 'responds to underscored getter forexisted attribute' do + expect(subject.new(foo: 'bar').respond_to?(:foo)).to be_true end - it "responds to underscored setter" do + it 'responds to underscored setter' do expect(subject.new.respond_to?(:underscored_method=)).to be_true end - it "doesn't responds to camelized getter" do + it 'does not responds to camelized getter' do expect(subject.new.respond_to?(:camelizedMethod)).to be_false end - it "doesn't responds to camelized setter" do + it 'does not responds to camelized setter' do expect(subject.new.respond_to?(:camelizedMethod=)).to be_false end - it "doesn't responds to id setter" do + it 'does not responds to id setter' do expect(subject.new.respond_to?(:id=)).to be_false end - it "doesn't responds to bang methods" do + it 'does not responds to bang methods' do expect(subject.new.respond_to?(:underscored_method!)).to be_false end - it "doesn't responds to question methods" do + it 'does not responds to question methods' do expect(subject.new.respond_to?(:underscored_method?)).to be_false end end diff --git a/spec/lib/target_process/configuration_spec.rb b/spec/lib/target_process/configuration_spec.rb index 43ce090..a3fb5bc 100644 --- a/spec/lib/target_process/configuration_spec.rb +++ b/spec/lib/target_process/configuration_spec.rb @@ -17,26 +17,25 @@ end end - describe "#configuration" do + describe '#configuration' do it 'raises configuration error if not configured' do TargetProcess.instance_variable_set(:"@configuration", nil) - expect { + expect do TargetProcess.configuration - }.to raise_error(TargetProcess::ConfigurationError) + end.to raise_error(TargetProcess::ConfigurationError) end - it 'raises configuration error without username' do TargetProcess.configure do |c| c.api_url = 'api_url' c.username = nil c.password = 'secret' end - msg = "There is no username for configuration" + msg = 'There is no username for configuration' - expect { + expect do TargetProcess.configuration.username - }.to raise_error(TargetProcess::ConfigurationError, msg) + end.to raise_error(TargetProcess::ConfigurationError, msg) end it 'raises configuration error without password' do @@ -45,11 +44,11 @@ c.username = 'admin' c.password = nil end - msg = "There is no password for configuration" + msg = 'There is no password for configuration' - expect { + expect do TargetProcess.configuration.password - }.to raise_error(TargetProcess::ConfigurationError, msg) + end.to raise_error(TargetProcess::ConfigurationError, msg) end it 'raises configuration error without api_url' do @@ -58,16 +57,16 @@ c.username = 'admin' c.password = 'secret' end - msg = "There is no api_url for configuration" + msg = 'There is no api_url for configuration' - expect { + expect do TargetProcess.configuration.api_url - }.to raise_error(TargetProcess::ConfigurationError, msg) + end.to raise_error(TargetProcess::ConfigurationError, msg) end end - describe "#client" do - it "returns APIClient instance" do + describe '#client' do + it 'returns APIClient instance' do endpoint = TargetProcess.client expect(endpoint).to be_an_instance_of(TargetProcess::APIClient) diff --git a/spec/lib/target_process/targetprocess_spec.rb b/spec/lib/target_process/targetprocess_spec.rb index eeb4191..d5701d5 100644 --- a/spec/lib/target_process/targetprocess_spec.rb +++ b/spec/lib/target_process/targetprocess_spec.rb @@ -9,28 +9,28 @@ end end - describe ".context" do - it "return global context" do + describe '.context' do + it 'return global context' do expect(TargetProcess.context[:acid]).to_not be_nil end - it "return context by ids" do + it 'return context by ids' do ids = [1705, 1706] expect(TargetProcess.context(ids: ids)[:acid]).to_not be_nil end - it "return context by single id" do + it 'return context by single id' do ids = 1705 expect(TargetProcess.context(ids: ids)[:acid]).to_not be_nil end - it "return context by acid" do - acid = "2D2F0BA211357509A03167EECB5F3456" + it 'return context by acid' do + acid = '2D2F0BA211357509A03167EECB5F3456' expect(TargetProcess.context(acid: acid)[:acid]).to_not be_nil end - it "return context by acid and ids" do - acid = "2D2F0BA211357509A03167EECB5F3456" + it 'return context by acid and ids' do + acid = '2D2F0BA211357509A03167EECB5F3456' ids = [1705, 1706] expect(TargetProcess.context(acid: acid, ids: ids)[:acid]).to_not be_nil end diff --git a/spec/lib/target_process/version_spec.rb b/spec/lib/target_process/version_spec.rb index 83bb12e..d6fe6da 100644 --- a/spec/lib/target_process/version_spec.rb +++ b/spec/lib/target_process/version_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' -describe "TargetProcess::VERSION" do - it "must be defined" do +describe 'TargetProcess::VERSION' do + it 'must be defined' do expect(TargetProcess::VERSION).to_not be_nil end end From 910ae0bbaf451d6ea9250e204cb37b23803f3bb5 Mon Sep 17 00:00:00 2001 From: kamrad117 <kamrad117@gmail.com> Date: Fri, 16 Aug 2013 11:13:30 +0300 Subject: [PATCH 04/14] add associations --- lib/target_process.rb | 3 ++- lib/target_process/api_client.rb | 2 +- lib/target_process/base.rb | 35 ++++++++++++++++++++++++++-- lib/target_process/user_story.rb | 10 ++++++++ spec/lib/target_process/base_spec.rb | 21 +++++++++++++++++ 5 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 lib/target_process/user_story.rb diff --git a/lib/target_process.rb b/lib/target_process.rb index 6816781..f478b52 100644 --- a/lib/target_process.rb +++ b/lib/target_process.rb @@ -3,6 +3,7 @@ require 'target_process/api_error' require 'target_process/api_client' require 'target_process/base' +require 'target_process/user_story' module TargetProcess class ConfigurationError < StandardError; end @@ -26,7 +27,7 @@ def self.context(options = {}) TargetProcess.client.get('context/', options) end - ENTITIES = %w(Task UserStory Feature Bug User Project + ENTITIES = %w(Feature Bug User Project Release Iteration Request TestCase Impediment Comment Process Priority Severity EntityState Program Testplan TestPlanRun TestCaseRun Time diff --git a/lib/target_process/api_client.rb b/lib/target_process/api_client.rb index bce09d2..9e27b93 100644 --- a/lib/target_process/api_client.rb +++ b/lib/target_process/api_client.rb @@ -61,7 +61,7 @@ def normalize_response(hash) ::Time.at($1.to_i / 1000) else v - end + end end end diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 1649fa3..6e5463e 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -8,12 +8,14 @@ def self.included(base) base.extend(ClassMethods) end - attr_reader :attributes, :changed_attributes + attr_reader :attributes, :changed_attributes, :references, :collections module InstanceMethods def initialize(hash = {}) @changed_attributes = hash @attributes = {} + @references = {} + @collections = {} end def delete @@ -51,7 +53,7 @@ def method_missing(name, *args) @changed_attributes[key] = args.first end else - if @changed_attributes.has_key?(name) + if @changed_attributes.has_key?(name) && all_attrs.include?(name) @changed_attributes[name] else @attributes[name] @@ -110,6 +112,35 @@ def collection_path def meta TargetProcess.client.get(collection_path + '/meta') end + + def has_many(*collections) + collections.each do |name| + define_method(name) do + path = entity_path + '/' + name.to_s.camelize + klass = "TargetProcess::#{name.to_s.singularize.camelize}".constantize + @collections[name] ||= + TargetProcess.client.get(path)[:items].collect! do |hash| + result = klass.new + result.attributes.merge!(hash) + result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) + result + end + end + end + end + + def belongs_to (*references) + references.each do |name| + define_method(name) do + id = @attributes[name][:id] + klass = "TargetProcess::#{name.to_s.camelize}".constantize + self_klass = self.class.to_s.demodulize.pluralize.underscore.to_sym + @references[name] ||= klass.find(id) + @references[name].collections.merge!(self_klass => self) + @references[name] + end + end + end end end end diff --git a/lib/target_process/user_story.rb b/lib/target_process/user_story.rb new file mode 100644 index 0000000..525b4bc --- /dev/null +++ b/lib/target_process/user_story.rb @@ -0,0 +1,10 @@ +module TargetProcess + class Task; include TargetProcess::Base; end + + class UserStory + include TargetProcess::Base + has_many :tasks + + belongs_to :project + end +end diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 874c39f..671bed2 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -309,4 +309,25 @@ expect(subject.new.respond_to?(:underscored_method?)).to be_false end end + + describe 'associations' do + it 'returns associated project' do + us = TargetProcess::UserStory.find(4522) + + expect(us.project).to be_an_instance_of(TargetProcess::Project) + end + + it 'returns an array of tasks and resolve associations' do + us = TargetProcess::UserStory.find(4522) + tasks = us.tasks + + expect(tasks).to be_an_instance_of(Array) + us.tasks.each do |task| + expect(task).to be_an_instance_of(TargetProcess::Task) + expect(task.references[:user_story]).to eq(us) + end + expect(us.collections[:tasks]).to eq(tasks) + end + end + end From 52e95703c828a01e17335cea69eca0255a2f20d3 Mon Sep 17 00:00:00 2001 From: kamrad117 <kamrad117@gmail.com> Date: Mon, 19 Aug 2013 19:36:32 +0300 Subject: [PATCH 05/14] add associations --- .gitignore | 1 - lib/target_process.rb | 12 +- lib/target_process/base.rb | 41 +- lib/target_process/entities/assignable.rb | 28 + lib/target_process/entities/assignment.rb | 9 + lib/target_process/entities/attachment.rb | 9 + lib/target_process/entities/bug.rb | 32 + lib/target_process/entities/bug_history.rb | 9 + lib/target_process/entities/build.rb | 20 + lib/target_process/entities/comment.rb | 8 + lib/target_process/entities/company.rb | 7 + .../entities/custom_activity.rb | 9 + lib/target_process/entities/entity_state.rb | 11 + lib/target_process/entities/entity_type.rb | 7 + lib/target_process/entities/feature.rb | 30 + .../entities/feature_history.rb | 9 + lib/target_process/entities/general.rb | 16 + lib/target_process/entities/general_user.rb | 9 + lib/target_process/entities/impediment.rb | 21 + .../entities/impediment_history.rb | 9 + lib/target_process/entities/iteration.rb | 24 + lib/target_process/entities/message.rb | 11 + lib/target_process/entities/message_uid.rb | 6 + lib/target_process/entities/milestone.rb | 8 + lib/target_process/entities/practice.rb | 7 + lib/target_process/entities/priority.rb | 7 + lib/target_process/entities/process.rb | 9 + lib/target_process/entities/program.rb | 17 + lib/target_process/entities/project.rb | 37 + lib/target_process/entities/project_member.rb | 9 + lib/target_process/entities/relation.rb | 9 + lib/target_process/entities/relation_type.rb | 7 + lib/target_process/entities/release.rb | 25 + lib/target_process/entities/request.rb | 31 + .../entities/request_history.rb | 9 + lib/target_process/entities/request_type.rb | 7 + lib/target_process/entities/requester.rb | 10 + lib/target_process/entities/revision.rb | 10 + lib/target_process/entities/revision_file.rb | 7 + lib/target_process/entities/role.rb | 8 + lib/target_process/entities/role_effort.rb | 8 + lib/target_process/entities/severity.rb | 6 + lib/target_process/entities/tag.rb | 7 + lib/target_process/entities/task.rb | 30 + lib/target_process/entities/task_history.rb | 9 + lib/target_process/entities/team.rb | 20 + lib/target_process/entities/team_iteration.rb | 21 + lib/target_process/entities/team_member.rb | 9 + lib/target_process/entities/team_project.rb | 8 + lib/target_process/entities/test_case.rb | 20 + lib/target_process/entities/test_case_run.rb | 8 + lib/target_process/entities/test_plan_run.rb | 31 + lib/target_process/entities/testplan.rb | 18 + lib/target_process/entities/time.rb | 11 + lib/target_process/entities/user.rb | 17 + lib/target_process/entities/user_story.rb | 33 + .../entities/user_story_history.rb | 9 + lib/target_process/user_story.rb | 9 +- .../_context/return_context_by_acid.yml | 88 +++ .../return_context_by_acid_and_ids.yml | 88 +++ .../_context/return_context_by_ids.yml | 171 +++++ .../_context/return_context_by_single_id.yml | 88 +++ .../_context/return_global_context.yml | 171 +++++ .../raise_NotFound_error.yml | 69 ++ .../respond_with_200_code.yml | 99 +++ .../id/returns_hash_of_entity_attributes.yml | 47 ++ ...ns_array_of_entities_attributes_hashes.yml | 51 ++ .../it_raises_NotFound_error.yml | 65 ++ .../it_raises_UnexpectedError.yml | 56 ++ .../returns_hash_of_entities_attributes.yml | 99 +++ .../raises_UnexpectedError.yml | 58 ++ .../returns_all_subject_with_conditions_.yml | 60 ++ .../returns_array_of_projects.yml | 349 +++++++++ .../returns_associated_project.yml | 249 ++++++ ...project_on_remote_host_and_return_true.yml | 161 ++++ ...res_projects_with_different_attributes.yml | 99 +++ .../returns_project.yml | 154 ++++ .../returns_formatted_requested_entity.yml | 144 ++++ .../raise_TargetProcess_BadRequest_error.yml | 62 ++ .../raise_an_TargetProcess_NotFound_error.yml | 65 ++ .../_meta/returns_project_metadata.yml | 315 ++++++++ ...lete_attribute_from_changed_attributes.yml | 99 +++ .../add_it_to_changed_attributes.yml | 99 +++ .../provide_getters_for_attributes_values.yml | 99 +++ ...t_and_update_local_instance_attributes.yml | 424 +++++++++++ ...mote_host_and_clean_changed_attributes.yml | 481 ++++++++++++ .../do_nothing_with_local_instance.yml | 479 ++++++++++++ .../return_array_of_subjects.yml | 350 +++++++++ .../raise_an_TargetProcess_BadRequest.yml | 82 ++ ...eturn_array_of_subject_with_conditions.yml | 60 ++ ...urns_an_array_and_resolve_associations.yml | 108 +++ ...rray_of_tasks_and_resolve_associations.yml | 717 ++++++++++++++++++ spec/lib/target_process/base_spec.rb | 46 +- 93 files changed, 6641 insertions(+), 40 deletions(-) create mode 100644 lib/target_process/entities/assignable.rb create mode 100644 lib/target_process/entities/assignment.rb create mode 100644 lib/target_process/entities/attachment.rb create mode 100644 lib/target_process/entities/bug.rb create mode 100644 lib/target_process/entities/bug_history.rb create mode 100644 lib/target_process/entities/build.rb create mode 100644 lib/target_process/entities/comment.rb create mode 100644 lib/target_process/entities/company.rb create mode 100644 lib/target_process/entities/custom_activity.rb create mode 100644 lib/target_process/entities/entity_state.rb create mode 100644 lib/target_process/entities/entity_type.rb create mode 100644 lib/target_process/entities/feature.rb create mode 100644 lib/target_process/entities/feature_history.rb create mode 100644 lib/target_process/entities/general.rb create mode 100644 lib/target_process/entities/general_user.rb create mode 100644 lib/target_process/entities/impediment.rb create mode 100644 lib/target_process/entities/impediment_history.rb create mode 100644 lib/target_process/entities/iteration.rb create mode 100644 lib/target_process/entities/message.rb create mode 100644 lib/target_process/entities/message_uid.rb create mode 100644 lib/target_process/entities/milestone.rb create mode 100644 lib/target_process/entities/practice.rb create mode 100644 lib/target_process/entities/priority.rb create mode 100644 lib/target_process/entities/process.rb create mode 100644 lib/target_process/entities/program.rb create mode 100644 lib/target_process/entities/project.rb create mode 100644 lib/target_process/entities/project_member.rb create mode 100644 lib/target_process/entities/relation.rb create mode 100644 lib/target_process/entities/relation_type.rb create mode 100644 lib/target_process/entities/release.rb create mode 100644 lib/target_process/entities/request.rb create mode 100644 lib/target_process/entities/request_history.rb create mode 100644 lib/target_process/entities/request_type.rb create mode 100644 lib/target_process/entities/requester.rb create mode 100644 lib/target_process/entities/revision.rb create mode 100644 lib/target_process/entities/revision_file.rb create mode 100644 lib/target_process/entities/role.rb create mode 100644 lib/target_process/entities/role_effort.rb create mode 100644 lib/target_process/entities/severity.rb create mode 100644 lib/target_process/entities/tag.rb create mode 100644 lib/target_process/entities/task.rb create mode 100644 lib/target_process/entities/task_history.rb create mode 100644 lib/target_process/entities/team.rb create mode 100644 lib/target_process/entities/team_iteration.rb create mode 100644 lib/target_process/entities/team_member.rb create mode 100644 lib/target_process/entities/team_project.rb create mode 100644 lib/target_process/entities/test_case.rb create mode 100644 lib/target_process/entities/test_case_run.rb create mode 100644 lib/target_process/entities/test_plan_run.rb create mode 100644 lib/target_process/entities/testplan.rb create mode 100644 lib/target_process/entities/time.rb create mode 100644 lib/target_process/entities/user.rb create mode 100644 lib/target_process/entities/user_story.rb create mode 100644 lib/target_process/entities/user_story_history.rb create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid_and_ids.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_ids.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_single_id.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess/_context/return_global_context.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_unexisted_id_in_path/raise_NotFound_error.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_url_to_existed_entity/respond_with_200_code.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/id/returns_hash_of_entity_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/it_returns_array_of_entities_attributes_hashes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_id_/it_raises_NotFound_error.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_path_/it_raises_UnexpectedError.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_correct_path_and_options/returns_hash_of_entities_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_incorrect_path_and_options/raises_UnexpectedError.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/with_options/returns_all_subject_with_conditions_.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/without_options/returns_array_of_projects.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_delete/if_project_exist_on_remote_host/delete_project_on_remote_host_and_return_true.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_eq/comapres_projects_with_different_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id/returns_project.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id_and_options/returns_formatted_requested_entity.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_string/raise_TargetProcess_BadRequest_error.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_unexisted_id/raise_an_TargetProcess_NotFound_error.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_meta/returns_project_metadata.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_edit_attribute_with_the_same_old_value_in_attributes/delete_attribute_from_changed_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_set_any_attribute/add_it_to_changed_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/provide_getters_for_attributes_values.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_required_fields/save_it_on_remote_host_and_update_local_instance_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_updated_attributes/updates_task_on_remote_host_and_clean_changed_attributes.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_up-to-date_local_project/do_nothing_with_local_instance.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_correct_condition/return_array_of_subjects.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_random_string_without_search_condition/raise_an_TargetProcess_BadRequest.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_search_condition_and_options/return_array_of_subject_with_conditions.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml diff --git a/.gitignore b/.gitignore index ca5faa6..2ee26bc 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ lib/bundler/man pkg rdoc spec/reports -spec/fixtures/vcr_cassettes test/tmp test/version_tmp tmp diff --git a/lib/target_process.rb b/lib/target_process.rb index f478b52..10a02bc 100644 --- a/lib/target_process.rb +++ b/lib/target_process.rb @@ -3,7 +3,6 @@ require 'target_process/api_error' require 'target_process/api_client' require 'target_process/base' -require 'target_process/user_story' module TargetProcess class ConfigurationError < StandardError; end @@ -27,21 +26,24 @@ def self.context(options = {}) TargetProcess.client.get('context/', options) end - ENTITIES = %w(Feature Bug User Project + ENTITIES = %w(Task UserStory Feature Bug User Project Release Iteration Request TestCase Impediment Comment Process Priority Severity EntityState - Program Testplan TestPlanRun TestCaseRun Time + Program TestPlan TestPlanRun TestCaseRun Time Assignment Role RoleEffort ProjectMember Build Company CustomActivity Attachment EntityType General Assignable GeneralUser RequestType Message MessageUid Milestone Relation RelationType Requester Revision RevisionFile Tag Team - TeamIteration TeamMember TeamProject) + TeamIteration TeamMember TeamProject TaskHistory + UserStoryHistory RequestHistory BugHistoryFeatureHistory + BugHistory FeatureHistory Practice ImpedimentHistory) init_code = '' ENTITIES.each do |name| init_code += "class #{name}; include Base; end \n" end - module_eval init_code + Dir["./lib/target_process/entities/*.rb"].each {|file| require file } + end diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 6e5463e..f1fc0c5 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -53,7 +53,7 @@ def method_missing(name, *args) @changed_attributes[key] = args.first end else - if @changed_attributes.has_key?(name) && all_attrs.include?(name) + if @changed_attributes.has_key?(name) @changed_attributes[name] else @attributes[name] @@ -75,7 +75,7 @@ def respond_to_missing?(name, include_private = false) end def entity_path - self.class.collection_path + @attributes[:id].to_s + self.class.collection_path + @attributes[:id].to_s + '/' end def all_attrs @@ -113,34 +113,37 @@ def meta TargetProcess.client.get(collection_path + '/meta') end - def has_many(*collections) - collections.each do |name| - define_method(name) do - path = entity_path + '/' + name.to_s.camelize - klass = "TargetProcess::#{name.to_s.singularize.camelize}".constantize - @collections[name] ||= - TargetProcess.client.get(path)[:items].collect! do |hash| - result = klass.new - result.attributes.merge!(hash) - result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) - result - end + def has_many(name, klass = nil) + klass ||= name.to_s.singularize.camelize + klass = ("TargetProcess::" + klass).constantize + define_method(name) do + path = entity_path + name.to_s.camelize + @collections[name] ||= + TargetProcess.client.get(path)[:items].collect! do |hash| + result = klass.new + result.attributes.merge!(hash) + result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) + result || [] end end end - def belongs_to (*references) - references.each do |name| - define_method(name) do + def belongs_to (name, klass = nil) + klass ||= name.to_s.camelize + klass = ("TargetProcess::" + klass).constantize + define_method(name) do + if @attributes[name] id = @attributes[name][:id] - klass = "TargetProcess::#{name.to_s.camelize}".constantize self_klass = self.class.to_s.demodulize.pluralize.underscore.to_sym @references[name] ||= klass.find(id) - @references[name].collections.merge!(self_klass => self) + @references[name].collections.merge!(self_klass => [self]) @references[name] + else + nil end end end + end end end diff --git a/lib/target_process/entities/assignable.rb b/lib/target_process/entities/assignable.rb new file mode 100644 index 0000000..246be7c --- /dev/null +++ b/lib/target_process/entities/assignable.rb @@ -0,0 +1,28 @@ +module TargetProcess + class TargetProcess::Assignable + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + + end +end diff --git a/lib/target_process/entities/assignment.rb b/lib/target_process/entities/assignment.rb new file mode 100644 index 0000000..8dccae3 --- /dev/null +++ b/lib/target_process/entities/assignment.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::Assignment + include TargetProcess::Base + belongs_to :assignable + belongs_to :general_user, 'User' + belongs_to :role + + end +end diff --git a/lib/target_process/entities/attachment.rb b/lib/target_process/entities/attachment.rb new file mode 100644 index 0000000..e0c2f2c --- /dev/null +++ b/lib/target_process/entities/attachment.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::Attachment + include TargetProcess::Base + belongs_to :owner, 'GeneralUser' + belongs_to :general + belongs_to :message + + end +end diff --git a/lib/target_process/entities/bug.rb b/lib/target_process/entities/bug.rb new file mode 100644 index 0000000..96817f6 --- /dev/null +++ b/lib/target_process/entities/bug.rb @@ -0,0 +1,32 @@ +module TargetProcess + class TargetProcess::Bug + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :history, 'BugHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + belongs_to :build + belongs_to :user_story + belongs_to :severity + + end +end diff --git a/lib/target_process/entities/bug_history.rb b/lib/target_process/entities/bug_history.rb new file mode 100644 index 0000000..d97f426 --- /dev/null +++ b/lib/target_process/entities/bug_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::BugHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :bug + + end +end diff --git a/lib/target_process/entities/build.rb b/lib/target_process/entities/build.rb new file mode 100644 index 0000000..9c97570 --- /dev/null +++ b/lib/target_process/entities/build.rb @@ -0,0 +1,20 @@ +module TargetProcess + class TargetProcess::Build + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :bugs + has_many :test_plan_runs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + + end +end diff --git a/lib/target_process/entities/comment.rb b/lib/target_process/entities/comment.rb new file mode 100644 index 0000000..93ce665 --- /dev/null +++ b/lib/target_process/entities/comment.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::Comment + include TargetProcess::Base + belongs_to :general + belongs_to :owner, 'GeneralUser' + + end +end diff --git a/lib/target_process/entities/company.rb b/lib/target_process/entities/company.rb new file mode 100644 index 0000000..c20a177 --- /dev/null +++ b/lib/target_process/entities/company.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::Company + include TargetProcess::Base + has_many :projects + + end +end diff --git a/lib/target_process/entities/custom_activity.rb b/lib/target_process/entities/custom_activity.rb new file mode 100644 index 0000000..eee3ffb --- /dev/null +++ b/lib/target_process/entities/custom_activity.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::CustomActivity + include TargetProcess::Base + has_many :times + belongs_to :project + belongs_to :user + + end +end diff --git a/lib/target_process/entities/entity_state.rb b/lib/target_process/entities/entity_state.rb new file mode 100644 index 0000000..00327ba --- /dev/null +++ b/lib/target_process/entities/entity_state.rb @@ -0,0 +1,11 @@ +module TargetProcess + class TargetProcess::EntityState + include TargetProcess::Base + has_many :next_states, 'EntityState' + has_many :previous_states, 'EntityState' + belongs_to :role + belongs_to :entity_type + belongs_to :process + + end +end diff --git a/lib/target_process/entities/entity_type.rb b/lib/target_process/entities/entity_type.rb new file mode 100644 index 0000000..4e1b7b9 --- /dev/null +++ b/lib/target_process/entities/entity_type.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::EntityType + include TargetProcess::Base + has_many :entity_states + + end +end diff --git a/lib/target_process/entities/feature.rb b/lib/target_process/entities/feature.rb new file mode 100644 index 0000000..9d151c2 --- /dev/null +++ b/lib/target_process/entities/feature.rb @@ -0,0 +1,30 @@ +module TargetProcess + class TargetProcess::Feature + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :user_stories + has_many :history, 'FeatureHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + + end +end diff --git a/lib/target_process/entities/feature_history.rb b/lib/target_process/entities/feature_history.rb new file mode 100644 index 0000000..76b1c42 --- /dev/null +++ b/lib/target_process/entities/feature_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::FeatureHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :feature + + end +end diff --git a/lib/target_process/entities/general.rb b/lib/target_process/entities/general.rb new file mode 100644 index 0000000..75c48cd --- /dev/null +++ b/lib/target_process/entities/general.rb @@ -0,0 +1,16 @@ +module TargetProcess + class TargetProcess::General + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + + end +end diff --git a/lib/target_process/entities/general_user.rb b/lib/target_process/entities/general_user.rb new file mode 100644 index 0000000..f1aeac3 --- /dev/null +++ b/lib/target_process/entities/general_user.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::GeneralUser + include TargetProcess::Base + has_many :assignables + has_many :comments + has_many :requests + + end +end diff --git a/lib/target_process/entities/impediment.rb b/lib/target_process/entities/impediment.rb new file mode 100644 index 0000000..9a53bc2 --- /dev/null +++ b/lib/target_process/entities/impediment.rb @@ -0,0 +1,21 @@ +module TargetProcess + class TargetProcess::Impediment + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :history, 'ImpedimentHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :assignable + belongs_to :entity_state + belongs_to :priority + belongs_to :responsible, 'User' + + end +end diff --git a/lib/target_process/entities/impediment_history.rb b/lib/target_process/entities/impediment_history.rb new file mode 100644 index 0000000..054c6b3 --- /dev/null +++ b/lib/target_process/entities/impediment_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::ImpedimentHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :impediment + + end +end diff --git a/lib/target_process/entities/iteration.rb b/lib/target_process/entities/iteration.rb new file mode 100644 index 0000000..99f786f --- /dev/null +++ b/lib/target_process/entities/iteration.rb @@ -0,0 +1,24 @@ +module TargetProcess + class TargetProcess::Iteration + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assignables + has_many :user_stories + has_many :tasks + has_many :bugs + has_many :test_plan_runs + has_many :requests + has_many :builds + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + + end +end diff --git a/lib/target_process/entities/message.rb b/lib/target_process/entities/message.rb new file mode 100644 index 0000000..9dc4469 --- /dev/null +++ b/lib/target_process/entities/message.rb @@ -0,0 +1,11 @@ +module TargetProcess + class TargetProcess::Message + include TargetProcess::Base + has_many :generals + has_many :attachments + belongs_to :from, 'GeneralUser' + belongs_to :to, 'GeneralUser' + belongs_to :message_uid + + end +end diff --git a/lib/target_process/entities/message_uid.rb b/lib/target_process/entities/message_uid.rb new file mode 100644 index 0000000..155a608 --- /dev/null +++ b/lib/target_process/entities/message_uid.rb @@ -0,0 +1,6 @@ +module TargetProcess + class TargetProcess::MessageUid + include TargetProcess::Base + + end +end diff --git a/lib/target_process/entities/milestone.rb b/lib/target_process/entities/milestone.rb new file mode 100644 index 0000000..a9eb9d7 --- /dev/null +++ b/lib/target_process/entities/milestone.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::Milestone + include TargetProcess::Base + has_many :projects + belongs_to :owner, 'User' + + end +end diff --git a/lib/target_process/entities/practice.rb b/lib/target_process/entities/practice.rb new file mode 100644 index 0000000..fbd391d --- /dev/null +++ b/lib/target_process/entities/practice.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::Practice + include TargetProcess::Base + has_many :processes + + end +end diff --git a/lib/target_process/entities/priority.rb b/lib/target_process/entities/priority.rb new file mode 100644 index 0000000..cbb288a --- /dev/null +++ b/lib/target_process/entities/priority.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::Priority + include TargetProcess::Base + belongs_to :entity_type + + end +end diff --git a/lib/target_process/entities/process.rb b/lib/target_process/entities/process.rb new file mode 100644 index 0000000..3dbe17a --- /dev/null +++ b/lib/target_process/entities/process.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::Process + include TargetProcess::Base + has_many :entity_states + has_many :projects + has_many :practices + + end +end diff --git a/lib/target_process/entities/program.rb b/lib/target_process/entities/program.rb new file mode 100644 index 0000000..4698868 --- /dev/null +++ b/lib/target_process/entities/program.rb @@ -0,0 +1,17 @@ +module TargetProcess + class TargetProcess::Program + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :projects + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + + end +end diff --git a/lib/target_process/entities/project.rb b/lib/target_process/entities/project.rb new file mode 100644 index 0000000..8f1c693 --- /dev/null +++ b/lib/target_process/entities/project.rb @@ -0,0 +1,37 @@ +module TargetProcess + class TargetProcess::Project + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :generals + has_many :features + has_many :releases + has_many :iterations + has_many :user_stories + has_many :tasks + has_many :bugs + has_many :test_cases + has_many :test_plans + has_many :builds + has_many :times + has_many :revisions + has_many :custom_activities + has_many :project_members + has_many :team_projects + has_many :requests + has_many :test_plan_runs + has_many :milestones + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :program + belongs_to :process + belongs_to :company + + end +end diff --git a/lib/target_process/entities/project_member.rb b/lib/target_process/entities/project_member.rb new file mode 100644 index 0000000..da1bd49 --- /dev/null +++ b/lib/target_process/entities/project_member.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::ProjectMember + include TargetProcess::Base + belongs_to :project + belongs_to :user + belongs_to :role + + end +end diff --git a/lib/target_process/entities/relation.rb b/lib/target_process/entities/relation.rb new file mode 100644 index 0000000..60e0590 --- /dev/null +++ b/lib/target_process/entities/relation.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::Relation + include TargetProcess::Base + belongs_to :master, 'General' + belongs_to :slave, 'General' + belongs_to :relation_type + + end +end diff --git a/lib/target_process/entities/relation_type.rb b/lib/target_process/entities/relation_type.rb new file mode 100644 index 0000000..59e762c --- /dev/null +++ b/lib/target_process/entities/relation_type.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::RelationType + include TargetProcess::Base + has_many :relations + + end +end diff --git a/lib/target_process/entities/release.rb b/lib/target_process/entities/release.rb new file mode 100644 index 0000000..8f93580 --- /dev/null +++ b/lib/target_process/entities/release.rb @@ -0,0 +1,25 @@ +module TargetProcess + class TargetProcess::Release + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :iterations + has_many :assignables + has_many :features + has_many :user_stories + has_many :tasks + has_many :bugs + has_many :test_plan_runs + has_many :requests + has_many :builds + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + + end +end diff --git a/lib/target_process/entities/request.rb b/lib/target_process/entities/request.rb new file mode 100644 index 0000000..63dd2af --- /dev/null +++ b/lib/target_process/entities/request.rb @@ -0,0 +1,31 @@ +module TargetProcess + class TargetProcess::Request + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :requesters, 'GeneralUser' + has_many :history, 'RequestHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + belongs_to :request_type + + end +end diff --git a/lib/target_process/entities/request_history.rb b/lib/target_process/entities/request_history.rb new file mode 100644 index 0000000..50171a7 --- /dev/null +++ b/lib/target_process/entities/request_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::RequestHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :request + + end +end diff --git a/lib/target_process/entities/request_type.rb b/lib/target_process/entities/request_type.rb new file mode 100644 index 0000000..d6980cb --- /dev/null +++ b/lib/target_process/entities/request_type.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::RequestType + include TargetProcess::Base + has_many :requests + + end +end diff --git a/lib/target_process/entities/requester.rb b/lib/target_process/entities/requester.rb new file mode 100644 index 0000000..9b5abd4 --- /dev/null +++ b/lib/target_process/entities/requester.rb @@ -0,0 +1,10 @@ +module TargetProcess + class TargetProcess::Requester + include TargetProcess::Base + has_many :assignables + has_many :comments + has_many :requests + belongs_to :company + + end +end diff --git a/lib/target_process/entities/revision.rb b/lib/target_process/entities/revision.rb new file mode 100644 index 0000000..540329d --- /dev/null +++ b/lib/target_process/entities/revision.rb @@ -0,0 +1,10 @@ +module TargetProcess + class TargetProcess::Revision + include TargetProcess::Base + has_many :revision_files + has_many :assignables + belongs_to :project + belongs_to :author, 'User' + + end +end diff --git a/lib/target_process/entities/revision_file.rb b/lib/target_process/entities/revision_file.rb new file mode 100644 index 0000000..35d2462 --- /dev/null +++ b/lib/target_process/entities/revision_file.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::RevisionFile + include TargetProcess::Base + belongs_to :revision + + end +end diff --git a/lib/target_process/entities/role.rb b/lib/target_process/entities/role.rb new file mode 100644 index 0000000..0530602 --- /dev/null +++ b/lib/target_process/entities/role.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::Role + include TargetProcess::Base + has_many :role_efforts + has_many :entity_states + + end +end diff --git a/lib/target_process/entities/role_effort.rb b/lib/target_process/entities/role_effort.rb new file mode 100644 index 0000000..7ed1424 --- /dev/null +++ b/lib/target_process/entities/role_effort.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::RoleEffort + include TargetProcess::Base + belongs_to :assignable + belongs_to :role + + end +end diff --git a/lib/target_process/entities/severity.rb b/lib/target_process/entities/severity.rb new file mode 100644 index 0000000..5d68f78 --- /dev/null +++ b/lib/target_process/entities/severity.rb @@ -0,0 +1,6 @@ +module TargetProcess + class TargetProcess::Severity + include TargetProcess::Base + + end +end diff --git a/lib/target_process/entities/tag.rb b/lib/target_process/entities/tag.rb new file mode 100644 index 0000000..50bcf51 --- /dev/null +++ b/lib/target_process/entities/tag.rb @@ -0,0 +1,7 @@ +module TargetProcess + class TargetProcess::Tag + include TargetProcess::Base + has_many :generals + + end +end diff --git a/lib/target_process/entities/task.rb b/lib/target_process/entities/task.rb new file mode 100644 index 0000000..384ab68 --- /dev/null +++ b/lib/target_process/entities/task.rb @@ -0,0 +1,30 @@ +module TargetProcess + class TargetProcess::Task + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :history, 'TaskHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + belongs_to :user_story + + end +end diff --git a/lib/target_process/entities/task_history.rb b/lib/target_process/entities/task_history.rb new file mode 100644 index 0000000..8fc626b --- /dev/null +++ b/lib/target_process/entities/task_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::TaskHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :task + + end +end diff --git a/lib/target_process/entities/team.rb b/lib/target_process/entities/team.rb new file mode 100644 index 0000000..555f6d4 --- /dev/null +++ b/lib/target_process/entities/team.rb @@ -0,0 +1,20 @@ +module TargetProcess + class TargetProcess::Team + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :team_members + has_many :team_projects + has_many :assignables + has_many :team_iterations + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + + end +end diff --git a/lib/target_process/entities/team_iteration.rb b/lib/target_process/entities/team_iteration.rb new file mode 100644 index 0000000..df3fda2 --- /dev/null +++ b/lib/target_process/entities/team_iteration.rb @@ -0,0 +1,21 @@ +module TargetProcess + class TargetProcess::TeamIteration + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assignables + has_many :user_stories + has_many :tasks + has_many :bugs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :team + + end +end diff --git a/lib/target_process/entities/team_member.rb b/lib/target_process/entities/team_member.rb new file mode 100644 index 0000000..2700540 --- /dev/null +++ b/lib/target_process/entities/team_member.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::TeamMember + include TargetProcess::Base + belongs_to :team + belongs_to :user + belongs_to :role + + end +end diff --git a/lib/target_process/entities/team_project.rb b/lib/target_process/entities/team_project.rb new file mode 100644 index 0000000..238d55d --- /dev/null +++ b/lib/target_process/entities/team_project.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::TeamProject + include TargetProcess::Base + belongs_to :team + belongs_to :project + + end +end diff --git a/lib/target_process/entities/test_case.rb b/lib/target_process/entities/test_case.rb new file mode 100644 index 0000000..948d291 --- /dev/null +++ b/lib/target_process/entities/test_case.rb @@ -0,0 +1,20 @@ +module TargetProcess + class TargetProcess::TestCase + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :test_plans + has_many :test_case_runs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :user_story + belongs_to :priority + + end +end diff --git a/lib/target_process/entities/test_case_run.rb b/lib/target_process/entities/test_case_run.rb new file mode 100644 index 0000000..35b5c18 --- /dev/null +++ b/lib/target_process/entities/test_case_run.rb @@ -0,0 +1,8 @@ +module TargetProcess + class TargetProcess::TestCaseRun + include TargetProcess::Base + has_many :test_cases + belongs_to :test_plan_run + + end +end diff --git a/lib/target_process/entities/test_plan_run.rb b/lib/target_process/entities/test_plan_run.rb new file mode 100644 index 0000000..01d93cb --- /dev/null +++ b/lib/target_process/entities/test_plan_run.rb @@ -0,0 +1,31 @@ +module TargetProcess + class TargetProcess::TestPlanRun + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :test_case_runs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + belongs_to :build + belongs_to :test_plan + + end +end diff --git a/lib/target_process/entities/testplan.rb b/lib/target_process/entities/testplan.rb new file mode 100644 index 0000000..b25430b --- /dev/null +++ b/lib/target_process/entities/testplan.rb @@ -0,0 +1,18 @@ +module TargetProcess + class TargetProcess::Testplan + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :test_cases + has_many :test_plan_runs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + + end +end diff --git a/lib/target_process/entities/time.rb b/lib/target_process/entities/time.rb new file mode 100644 index 0000000..f4fafdb --- /dev/null +++ b/lib/target_process/entities/time.rb @@ -0,0 +1,11 @@ +module TargetProcess + class TargetProcess::Time + include TargetProcess::Base + belongs_to :project + belongs_to :user + belongs_to :assignable + belongs_to :role + belongs_to :custom_activity + + end +end diff --git a/lib/target_process/entities/user.rb b/lib/target_process/entities/user.rb new file mode 100644 index 0000000..31dfd43 --- /dev/null +++ b/lib/target_process/entities/user.rb @@ -0,0 +1,17 @@ +module TargetProcess + class TargetProcess::User + include TargetProcess::Base + has_many :assignables + has_many :comments + has_many :requests + has_many :times + has_many :impediments + has_many :custom_activities + has_many :revisions + has_many :team_members + has_many :project_members + has_many :milestones + belongs_to :role + + end +end diff --git a/lib/target_process/entities/user_story.rb b/lib/target_process/entities/user_story.rb new file mode 100644 index 0000000..0eb1b86 --- /dev/null +++ b/lib/target_process/entities/user_story.rb @@ -0,0 +1,33 @@ +module TargetProcess + class TargetProcess::UserStory + include TargetProcess::Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :assigned_user, 'GeneralUser' + has_many :assignments + has_many :impediments + has_many :times + has_many :role_efforts + has_many :revisions + has_many :tasks + has_many :bugs + has_many :test_cases + has_many :history, 'UserStoryHistory' + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + belongs_to :release + belongs_to :iteration + belongs_to :team_iteration + belongs_to :team + belongs_to :priority + belongs_to :entity_state + belongs_to :feature + + end +end diff --git a/lib/target_process/entities/user_story_history.rb b/lib/target_process/entities/user_story_history.rb new file mode 100644 index 0000000..fda49ff --- /dev/null +++ b/lib/target_process/entities/user_story_history.rb @@ -0,0 +1,9 @@ +module TargetProcess + class TargetProcess::UserStoryHistory + include TargetProcess::Base + belongs_to :entity_state + belongs_to :modifier, 'GeneralUser' + belongs_to :user_story + + end +end diff --git a/lib/target_process/user_story.rb b/lib/target_process/user_story.rb index 525b4bc..5a04f62 100644 --- a/lib/target_process/user_story.rb +++ b/lib/target_process/user_story.rb @@ -1,10 +1,15 @@ + module TargetProcess - class Task; include TargetProcess::Base; end + class Task + include TargetProcess::Base + belongs_to :user_story + end class UserStory include TargetProcess::Base has_many :tasks - + has_many :bugs + has_many :assigned_user, 'GeneralUser' belongs_to :project end end diff --git a/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid.yml b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid.yml new file mode 100644 index 0000000..c301b45 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid.yml @@ -0,0 +1,88 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/context/ + body: + encoding: UTF-8 + string: acid=2D2F0BA211357509A03167EECB5F3456&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '3124' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '28' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Acid\": \"C8CC8C1F6C593B3A9A33F8F3C376BDF2\",\r\n \"Edition\": + \"Pro\",\r\n \"Version\": \"2.24.6.24152\",\r\n \"AppContext\": {\r\n \"ProjectContext\": + {\r\n \"No\": true\r\n },\r\n \"TeamContext\": {\r\n \"No\": + true\r\n }\r\n },\r\n \"Culture\": {\r\n \"Name\": \"en-US\",\r\n + \ \"TimePattern\": \"g:i A\",\r\n \"ShortDateFormat\": \"M/d/yyyy\",\r\n + \ \"LongDateFormat\": \"dddd, MMMM dd, yyyy\",\r\n \"DecimalSeparator\": + \".\"\r\n },\r\n \"LoggedUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": + 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n + \ \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"IsActive\": true,\r\n + \ \"IsAdministrator\": true\r\n },\r\n \"Processes\": {\r\n \"Items\": + [\r\n {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": + true,\r\n \"Terms\": {\r\n \"Items\": [\r\n {\r\n + \ \"Name\": \"Iteration\",\r\n \"Value\": \"Sprint\"\r\n + \ },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"Value\": \"Sprints\"\r\n },\r\n {\r\n + \ \"Name\": \"Iteration Big Icon Text\",\r\n \"Value\": + \"Sprint\"\r\n },\r\n {\r\n \"Name\": \"Iteration + Small Icon Text\",\r\n \"Value\": \"S\"\r\n }\r\n + \ ]\r\n },\r\n \"Practices\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Planning\",\r\n \"Description\": + \"General Project planning. Supports iterative development, user stories and + tasks hierarchy\",\r\n \"EffortPoints\": \"Hour\",\r\n \"IsStoryEffortEqualsSumTasksEffort\": + false\r\n },\r\n {\r\n \"Name\": \"Time + Tracking\",\r\n \"Description\": \"Controls spent and remaining + time for each assignable, iteration, release. Provides better project traceability + and stats close to reality\",\r\n \"IsCloseAssignableIfZeroTimeRemaining\": + false,\r\n \"IsTimeDescriptionFieldVisible\": true,\r\n \"IsTimeDescriptionRequired\": + true,\r\n \"IsRequiredShowRoleDropDown\": false\r\n },\r\n + \ {\r\n \"Name\": \"Bug Tracking\",\r\n \"Description\": + \"Simple Bug Tracking. Bugs list, bugs workflow and assignments\"\r\n },\r\n + \ {\r\n \"Name\": \"Requirements\",\r\n \"Description\": + \"High level requirements management. Supports Features and Release Planning\"\r\n + \ },\r\n {\r\n \"Name\": \"Test Cases\",\r\n + \ \"Description\": \"Test cases and test plans management.\"\r\n + \ },\r\n {\r\n \"Name\": \"Source Control\",\r\n + \ \"Description\": \"Integration with Source Control.\"\r\n },\r\n + \ {\r\n \"Name\": \"Help Desk\",\r\n \"Description\": + \"Integrated Help Desk.\"\r\n },\r\n {\r\n \"Name\": + \"Iterations\",\r\n \"Description\": \"Supports Iterations-oriented + development practice.\"\r\n }\r\n ]\r\n },\r\n + \ \"CustomFields\": {\r\n \"Items\": []\r\n }\r\n }\r\n + \ ]\r\n },\r\n \"SelectedProjects\": {\r\n \"Items\": []\r\n },\r\n + \ \"SelectedTeams\": {\r\n \"Items\": []\r\n }\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:35 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid_and_ids.yml b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid_and_ids.yml new file mode 100644 index 0000000..9bea934 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_acid_and_ids.yml @@ -0,0 +1,88 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/context/ + body: + encoding: UTF-8 + string: acid=2D2F0BA211357509A03167EECB5F3456&ids[]=1705&ids[]=1706&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '3124' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '30' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Acid\": \"C8CC8C1F6C593B3A9A33F8F3C376BDF2\",\r\n \"Edition\": + \"Pro\",\r\n \"Version\": \"2.24.6.24152\",\r\n \"AppContext\": {\r\n \"ProjectContext\": + {\r\n \"No\": true\r\n },\r\n \"TeamContext\": {\r\n \"No\": + true\r\n }\r\n },\r\n \"Culture\": {\r\n \"Name\": \"en-US\",\r\n + \ \"TimePattern\": \"g:i A\",\r\n \"ShortDateFormat\": \"M/d/yyyy\",\r\n + \ \"LongDateFormat\": \"dddd, MMMM dd, yyyy\",\r\n \"DecimalSeparator\": + \".\"\r\n },\r\n \"LoggedUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": + 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n + \ \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"IsActive\": true,\r\n + \ \"IsAdministrator\": true\r\n },\r\n \"Processes\": {\r\n \"Items\": + [\r\n {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": + true,\r\n \"Terms\": {\r\n \"Items\": [\r\n {\r\n + \ \"Name\": \"Iteration\",\r\n \"Value\": \"Sprint\"\r\n + \ },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"Value\": \"Sprints\"\r\n },\r\n {\r\n + \ \"Name\": \"Iteration Big Icon Text\",\r\n \"Value\": + \"Sprint\"\r\n },\r\n {\r\n \"Name\": \"Iteration + Small Icon Text\",\r\n \"Value\": \"S\"\r\n }\r\n + \ ]\r\n },\r\n \"Practices\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Planning\",\r\n \"Description\": + \"General Project planning. Supports iterative development, user stories and + tasks hierarchy\",\r\n \"EffortPoints\": \"Hour\",\r\n \"IsStoryEffortEqualsSumTasksEffort\": + false\r\n },\r\n {\r\n \"Name\": \"Time + Tracking\",\r\n \"Description\": \"Controls spent and remaining + time for each assignable, iteration, release. Provides better project traceability + and stats close to reality\",\r\n \"IsCloseAssignableIfZeroTimeRemaining\": + false,\r\n \"IsTimeDescriptionFieldVisible\": true,\r\n \"IsTimeDescriptionRequired\": + true,\r\n \"IsRequiredShowRoleDropDown\": false\r\n },\r\n + \ {\r\n \"Name\": \"Bug Tracking\",\r\n \"Description\": + \"Simple Bug Tracking. Bugs list, bugs workflow and assignments\"\r\n },\r\n + \ {\r\n \"Name\": \"Requirements\",\r\n \"Description\": + \"High level requirements management. Supports Features and Release Planning\"\r\n + \ },\r\n {\r\n \"Name\": \"Test Cases\",\r\n + \ \"Description\": \"Test cases and test plans management.\"\r\n + \ },\r\n {\r\n \"Name\": \"Source Control\",\r\n + \ \"Description\": \"Integration with Source Control.\"\r\n },\r\n + \ {\r\n \"Name\": \"Help Desk\",\r\n \"Description\": + \"Integrated Help Desk.\"\r\n },\r\n {\r\n \"Name\": + \"Iterations\",\r\n \"Description\": \"Supports Iterations-oriented + development practice.\"\r\n }\r\n ]\r\n },\r\n + \ \"CustomFields\": {\r\n \"Items\": []\r\n }\r\n }\r\n + \ ]\r\n },\r\n \"SelectedProjects\": {\r\n \"Items\": []\r\n },\r\n + \ \"SelectedTeams\": {\r\n \"Items\": []\r\n }\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:36 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_ids.yml b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_ids.yml new file mode 100644 index 0000000..2e6d8b1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_ids.yml @@ -0,0 +1,171 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/context/ + body: + encoding: UTF-8 + string: ids[]=1705&ids[]=1706&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '8606' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '72' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Acid\": \"DB2C55A27AE7CDD5A536A85E6C5A7FBB\",\r\n \"Edition\": + \"Pro\",\r\n \"Version\": \"2.24.6.24152\",\r\n \"AppContext\": {\r\n \"ProjectContext\": + {\r\n \"No\": true\r\n },\r\n \"TeamContext\": {\r\n \"No\": + true\r\n }\r\n },\r\n \"Culture\": {\r\n \"Name\": \"en-US\",\r\n + \ \"TimePattern\": \"g:i A\",\r\n \"ShortDateFormat\": \"M/d/yyyy\",\r\n + \ \"LongDateFormat\": \"dddd, MMMM dd, yyyy\",\r\n \"DecimalSeparator\": + \".\"\r\n },\r\n \"LoggedUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": + 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n + \ \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"IsActive\": true,\r\n + \ \"IsAdministrator\": true\r\n },\r\n \"Processes\": {\r\n \"Items\": + [\r\n {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": + true,\r\n \"Terms\": {\r\n \"Items\": [\r\n {\r\n + \ \"Name\": \"Iteration\",\r\n \"Value\": \"Sprint\"\r\n + \ },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"Value\": \"Sprints\"\r\n },\r\n {\r\n + \ \"Name\": \"Iteration Big Icon Text\",\r\n \"Value\": + \"Sprint\"\r\n },\r\n {\r\n \"Name\": \"Iteration + Small Icon Text\",\r\n \"Value\": \"S\"\r\n }\r\n + \ ]\r\n },\r\n \"Practices\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Planning\",\r\n \"Description\": + \"General Project planning. Supports iterative development, user stories and + tasks hierarchy\",\r\n \"EffortPoints\": \"Hour\",\r\n \"IsStoryEffortEqualsSumTasksEffort\": + false\r\n },\r\n {\r\n \"Name\": \"Time + Tracking\",\r\n \"Description\": \"Controls spent and remaining + time for each assignable, iteration, release. Provides better project traceability + and stats close to reality\",\r\n \"IsCloseAssignableIfZeroTimeRemaining\": + false,\r\n \"IsTimeDescriptionFieldVisible\": true,\r\n \"IsTimeDescriptionRequired\": + true,\r\n \"IsRequiredShowRoleDropDown\": false\r\n },\r\n + \ {\r\n \"Name\": \"Bug Tracking\",\r\n \"Description\": + \"Simple Bug Tracking. Bugs list, bugs workflow and assignments\"\r\n },\r\n + \ {\r\n \"Name\": \"Requirements\",\r\n \"Description\": + \"High level requirements management. Supports Features and Release Planning\"\r\n + \ },\r\n {\r\n \"Name\": \"Test Cases\",\r\n + \ \"Description\": \"Test cases and test plans management.\"\r\n + \ },\r\n {\r\n \"Name\": \"Source Control\",\r\n + \ \"Description\": \"Integration with Source Control.\"\r\n },\r\n + \ {\r\n \"Name\": \"Help Desk\",\r\n \"Description\": + \"Integrated Help Desk.\"\r\n },\r\n {\r\n \"Name\": + \"Iterations\",\r\n \"Description\": \"Supports Iterations-oriented + development practice.\"\r\n }\r\n ]\r\n },\r\n + \ \"CustomFields\": {\r\n \"Items\": []\r\n }\r\n }\r\n + \ ]\r\n },\r\n \"SelectedProjects\": {\r\n \"Items\": [\r\n {\r\n + \ \"Id\": 3421,\r\n \"Name\": \"Bar_Foo\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 4396,\r\n + \ \"Name\": \"foo bar\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2275,\r\n \"Name\": + \"Foo123bar\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Program\": null\r\n },\r\n {\r\n + \ \"Id\": 2276,\r\n \"Name\": \"Foo321bar\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2274,\r\n + \ \"Name\": \"Foobar\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2496,\r\n \"Name\": + \"Foobar1\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Program\": null\r\n },\r\n {\r\n + \ \"Id\": 2014,\r\n \"Name\": \"foobar3318392\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2030,\r\n + \ \"Name\": \"Project_new_name2499868962\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 4536,\r\n + \ \"Name\": \"Project_new_name3031244325\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2022,\r\n + \ \"Name\": \"Project_new_name6757305669\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2026,\r\n + \ \"Name\": \"Project1306696328\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2023,\r\n \"Name\": + \"Project1694405550\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 4535,\r\n \"Name\": \"Project1736096232\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2015,\r\n \"Name\": \"Project2135869770\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2032,\r\n + \ \"Name\": \"Project2168633823\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 4531,\r\n \"Name\": + \"Project2498866686\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2031,\r\n \"Name\": \"Project321906060\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2019,\r\n \"Name\": \"Project3375152595\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2027,\r\n + \ \"Name\": \"Project384976238\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2017,\r\n \"Name\": + \"Project391746579\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2020,\r\n \"Name\": \"Project4201565256\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2011,\r\n \"Name\": \"Project466748765\",\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2024,\r\n \"Name\": + \"Project4809733732\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 4537,\r\n \"Name\": \"Project5007063875\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2025,\r\n \"Name\": \"Project5677221732\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2013,\r\n + \ \"Name\": \"Project58250070\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2012,\r\n \"Name\": + \"Project5946354427\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2029,\r\n \"Name\": \"Project66411145\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2021,\r\n \"Name\": \"Project855107760\",\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2010,\r\n \"Name\": + \"Project8872909665\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ }\r\n ]\r\n },\r\n \"SelectedTeams\": {\r\n \"Items\": []\r\n + \ }\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:34 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_single_id.yml b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_single_id.yml new file mode 100644 index 0000000..6657bd1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_context_by_single_id.yml @@ -0,0 +1,88 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/context/ + body: + encoding: UTF-8 + string: ids=1705&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '3124' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Acid\": \"6C17D8319C81AC3D36AFAD64CAE08A28\",\r\n \"Edition\": + \"Pro\",\r\n \"Version\": \"2.24.6.24152\",\r\n \"AppContext\": {\r\n \"ProjectContext\": + {\r\n \"No\": true\r\n },\r\n \"TeamContext\": {\r\n \"No\": + true\r\n }\r\n },\r\n \"Culture\": {\r\n \"Name\": \"en-US\",\r\n + \ \"TimePattern\": \"g:i A\",\r\n \"ShortDateFormat\": \"M/d/yyyy\",\r\n + \ \"LongDateFormat\": \"dddd, MMMM dd, yyyy\",\r\n \"DecimalSeparator\": + \".\"\r\n },\r\n \"LoggedUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": + 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n + \ \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"IsActive\": true,\r\n + \ \"IsAdministrator\": true\r\n },\r\n \"Processes\": {\r\n \"Items\": + [\r\n {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": + true,\r\n \"Terms\": {\r\n \"Items\": [\r\n {\r\n + \ \"Name\": \"Iteration\",\r\n \"Value\": \"Sprint\"\r\n + \ },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"Value\": \"Sprints\"\r\n },\r\n {\r\n + \ \"Name\": \"Iteration Big Icon Text\",\r\n \"Value\": + \"Sprint\"\r\n },\r\n {\r\n \"Name\": \"Iteration + Small Icon Text\",\r\n \"Value\": \"S\"\r\n }\r\n + \ ]\r\n },\r\n \"Practices\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Planning\",\r\n \"Description\": + \"General Project planning. Supports iterative development, user stories and + tasks hierarchy\",\r\n \"EffortPoints\": \"Hour\",\r\n \"IsStoryEffortEqualsSumTasksEffort\": + false\r\n },\r\n {\r\n \"Name\": \"Time + Tracking\",\r\n \"Description\": \"Controls spent and remaining + time for each assignable, iteration, release. Provides better project traceability + and stats close to reality\",\r\n \"IsCloseAssignableIfZeroTimeRemaining\": + false,\r\n \"IsTimeDescriptionFieldVisible\": true,\r\n \"IsTimeDescriptionRequired\": + true,\r\n \"IsRequiredShowRoleDropDown\": false\r\n },\r\n + \ {\r\n \"Name\": \"Bug Tracking\",\r\n \"Description\": + \"Simple Bug Tracking. Bugs list, bugs workflow and assignments\"\r\n },\r\n + \ {\r\n \"Name\": \"Requirements\",\r\n \"Description\": + \"High level requirements management. Supports Features and Release Planning\"\r\n + \ },\r\n {\r\n \"Name\": \"Test Cases\",\r\n + \ \"Description\": \"Test cases and test plans management.\"\r\n + \ },\r\n {\r\n \"Name\": \"Source Control\",\r\n + \ \"Description\": \"Integration with Source Control.\"\r\n },\r\n + \ {\r\n \"Name\": \"Help Desk\",\r\n \"Description\": + \"Integrated Help Desk.\"\r\n },\r\n {\r\n \"Name\": + \"Iterations\",\r\n \"Description\": \"Supports Iterations-oriented + development practice.\"\r\n }\r\n ]\r\n },\r\n + \ \"CustomFields\": {\r\n \"Items\": []\r\n }\r\n }\r\n + \ ]\r\n },\r\n \"SelectedProjects\": {\r\n \"Items\": []\r\n },\r\n + \ \"SelectedTeams\": {\r\n \"Items\": []\r\n }\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:34 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_global_context.yml b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_global_context.yml new file mode 100644 index 0000000..0391a8f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess/_context/return_global_context.yml @@ -0,0 +1,171 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/context/ + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '8606' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '54' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Acid\": \"DB2C55A27AE7CDD5A536A85E6C5A7FBB\",\r\n \"Edition\": + \"Pro\",\r\n \"Version\": \"2.24.6.24152\",\r\n \"AppContext\": {\r\n \"ProjectContext\": + {\r\n \"No\": true\r\n },\r\n \"TeamContext\": {\r\n \"No\": + true\r\n }\r\n },\r\n \"Culture\": {\r\n \"Name\": \"en-US\",\r\n + \ \"TimePattern\": \"g:i A\",\r\n \"ShortDateFormat\": \"M/d/yyyy\",\r\n + \ \"LongDateFormat\": \"dddd, MMMM dd, yyyy\",\r\n \"DecimalSeparator\": + \".\"\r\n },\r\n \"LoggedUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": + 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n + \ \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"IsActive\": true,\r\n + \ \"IsAdministrator\": true\r\n },\r\n \"Processes\": {\r\n \"Items\": + [\r\n {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": + true,\r\n \"Terms\": {\r\n \"Items\": [\r\n {\r\n + \ \"Name\": \"Iteration\",\r\n \"Value\": \"Sprint\"\r\n + \ },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"Value\": \"Sprints\"\r\n },\r\n {\r\n + \ \"Name\": \"Iteration Big Icon Text\",\r\n \"Value\": + \"Sprint\"\r\n },\r\n {\r\n \"Name\": \"Iteration + Small Icon Text\",\r\n \"Value\": \"S\"\r\n }\r\n + \ ]\r\n },\r\n \"Practices\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Planning\",\r\n \"Description\": + \"General Project planning. Supports iterative development, user stories and + tasks hierarchy\",\r\n \"EffortPoints\": \"Hour\",\r\n \"IsStoryEffortEqualsSumTasksEffort\": + false\r\n },\r\n {\r\n \"Name\": \"Time + Tracking\",\r\n \"Description\": \"Controls spent and remaining + time for each assignable, iteration, release. Provides better project traceability + and stats close to reality\",\r\n \"IsCloseAssignableIfZeroTimeRemaining\": + false,\r\n \"IsTimeDescriptionFieldVisible\": true,\r\n \"IsTimeDescriptionRequired\": + true,\r\n \"IsRequiredShowRoleDropDown\": false\r\n },\r\n + \ {\r\n \"Name\": \"Bug Tracking\",\r\n \"Description\": + \"Simple Bug Tracking. Bugs list, bugs workflow and assignments\"\r\n },\r\n + \ {\r\n \"Name\": \"Requirements\",\r\n \"Description\": + \"High level requirements management. Supports Features and Release Planning\"\r\n + \ },\r\n {\r\n \"Name\": \"Test Cases\",\r\n + \ \"Description\": \"Test cases and test plans management.\"\r\n + \ },\r\n {\r\n \"Name\": \"Source Control\",\r\n + \ \"Description\": \"Integration with Source Control.\"\r\n },\r\n + \ {\r\n \"Name\": \"Help Desk\",\r\n \"Description\": + \"Integrated Help Desk.\"\r\n },\r\n {\r\n \"Name\": + \"Iterations\",\r\n \"Description\": \"Supports Iterations-oriented + development practice.\"\r\n }\r\n ]\r\n },\r\n + \ \"CustomFields\": {\r\n \"Items\": []\r\n }\r\n }\r\n + \ ]\r\n },\r\n \"SelectedProjects\": {\r\n \"Items\": [\r\n {\r\n + \ \"Id\": 3421,\r\n \"Name\": \"Bar_Foo\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 4396,\r\n + \ \"Name\": \"foo bar\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2275,\r\n \"Name\": + \"Foo123bar\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Program\": null\r\n },\r\n {\r\n + \ \"Id\": 2276,\r\n \"Name\": \"Foo321bar\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2274,\r\n + \ \"Name\": \"Foobar\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2496,\r\n \"Name\": + \"Foobar1\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Program\": null\r\n },\r\n {\r\n + \ \"Id\": 2014,\r\n \"Name\": \"foobar3318392\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2030,\r\n + \ \"Name\": \"Project_new_name2499868962\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 4536,\r\n + \ \"Name\": \"Project_new_name3031244325\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2022,\r\n + \ \"Name\": \"Project_new_name6757305669\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2026,\r\n + \ \"Name\": \"Project1306696328\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2023,\r\n \"Name\": + \"Project1694405550\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 4535,\r\n \"Name\": \"Project1736096232\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2015,\r\n \"Name\": \"Project2135869770\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2032,\r\n + \ \"Name\": \"Project2168633823\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 4531,\r\n \"Name\": + \"Project2498866686\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2031,\r\n \"Name\": \"Project321906060\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2019,\r\n \"Name\": \"Project3375152595\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2027,\r\n + \ \"Name\": \"Project384976238\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2017,\r\n \"Name\": + \"Project391746579\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2020,\r\n \"Name\": \"Project4201565256\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2011,\r\n \"Name\": \"Project466748765\",\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2024,\r\n \"Name\": + \"Project4809733732\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 4537,\r\n \"Name\": \"Project5007063875\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2025,\r\n \"Name\": \"Project5677221732\",\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n + \ \"Program\": null\r\n },\r\n {\r\n \"Id\": 2013,\r\n + \ \"Name\": \"Project58250070\",\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2012,\r\n \"Name\": + \"Project5946354427\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ },\r\n {\r\n \"Id\": 2029,\r\n \"Name\": \"Project66411145\",\r\n + \ \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Program\": null\r\n },\r\n {\r\n \"Id\": + 2021,\r\n \"Name\": \"Project855107760\",\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Program\": + null\r\n },\r\n {\r\n \"Id\": 2010,\r\n \"Name\": + \"Project8872909665\",\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n },\r\n \"Program\": null\r\n + \ }\r\n ]\r\n },\r\n \"SelectedTeams\": {\r\n \"Items\": []\r\n + \ }\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:33 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_unexisted_id_in_path/raise_NotFound_error.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_unexisted_id_in_path/raise_NotFound_error.yml new file mode 100644 index 0000000..eba8066 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_unexisted_id_in_path/raise_NotFound_error.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/projects/123 + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:03 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '2795' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "<Error>\r\n <Status>NotFound</Status>\r\n <Message>Project with Id:123 + is not found</Message>\r\n <Type>Tp.Web.Mvc.Exceptions.NotFoundException</Type>\r\n + \ <StackTrace nil=\"true\" />\r\n <Error>\r\n <Message>Project with id + 123 is not found</Message>\r\n <Type>Tp.Integration.Common.EntityNotFoundException</Type>\r\n + \ <StackTrace> at Tp.Rest.EntityMapping.Converters.ResourceIntoEntityConverter.GetOrCreateEntityFor(IResource + resource) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\EntityMapping\\Converters\\ResourceIntoEntityConverter.cs:line + 108\r\n at Tp.Rest.EntityMapping.Converters.ResourceIntoEntityConverter.Convert(IResource + val, ResourceIntoEntityConverterSetup _) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\EntityMapping\\Converters\\ResourceIntoEntityConverter.cs:line + 43\r\n at Tp.Rest.Commands.RepositoryCommand.Run(IResource resource, ResourceCollectionItemMappingBehavior + collectionMapMode, Action`2 action) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Commands\\RepositoryCommand.cs:line + 57\r\n at Tp.Rest.Commands.RepositoryCommand.Execute(IResource input) in + c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Commands\\RepositoryCommand.cs:line + 34\r\n at Tp.Rest.Web.Controllers.ResourcesController.DeleteInternal(Nullable`1 + id, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 58\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)</StackTrace>\r\n </Error>\r\n</Error>" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:02 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_url_to_existed_entity/respond_with_200_code.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_url_to_existed_entity/respond_with_200_code.yml new file mode 100644 index 0000000..18ca193 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_delete/with_url_to_existed_entity/respond_with_200_code.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Foo-899875"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '729' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '226' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4540,\r\n \"Name\": \"Foo-899875\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376574969000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376574969000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 31.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:02 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/projects/4540 + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:02 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '102' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:02 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/id/returns_hash_of_entity_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/id/returns_hash_of_entity_attributes.yml new file mode 100644 index 0000000..8bc7f95 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/id/returns_hash_of_entity_attributes.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/entitytypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:55:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:55:57 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/it_returns_array_of_entities_attributes_hashes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/it_returns_array_of_entities_attributes_hashes.yml new file mode 100644 index 0000000..088ed03 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_path_like_entity/it_returns_array_of_entities_attributes_hashes.yml @@ -0,0 +1,51 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/entitytypes + body: + encoding: UTF-8 + string: orderby=id&take=2&skip=4&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:55:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '446' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Prev\": \"http://tpruby.tpondemand.com/api/v1/EntityTypes/?orderBy=id&format=json&take=2&skip=2\",\r\n + \ \"Next\": \"http://tpruby.tpondemand.com/api/v1/EntityTypes/?orderBy=id&format=json&take=2&skip=6\",\r\n + \ \"Items\": [\r\n {\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n + \ \"IsExtendable\": true,\r\n \"IsSearchable\": true\r\n },\r\n + \ {\r\n \"Id\": 6,\r\n \"Name\": \"User\",\r\n \"IsExtendable\": + false,\r\n \"IsSearchable\": false\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:55:58 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_id_/it_raises_NotFound_error.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_id_/it_raises_NotFound_error.yml new file mode 100644 index 0000000..f15d0bf --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_id_/it_raises_NotFound_error.yml @@ -0,0 +1,65 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/tasks/123123 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:55:59 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '2323' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "<Error>\r\n <Status>NotFound</Status>\r\n <Message>Task with Id 123123 + not found</Message>\r\n <Type>Tp.Web.Mvc.Exceptions.NotFoundException</Type>\r\n + \ <StackTrace nil=\"true\" />\r\n <Error>\r\n <Message>Task with Id 123123 + not found</Message>\r\n <Type>Tp.Integration.Common.EntityNotFoundException</Type>\r\n + \ <StackTrace> at Tp.Rest.Services.RestService.ThrowIfInvalidResult(IResource[] + resources, Object resourceId) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 133\r\n at Tp.Rest.Services.RestService.Tp.Rest.Services.IRestService.Read(Object + id, QuerySpec querySpec) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 44\r\n at Tp.Rest.Web.Controllers.ResourcesController.GetInternal(Nullable`1 + id, RequestParameters parameters, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 34\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)</StackTrace>\r\n </Error>\r\n</Error>" + http_version: + recorded_at: Thu, 15 Aug 2013 13:55:59 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_path_/it_raises_UnexpectedError.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_path_/it_raises_UnexpectedError.yml new file mode 100644 index 0000000..944e523 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_get/with_unexisted_path_/it_raises_UnexpectedError.yml @@ -0,0 +1,56 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/foobars/ + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:55:58 GMT + Content-Type: + - text/html; charset=utf-8 + Content-Length: + - '1510' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - private + X-Aspnet-Version: + - 4.0.30319 + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "<html>\r\n <head>\r\n <title>The resource cannot be found.\r\n + \ \r\n \r\n\r\n \r\n\r\n + \

Server Error in '/' Application.

\r\n\r\n

The resource cannot be found. +

\r\n\r\n \r\n\r\n Description: HTTP 404. The resource + you are looking for (or one of its dependencies) could have been removed, + had its name changed, or is temporarily unavailable.  Please review the + following URL and make sure that it is spelled correctly.\r\n

\r\n\r\n + \ Requested URL: /api/v1/foobars/

\r\n\r\n \r\n\r\n" + http_version: + recorded_at: Thu, 15 Aug 2013 13:55:58 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_correct_path_and_options/returns_hash_of_entities_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_correct_path_and_options/returns_hash_of_entities_attributes.yml new file mode 100644 index 0000000..4be2d60 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_correct_path_and_options/returns_hash_of_entities_attributes.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/projects + body: + encoding: UTF-8 + string: '{"Name":"foobar3193970"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '732' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '455' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4539,\r\n \"Name\": \"foobar3193970\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376574967000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376574967000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 31.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:00 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/projects/4539 + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:00 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '93' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:00 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_incorrect_path_and_options/raises_UnexpectedError.yml b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_incorrect_path_and_options/raises_UnexpectedError.yml new file mode 100644 index 0000000..6619504 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_APIClient/_post/with_incorrect_path_and_options/raises_UnexpectedError.yml @@ -0,0 +1,58 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/foo/ + body: + encoding: UTF-8 + string: '{"Foo":"Bar"}' + headers: + Content-Type: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Thu, 15 Aug 2013 13:56:01 GMT + Content-Type: + - text/html; charset=utf-8 + Content-Length: + - '1506' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - private + X-Aspnet-Version: + - 4.0.30319 + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "\r\n \r\n The resource cannot be found.\r\n + \ \r\n \r\n\r\n \r\n\r\n + \

Server Error in '/' Application.

\r\n\r\n

The resource cannot be found. +

\r\n\r\n \r\n\r\n Description: HTTP 404. The resource + you are looking for (or one of its dependencies) could have been removed, + had its name changed, or is temporarily unavailable.  Please review the + following URL and make sure that it is spelled correctly.\r\n

\r\n\r\n + \ Requested URL: /api/v1/foo/

\r\n\r\n \r\n\r\n" + http_version: + recorded_at: Thu, 15 Aug 2013 13:56:01 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/with_options/returns_all_subject_with_conditions_.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/with_options/returns_all_subject_with_conditions_.yml new file mode 100644 index 0000000..d2f5c64 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/with_options/returns_all_subject_with_conditions_.yml @@ -0,0 +1,60 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: take=1&skip=1&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '1062' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '63' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Prev\": \"http://tpruby.tpondemand.com/api/v1/Projects/?format=json&take=1&skip=0\",\r\n + \ \"Next\": \"http://tpruby.tpondemand.com/api/v1/Projects/?format=json&take=1&skip=2\",\r\n + \ \"Items\": [\r\n {\r\n \"Id\": 4396,\r\n \"Name\": \"foo bar\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376476665000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376476665000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 26.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FB\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:36 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/without_options/returns_array_of_projects.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/without_options/returns_array_of_projects.yml new file mode 100644 index 0000000..c4185c1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_all/without_options/returns_array_of_projects.yml @@ -0,0 +1,349 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '22092' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '76' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Next\": \"http://tpruby.tpondemand.com/api/v1/Projects/?format=json&take=25&skip=25\",\r\n + \ \"Items\": [\r\n {\r\n \"Id\": 3421,\r\n \"Name\": \"Bar_Foo\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376417060000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376417060000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 25.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"BAR\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4396,\r\n \"Name\": + \"foo bar\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376476665000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376476665000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 26.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FB\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2275,\r\n \"Name\": + \"Foo123bar\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376385905000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376385912000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 22.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FOO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2276,\r\n \"Name\": + \"Foo321bar\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376385923000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376385923000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 23.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FOO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2274,\r\n \"Name\": + \"Foobar\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376385752000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 21.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FOO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2496,\r\n \"Name\": + \"Foobar1\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376392539000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376392539000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 24.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FOO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2014,\r\n \"Name\": + \"foobar3318392\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310840000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310840000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 5.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"FOO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2030,\r\n \"Name\": + \"Project_new_name2499868962\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310873000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310875000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 18.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4536,\r\n \"Name\": + \"Project_new_name3031244325\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568045000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568045000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 29.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2022,\r\n \"Name\": + \"Project_new_name6757305669\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310855000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310856000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 11.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2026,\r\n \"Name\": + \"Project1306696328\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310862000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310862000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 15.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2023,\r\n \"Name\": + \"Project1694405550\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310857000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310857000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 12.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4535,\r\n \"Name\": + \"Project1736096232\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568042000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568042000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 28.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2015,\r\n \"Name\": + \"Project2135869770\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310842000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310842000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 6.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2032,\r\n \"Name\": + \"Project2168633823\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310879000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310879000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 20.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4531,\r\n \"Name\": + \"Project2498866686\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568036000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568036000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 27.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2031,\r\n \"Name\": + \"Project321906060\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310876000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310876000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 19.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2019,\r\n \"Name\": + \"Project3375152595\",\r\n \"Description\": null,\r\n \"StartDate\": + \"\\/Date(1376310842000-0500)\\/\",\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376310848000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376310848000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 8.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2027,\r\n \"Name\": \"Project384976238\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376310864000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376310864000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 16.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2017,\r\n \"Name\": + \"Project391746579\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310845000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310845000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 7.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2020,\r\n \"Name\": + \"Project4201565256\",\r\n \"Description\": null,\r\n \"StartDate\": + \"\\/Date(1376310845000-0500)\\/\",\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376310851000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376310851000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 9.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2011,\r\n \"Name\": \"Project466748765\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376310831000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376310831000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 2.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2024,\r\n \"Name\": + \"Project4809733732\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310859000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310859000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 13.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4537,\r\n \"Name\": + \"Project5007063875\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568048000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568048000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 30.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2025,\r\n \"Name\": + \"Project5677221732\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310861000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310861000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 14.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:35 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml new file mode 100644 index 0000000..2c1793c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml @@ -0,0 +1,249 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '992' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '75' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": + \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n + \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": + \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/2274 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '725' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '37' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376385752000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 21.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:03 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_delete/if_project_exist_on_remote_host/delete_project_on_remote_host_and_return_true.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_delete/if_project_exist_on_remote_host/delete_project_on_remote_host_and_return_true.yml new file mode 100644 index 0000000..1f7320e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_delete/if_project_exist_on_remote_host/delete_project_on_remote_host_and_return_true.yml @@ -0,0 +1,161 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project1843846326"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '259' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4674,\r\n \"Name\": \"Project1843846326\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927979000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927979000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:43 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4674/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:44 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '72' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4674 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:41 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '2325' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "\r\n NotFound\r\n Project with Id + 4674 not found\r\n Tp.Web.Mvc.Exceptions.NotFoundException\r\n + \ \r\n \r\n Project with Id + 4674 not found\r\n Tp.Integration.Common.EntityNotFoundException\r\n + \ at Tp.Rest.Services.RestService.ThrowIfInvalidResult(IResource[] + resources, Object resourceId) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 133\r\n at Tp.Rest.Services.RestService.Tp.Rest.Services.IRestService.Read(Object + id, QuerySpec querySpec) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 44\r\n at Tp.Rest.Web.Controllers.ResourcesController.GetInternal(Nullable`1 + id, RequestParameters parameters, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 34\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)\r\n \r\n" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:43 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_eq/comapres_projects_with_different_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_eq/comapres_projects_with_different_attributes.yml new file mode 100644 index 0000000..84e7d1c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_eq/comapres_projects_with_different_attributes.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project2746805022"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '256' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4678,\r\n \"Name\": \"Project2746805022\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927997000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927997000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:00 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4678/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:02 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '74' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:00 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id/returns_project.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id/returns_project.yml new file mode 100644 index 0000000..a2dff2a --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id/returns_project.yml @@ -0,0 +1,154 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project8353122016","StartDate":"/Date(1376927970000+0300)/"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '762' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '328' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4669,\r\n \"Name\": \"Project8353122016\",\r\n \"Description\": + null,\r\n \"StartDate\": \"\\/Date(1376927970000-0500)\\/\",\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376927967000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376927967000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n \"Tags\": + \"\",\r\n \"NumericPriority\": 31.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": + false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n + \ \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Project\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": + null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4669 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '762' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '34' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4669,\r\n \"Name\": \"Project8353122016\",\r\n \"Description\": + null,\r\n \"StartDate\": \"\\/Date(1376927970000-0500)\\/\",\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376927967000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376927967000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n \"Tags\": + \"\",\r\n \"NumericPriority\": 31.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": + false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n + \ \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Project\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": + null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:31 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4669/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:29 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '126' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:31 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id_and_options/returns_formatted_requested_entity.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id_and_options/returns_formatted_requested_entity.yml new file mode 100644 index 0000000..c7bb893 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_correct_id_and_options/returns_formatted_requested_entity.yml @@ -0,0 +1,144 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project4166808984","StartDate":"/Date(1376927971000+0300)/"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '762' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '231' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4670,\r\n \"Name\": \"Project4166808984\",\r\n \"Description\": + null,\r\n \"StartDate\": \"\\/Date(1376927971000-0500)\\/\",\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376927969000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376927969000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n \"Tags\": + \"\",\r\n \"NumericPriority\": 31.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": + false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n + \ \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Project\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": + null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4670 + body: + encoding: UTF-8 + string: include=%5BTasks%5D&append=%5BTasks-Count%5D&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '76' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '74' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4670,\r\n \"Tasks-Count\": 0,\r\n \"Tasks\": {\r\n + \ \"Items\": []\r\n }\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:33 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4670/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:34 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '80' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:33 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_string/raise_TargetProcess_BadRequest_error.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_string/raise_TargetProcess_BadRequest_error.yml new file mode 100644 index 0000000..30d4a42 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_string/raise_TargetProcess_BadRequest_error.yml @@ -0,0 +1,62 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/asd + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 400 + message: Bad Request + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:32 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '2004' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "\r\n BadRequest\r\n Invalid id: + asd\r\n Tp.Web.Mvc.Exceptions.BadRequestException\r\n + \ at Tp.Rest.Web.Controllers.ResourcesController.ThrowIfNull(Nullable`1 + id) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 84\r\n at Tp.Rest.Web.Controllers.ResourcesController.GetInternal(Nullable`1 + id, RequestParameters parameters, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 34\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)\r\n
{ ServerErrorCodes + = System.String[] }
\r\n
" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:34 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_unexisted_id/raise_an_TargetProcess_NotFound_error.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_unexisted_id/raise_an_TargetProcess_NotFound_error.yml new file mode 100644 index 0000000..d11faca --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_find/with_passed_unexisted_id/raise_an_TargetProcess_NotFound_error.yml @@ -0,0 +1,65 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/12412 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:35 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '2327' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "\r\n NotFound\r\n Project with Id + 12412 not found\r\n Tp.Web.Mvc.Exceptions.NotFoundException\r\n + \ \r\n \r\n Project with Id + 12412 not found\r\n Tp.Integration.Common.EntityNotFoundException\r\n + \ at Tp.Rest.Services.RestService.ThrowIfInvalidResult(IResource[] + resources, Object resourceId) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 133\r\n at Tp.Rest.Services.RestService.Tp.Rest.Services.IRestService.Read(Object + id, QuerySpec querySpec) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest\\Services\\RestService.cs:line + 44\r\n at Tp.Rest.Web.Controllers.ResourcesController.GetInternal(Nullable`1 + id, RequestParameters parameters, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 34\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)\r\n \r\n" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:34 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_meta/returns_project_metadata.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_meta/returns_project_metadata.yml new file mode 100644 index 0000000..8cc3d2e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_meta/returns_project_metadata.yml @@ -0,0 +1,315 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects//meta + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '20107' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '14' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Name\": \"Project\",\r\n \"CanCreate\": true,\r\n \"CanUpdate\": + true,\r\n \"CanDelete\": true,\r\n \"IndexUri\": \"http://tpruby.tpondemand.com/api/v1/index/meta\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Projects\",\r\n \"Description\": + \"Core entity which contains Releases, Features, User Stories, Bugs, etc.\",\r\n + \ \"ResourceMetadataHierarchyDescription\": {\r\n \"ResourceMetadataBaseResourceDescription\": + {\r\n \"Items\": [\r\n {\r\n \"Name\": \"General\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Generals/meta\"\r\n + \ }\r\n ]\r\n },\r\n \"ResourceMetadataDerivedResourceDescription\": + {\r\n \"Items\": [\r\n {}\r\n ]\r\n }\r\n },\r\n \"ResourceMetadataPropertiesDescription\": + {\r\n \"ResourceMetadataPropertiesResourceValuesDescription\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"Id\",\r\n \"CanSet\": true,\r\n + \ \"CanGet\": true,\r\n \"IsRequired\": false,\r\n \"Type\": + \"Int32\",\r\n \"IsTypeComplex\": false,\r\n \"Description\": + \"Entity ID\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Int32/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"Name\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": true,\r\n \"Type\": \"String\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Entity name or title\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Description\",\r\n + \ \"CanSet\": true,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"String\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Entity description\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"StartDate\",\r\n + \ \"CanSet\": true,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"DateTime\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Start date for time-boxed entities + such as Iteration, Project, Release\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/DateTime/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"EndDate\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"DateTime\",\r\n + \ \"IsTypeComplex\": false,\r\n \"Description\": \"End date + for time-boxed entities such as Iteration, Project, Release\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/DateTime/meta\",\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"CreateDate\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"DateTime\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Entity creation date\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/DateTime/meta\",\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"ModifyDate\",\r\n + \ \"CanSet\": true,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"DateTime\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Last time entity was modified\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/DateTime/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"LastCommentDate\",\r\n \"CanSet\": true,\r\n \"CanGet\": + true,\r\n \"IsRequired\": false,\r\n \"Type\": \"DateTime\",\r\n + \ \"IsTypeComplex\": false,\r\n \"Description\": \"Last comment + date\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/DateTime/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"Tags\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"String\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Comma-separated list tags\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"NumericPriority\",\r\n + \ \"CanSet\": true,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Double\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Calculated priority of entity\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Double/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"IsActive\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"Boolean\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Defines whether project is active\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Boolean/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"IsProduct\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"Boolean\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Defines whether project is a product\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Boolean/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"Abbreviation\",\r\n \"CanSet\": true,\r\n \"CanGet\": + true,\r\n \"IsRequired\": false,\r\n \"Type\": \"String\",\r\n + \ \"IsTypeComplex\": false,\r\n \"Description\": \"Project + abbreviation\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"MailReplyAddress\",\r\n \"CanSet\": true,\r\n \"CanGet\": + true,\r\n \"IsRequired\": false,\r\n \"Type\": \"String\",\r\n + \ \"IsTypeComplex\": false,\r\n \"Description\": \"Reply + mail address\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n + \ \"IsBoundToParent\": true\r\n },\r\n {\r\n \"Name\": + \"Color\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"String\",\r\n \"IsTypeComplex\": + false,\r\n \"Description\": \"Color for project\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/String/meta\",\r\n \"IsBoundToParent\": + true\r\n }\r\n ]\r\n },\r\n \"ResourceMetadataPropertiesResourceReferencesDescription\": + {\r\n \"Items\": [\r\n {\r\n \"Name\": \"EntityType\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"EntityType\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Type of entity e.g. Bug, Feature, Task, + etc.\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/EntityTypes/meta\",\r\n + \ \"IsBoundToParent\": false\r\n },\r\n {\r\n \"Name\": + \"Owner\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"GeneralUser\",\r\n + \ \"IsTypeComplex\": true,\r\n \"Description\": \"Person + who owns entity\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/GeneralUsers/meta\",\r\n + \ \"IsBoundToParent\": false\r\n },\r\n {\r\n \"Name\": + \"LastCommentedUser\",\r\n \"CanSet\": false,\r\n \"CanGet\": + true,\r\n \"IsRequired\": false,\r\n \"Type\": \"GeneralUser\",\r\n + \ \"IsTypeComplex\": true,\r\n \"Description\": \"Last commented + user\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/GeneralUsers/meta\",\r\n + \ \"IsBoundToParent\": false\r\n },\r\n {\r\n \"Name\": + \"Project\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"Project\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Project where this entity is found\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Projects/meta\",\r\n + \ \"IsBoundToParent\": false\r\n },\r\n {\r\n \"Name\": + \"Program\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"Program\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Program associated with the project\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Programs/meta\",\r\n + \ \"IsBoundToParent\": false\r\n },\r\n {\r\n \"Name\": + \"Process\",\r\n \"CanSet\": true,\r\n \"CanGet\": true,\r\n + \ \"IsRequired\": false,\r\n \"Type\": \"Process\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Process of the project\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Processes/meta\",\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Company\",\r\n \"CanSet\": + true,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Company\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Project company\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Companies/meta\",\r\n + \ \"IsBoundToParent\": false\r\n }\r\n ]\r\n },\r\n + \ \"ResourceMetadataPropertiesResourceCollectionsDescription\": {\r\n \"Items\": + [\r\n {\r\n \"Name\": \"CustomFields\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"CustomFields\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Custom fields values\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/CustomFieldValues/meta\",\r\n \"CanAdd\": + true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Comments\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Comment\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Collection of comments for entity\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Comments/meta\",\r\n \"CanAdd\": + true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Messages\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Message\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Collection of messages for entity\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Messages/meta\",\r\n \"CanAdd\": + false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"TagObjects\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Tag\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Collection of tags for entity\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Tags/meta\",\r\n \"CanAdd\": + true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"MasterRelations\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Relation\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of related Master entities\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Relations/meta\",\r\n + \ \"CanAdd\": true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"SlaveRelations\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Relation\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of related Slave entities\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Relations/meta\",\r\n + \ \"CanAdd\": true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Attachments\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Attachment\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of attachments for entity\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Attachments/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Generals\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"General\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Collection of general entities\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Generals/meta\",\r\n \"CanAdd\": + false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Features\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Feature\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project features\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Features/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Releases\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Release\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project releases\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Releases/meta\",\r\n + \ \"CanAdd\": true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Iterations\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Iteration\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project iterations\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Iterations/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"UserStories\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"UserStory\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project user stories\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/UserStories/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Tasks\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Task\",\r\n \"IsTypeComplex\": true,\r\n \"Description\": + \"Collection of project tasks\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Tasks/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Bugs\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Bug\",\r\n \"IsTypeComplex\": true,\r\n \"Description\": + \"Collection of project bugs\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Bugs/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"TestCases\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"TestCase\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project test cases\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/TestCases/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"TestPlans\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"TestPlan\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project test plans\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/TestPlans/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Builds\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Build\",\r\n \"IsTypeComplex\": true,\r\n \"Description\": + \"Collection of project builds\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Builds/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Times\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Time\",\r\n \"IsTypeComplex\": true,\r\n \"Description\": + \"Collection of times posted to the project\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Times/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Revisions\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Revision\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project revisions\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Revisions/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"CustomActivities\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"CustomActivity\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of project custom activities\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/CustomActivities/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"ProjectMembers\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"ProjectMember\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Project members\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/ProjectMembers/meta\",\r\n \"CanAdd\": + true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"TeamProjects\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"TeamProject\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Team projects\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/TeamProjects/meta\",\r\n \"CanAdd\": + true,\r\n \"CanRemove\": true,\r\n \"IsBoundToParent\": + true\r\n },\r\n {\r\n \"Name\": \"Requests\",\r\n \"CanSet\": + false,\r\n \"CanGet\": true,\r\n \"IsRequired\": false,\r\n + \ \"Type\": \"Request\",\r\n \"IsTypeComplex\": true,\r\n + \ \"Description\": \"Collection of requests\",\r\n \"Uri\": + \"http://tpruby.tpondemand.com/api/v1/Requests/meta\",\r\n \"CanAdd\": + false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"TestPlanRuns\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"TestPlanRun\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"Collection of test plan runs\",\r\n + \ \"Uri\": \"http://tpruby.tpondemand.com/api/v1/TestPlanRuns/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n },\r\n {\r\n \"Name\": \"Milestones\",\r\n + \ \"CanSet\": false,\r\n \"CanGet\": true,\r\n \"IsRequired\": + false,\r\n \"Type\": \"Milestone\",\r\n \"IsTypeComplex\": + true,\r\n \"Description\": \"\",\r\n \"Uri\": \"http://tpruby.tpondemand.com/api/v1/Milestones/meta\",\r\n + \ \"CanAdd\": false,\r\n \"CanRemove\": false,\r\n \"IsBoundToParent\": + false\r\n }\r\n ]\r\n }\r\n },\r\n \"ResourceMetadataRemarksDescription\": + {\r\n \"Body\": \"Result of GET request is ordered by Name field with ascending + direction.\"\r\n }\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:38 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_edit_attribute_with_the_same_old_value_in_attributes/delete_attribute_from_changed_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_edit_attribute_with_the_same_old_value_in_attributes/delete_attribute_from_changed_attributes.yml new file mode 100644 index 0000000..89e0d5c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_edit_attribute_with_the_same_old_value_in_attributes/delete_attribute_from_changed_attributes.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project2968735626"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '206' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4681,\r\n \"Name\": \"Project2968735626\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376928143000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376928143000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:27 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4681/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:28 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '66' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:27 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_set_any_attribute/add_it_to_changed_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_set_any_attribute/add_it_to_changed_attributes.yml new file mode 100644 index 0000000..80aa2f8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/if_set_any_attribute/add_it_to_changed_attributes.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project5504872872"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '200' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4680,\r\n \"Name\": \"Project5504872872\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376928142000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376928142000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:25 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4680/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:27 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '74' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:26 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/provide_getters_for_attributes_values.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/provide_getters_for_attributes_values.yml new file mode 100644 index 0000000..76f578f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_method_missing/provide_getters_for_attributes_values.yml @@ -0,0 +1,99 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project880347936"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '735' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '215' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4679,\r\n \"Name\": \"Project880347936\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376928141000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376928141000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:24 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4679/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:02:26 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '72' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 16:02:25 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_required_fields/save_it_on_remote_host_and_update_local_instance_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_required_fields/save_it_on_remote_host_and_update_local_instance_attributes.yml new file mode 100644 index 0000000..682ba48 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_required_fields/save_it_on_remote_host_and_update_local_instance_attributes.yml @@ -0,0 +1,424 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project101304504"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '735' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '248' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4675,\r\n \"Name\": \"Project101304504\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927981000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927981000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4675 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '735' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '577' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4675,\r\n \"Name\": \"Project101304504\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927981000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927981000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:46 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:48 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4675/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:50 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '115' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:49 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_updated_attributes/updates_task_on_remote_host_and_clean_changed_attributes.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_updated_attributes/updates_task_on_remote_host_and_clean_changed_attributes.yml new file mode 100644 index 0000000..ab1d8ca --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_project_with_updated_attributes/updates_task_on_remote_host_and_clean_changed_attributes.yml @@ -0,0 +1,481 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project1996513354"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '221' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4676,\r\n \"Name\": \"Project1996513354\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927986000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927986000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:50 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project_new_name722724607","Id":4676}' + headers: + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '744' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '93' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4676,\r\n \"Name\": \"Project_new_name722724607\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n + \ \"CreateDate\": \"\\/Date(1376927986000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376927987000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n \"Tags\": + \"\",\r\n \"NumericPriority\": 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": + false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n + \ \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Project\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": + null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4676 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '744' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '35' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4676,\r\n \"Name\": \"Project_new_name722724607\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n + \ \"CreateDate\": \"\\/Date(1376927986000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376927987000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n \"Tags\": + \"\",\r\n \"NumericPriority\": 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": + false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n + \ \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Project\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": + null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n + \ \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:54 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4676/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:55 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '71' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:54 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_up-to-date_local_project/do_nothing_with_local_instance.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_up-to-date_local_project/do_nothing_with_local_instance.yml new file mode 100644 index 0000000..783f4e9 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_save/called_on_up-to-date_local_project/do_nothing_with_local_instance.yml @@ -0,0 +1,479 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Project1905034809"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '220' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4677,\r\n \"Name\": \"Project1905034809\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927991000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927991000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:55 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Id":4677}' + headers: + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '56' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4677,\r\n \"Name\": \"Project1905034809\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927991000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927991000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4677 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '736' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4677,\r\n \"Name\": \"Project1905034809\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376927991000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376927991000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 32.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:59 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4677/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:00 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '72' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:59 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_correct_condition/return_array_of_subjects.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_correct_condition/return_array_of_subjects.yml new file mode 100644 index 0000000..867b218 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_correct_condition/return_array_of_subjects.yml @@ -0,0 +1,350 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: where=CreateDate%20lt%20%222014-10-10%22&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '22127' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '157' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Next\": \"http://tpruby.tpondemand.com/api/v1/Projects/?where=CreateDate + lt \\\"2014-10-10\\\"&format=json&take=25&skip=25\",\r\n \"Items\": [\r\n + \ {\r\n \"Id\": 3421,\r\n \"Name\": \"Bar_Foo\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376417060000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376417060000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 25.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"BAR\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 4396,\r\n \"Name\": \"foo bar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376476665000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376476665000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 26.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FB\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2275,\r\n \"Name\": \"Foo123bar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376385905000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385912000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 22.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2276,\r\n \"Name\": \"Foo321bar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376385923000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385923000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 23.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376385752000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 21.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2496,\r\n \"Name\": \"Foobar1\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376392539000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376392539000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 24.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2014,\r\n \"Name\": \"foobar3318392\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376310840000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376310840000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 5.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2030,\r\n \"Name\": \"Project_new_name2499868962\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376310873000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376310875000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 18.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4536,\r\n \"Name\": + \"Project_new_name3031244325\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568045000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568045000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 29.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2022,\r\n \"Name\": + \"Project_new_name6757305669\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310855000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310856000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 11.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2026,\r\n \"Name\": + \"Project1306696328\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310862000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310862000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 15.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2023,\r\n \"Name\": + \"Project1694405550\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310857000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310857000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 12.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4535,\r\n \"Name\": + \"Project1736096232\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568042000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568042000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 28.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2015,\r\n \"Name\": + \"Project2135869770\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310842000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310842000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 6.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2032,\r\n \"Name\": + \"Project2168633823\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310879000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310879000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 20.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4531,\r\n \"Name\": + \"Project2498866686\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568036000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568036000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 27.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2031,\r\n \"Name\": + \"Project321906060\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310876000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310876000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 19.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2019,\r\n \"Name\": + \"Project3375152595\",\r\n \"Description\": null,\r\n \"StartDate\": + \"\\/Date(1376310842000-0500)\\/\",\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376310848000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376310848000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 8.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2027,\r\n \"Name\": \"Project384976238\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376310864000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376310864000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 16.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2017,\r\n \"Name\": + \"Project391746579\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310845000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310845000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 7.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2020,\r\n \"Name\": + \"Project4201565256\",\r\n \"Description\": null,\r\n \"StartDate\": + \"\\/Date(1376310845000-0500)\\/\",\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376310851000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376310851000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 9.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n + \ \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n + \ \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": + null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n + \ },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n },\r\n + \ {\r\n \"Id\": 2011,\r\n \"Name\": \"Project466748765\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376310831000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376310831000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 2.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2024,\r\n \"Name\": + \"Project4809733732\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310859000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310859000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 13.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4537,\r\n \"Name\": + \"Project5007063875\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376568048000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376568048000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 30.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 2025,\r\n \"Name\": + \"Project5677221732\",\r\n \"Description\": null,\r\n \"StartDate\": + null,\r\n \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376310861000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376310861000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 14.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:36 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_random_string_without_search_condition/raise_an_TargetProcess_BadRequest.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_random_string_without_search_condition/raise_an_TargetProcess_BadRequest.yml new file mode 100644 index 0000000..ab79d3f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_random_string_without_search_condition/raise_an_TargetProcess_BadRequest.yml @@ -0,0 +1,82 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: where=asdad%20asd%20asda&format=json + headers: {} + response: + status: + code: 400 + message: Bad Request + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:35 GMT + Content-Type: + - text/xml; charset=utf-8 + Content-Length: + - '3824' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "\r\n BadRequest\r\n Error during + paramters parsing: Error during parsing 'asdad asd asda'. Unexpected token + '' found. at pos: 6\r\n\r\n Tp.Web.Mvc.Exceptions.BadRequestException\r\n + \ \r\n
{ ServerErrorCodes = System.String[] + }
\r\n \r\n Error during paramters parsing: Error + during parsing 'asdad asd asda'. Unexpected token '' found. at pos: 6\r\n\r\n + \ Tp.Rest.RequestParametersParsingException\r\n + \ at Tp.Rest.Web.Controllers.RequestParameters.GetQuerySpec(IResourceField + resourceField, ResourceContext resourceContext) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\RequestParameters.cs:line + 252\r\n at Tp.Rest.Web.Controllers.RequestParameters.GetQuerySpec(IResourceField + resourceField) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\RequestParameters.cs:line + 293\r\n at Tp.Rest.Web.EndPoint.GetResources(RequestParameters parameters) + in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\EndPoint.cs:line + 119\r\n at Tp.Rest.Web.EndPoint.GetAll(RequestParameters parameters) in + c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\EndPoint.cs:line + 68\r\n at Tp.Rest.Web.Controllers.ResourcesController.GetAllInternal(RequestParameters + parameters, IEndPoint endpoint) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\ResourcesController.cs:line + 28\r\n at lambda_method(Closure , ControllerBase , Object[] )\r\n at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext + controllerContext, IDictionary`2 parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext + controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n + \ at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n + \ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter + filter, ActionExecutingContext preContext, Func`1 continuation)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext + controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 + parameters)\r\n at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext + controllerContext, String actionName)\r\n \r\n Error + during parsing 'asdad asd asda'. Unexpected token '' found. at pos: 6\r\n\r\n + \ System.ArgumentException\r\n at Tp.Rest.Web.CriteriaParsing.CriteriaParser.ThrowIfAny(String + parse, ParseErrors erorrs) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\CriteriaParsing\\CriteriaParser.cs:line + 54\r\n at Tp.Rest.Web.CriteriaParsing.CriteriaParser.<Parse>d__0.MoveNext() + in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\CriteriaParsing\\CriteriaParser.cs:line + 25\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n + \ at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n at + Tp.Rest.Web.Controllers.RequestParameters.GetQuerySpec(IResourceField resourceField, + ResourceContext resourceContext) in c:\\.jenkins\\workspace\\BuildPackage\\Code\\Main\\Tp.Rest.Web\\Controllers\\RequestParameters.cs:line + 233\r\n \r\n \r\n
" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:38 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_search_condition_and_options/return_array_of_subject_with_conditions.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_search_condition_and_options/return_array_of_subject_with_conditions.yml new file mode 100644 index 0000000..739700c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_where/with_search_condition_and_options/return_array_of_subject_with_conditions.yml @@ -0,0 +1,60 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: OrderByDesc=id&Take=1&where=CreateDate%20lt%20%222014-10-10%22&format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 15:59:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '1037' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '150' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Next\": \"http://tpruby.tpondemand.com/api/v1/Projects/?where=CreateDate + lt \\\"2014-10-10\\\"&orderByDesc=id&format=json&take=1&skip=1\",\r\n \"Items\": + [\r\n {\r\n \"Id\": 4537,\r\n \"Name\": \"Project5007063875\",\r\n + \ \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": + null,\r\n \"CreateDate\": \"\\/Date(1376568048000-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376568048000-0500)\\/\",\r\n \"LastCommentDate\": null,\r\n + \ \"Tags\": \"\",\r\n \"NumericPriority\": 30.0,\r\n \"IsActive\": + true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n + \ \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 15:59:37 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml new file mode 100644 index 0000000..e352a9a --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml @@ -0,0 +1,108 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '992' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '41' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": + \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n + \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": + \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522/AssignedUser + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '411' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '19' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 1,\r\n \"FirstName\": + \"Administrator\",\r\n \"LastName\": \"Administrator\",\r\n \"Email\": + \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": \"admin\",\r\n \"CreateDate\": + \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376218457000-0500)\\/\",\r\n + \ \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": + true,\r\n \"Kind\": \"User\"\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:11 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml new file mode 100644 index 0000000..2167022 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml @@ -0,0 +1,717 @@ +--- +http_interactions: +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '992' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '84' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": + \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n + \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": + \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522/Tasks + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '4550' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '45' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 4523,\r\n \"Name\": + \"task1\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562226000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376562235000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4524,\r\n \"Name\": + \"task2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562238000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376562238000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 75.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4525,\r\n \"Name\": + \"task3\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562240000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376562240000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 75.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4526,\r\n \"Name\": + \"task4\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562242000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376562243000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 76.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/2274 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '725' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '36' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376385752000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 21.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/47 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '348' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '9' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 47,\r\n \"Name\": \"In Progress\",\r\n \"IsInitial\": + false,\r\n \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 47.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": {\r\n \"Id\": + 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Mon, 19 Aug 2013 16:00:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Mon, 19 Aug 2013 16:00:10 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 671bed2..36997d6 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -137,7 +137,9 @@ project = TargetProcess::Project.new(name: unique_name).save project.attributes.keys.each do |key| - expect(project.send(key)).to eq(project.attributes[key]) + unless project.respond_to?(key) + expect(project.send(key)).to eq(project.attributes[key]) + end end project.delete end @@ -310,23 +312,41 @@ end end - describe 'associations' do - it 'returns associated project' do - us = TargetProcess::UserStory.find(4522) + describe '#belongs_to' do + context "when symbol passed" do + it 'returns associated project' do + us = TargetProcess::UserStory.find(4522) - expect(us.project).to be_an_instance_of(TargetProcess::Project) + expect(us.project).to be_an_instance_of(TargetProcess::Project) + expect(us.references[:project]).to eq(us.project) + expect(us.project.collections[:user_stories]).to eq([us]) + end + end + end + + describe 'has_many' do + context "when symbol passed" do + it 'returns an array of tasks and resolve associations' do + us = TargetProcess::UserStory.find(4522) + tasks = us.tasks + + expect(tasks).to be_an_instance_of(Array) + us.tasks.each do |task| + expect(task).to be_an_instance_of(TargetProcess::Task) + expect(task.references[:user_story]).to eq(us) + end + expect(us.collections[:tasks]).to eq(tasks) + end end - it 'returns an array of tasks and resolve associations' do - us = TargetProcess::UserStory.find(4522) - tasks = us.tasks + context "when hash passed" do + it 'returns an array and resolve associations' do + us = TargetProcess::UserStory.find(4522) + au = us.assigned_user - expect(tasks).to be_an_instance_of(Array) - us.tasks.each do |task| - expect(task).to be_an_instance_of(TargetProcess::Task) - expect(task.references[:user_story]).to eq(us) + expect(au).to be_an_instance_of(Array) + expect(au.first).to be_an_instance_of(TargetProcess::GeneralUser) end - expect(us.collections[:tasks]).to eq(tasks) end end From 2affe7dca3f4646f48b1c7a53577fb39180aa2fe Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Tue, 20 Aug 2013 13:42:46 +0300 Subject: [PATCH 06/14] change class definition --- lib/target_process.rb | 22 +------------------ lib/target_process/base.rb | 6 ++--- lib/target_process/entities/assignable.rb | 5 ++--- lib/target_process/entities/assignment.rb | 5 ++--- lib/target_process/entities/attachment.rb | 5 ++--- lib/target_process/entities/bug.rb | 5 ++--- lib/target_process/entities/bug_history.rb | 5 ++--- lib/target_process/entities/build.rb | 5 ++--- lib/target_process/entities/comment.rb | 5 ++--- lib/target_process/entities/company.rb | 5 ++--- .../entities/custom_activity.rb | 5 ++--- lib/target_process/entities/entity_state.rb | 5 ++--- lib/target_process/entities/entity_type.rb | 5 ++--- lib/target_process/entities/feature.rb | 5 ++--- .../entities/feature_history.rb | 5 ++--- lib/target_process/entities/general.rb | 5 ++--- lib/target_process/entities/general_user.rb | 5 ++--- lib/target_process/entities/impediment.rb | 5 ++--- .../entities/impediment_history.rb | 5 ++--- lib/target_process/entities/iteration.rb | 5 ++--- lib/target_process/entities/message.rb | 5 ++--- lib/target_process/entities/message_uid.rb | 5 ++--- lib/target_process/entities/milestone.rb | 5 ++--- lib/target_process/entities/practice.rb | 5 ++--- lib/target_process/entities/priority.rb | 5 ++--- lib/target_process/entities/process.rb | 5 ++--- lib/target_process/entities/program.rb | 5 ++--- lib/target_process/entities/project.rb | 5 ++--- lib/target_process/entities/project_member.rb | 5 ++--- lib/target_process/entities/relation.rb | 5 ++--- lib/target_process/entities/relation_type.rb | 5 ++--- lib/target_process/entities/release.rb | 5 ++--- lib/target_process/entities/request.rb | 5 ++--- .../entities/request_history.rb | 5 ++--- lib/target_process/entities/request_type.rb | 5 ++--- lib/target_process/entities/requester.rb | 5 ++--- lib/target_process/entities/revision.rb | 5 ++--- lib/target_process/entities/revision_file.rb | 5 ++--- lib/target_process/entities/role.rb | 5 ++--- lib/target_process/entities/role_effort.rb | 5 ++--- lib/target_process/entities/severity.rb | 5 ++--- lib/target_process/entities/tag.rb | 5 ++--- lib/target_process/entities/task.rb | 5 ++--- lib/target_process/entities/task_history.rb | 5 ++--- lib/target_process/entities/team.rb | 5 ++--- lib/target_process/entities/team_iteration.rb | 5 ++--- lib/target_process/entities/team_member.rb | 5 ++--- lib/target_process/entities/team_project.rb | 5 ++--- lib/target_process/entities/test_case.rb | 5 ++--- lib/target_process/entities/test_case_run.rb | 5 ++--- lib/target_process/entities/test_plan.rb | 17 ++++++++++++++ lib/target_process/entities/test_plan_run.rb | 5 ++--- lib/target_process/entities/time.rb | 5 ++--- lib/target_process/entities/user.rb | 5 ++--- lib/target_process/entities/user_story.rb | 5 ++--- .../entities/user_story_history.rb | 5 ++--- lib/target_process/user_story.rb | 15 ------------- spec/spec_helper.rb | 15 +++++-------- 58 files changed, 132 insertions(+), 208 deletions(-) create mode 100644 lib/target_process/entities/test_plan.rb delete mode 100644 lib/target_process/user_story.rb diff --git a/lib/target_process.rb b/lib/target_process.rb index 10a02bc..6300501 100644 --- a/lib/target_process.rb +++ b/lib/target_process.rb @@ -3,6 +3,7 @@ require 'target_process/api_error' require 'target_process/api_client' require 'target_process/base' +Dir["./lib/target_process/entities/*.rb"].each {|file| require file } module TargetProcess class ConfigurationError < StandardError; end @@ -25,25 +26,4 @@ def self.context(options = {}) options.each { |item| item.to_s.slice(1..-2) if item.is_a?(Array) } TargetProcess.client.get('context/', options) end - - ENTITIES = %w(Task UserStory Feature Bug User Project - Release Iteration Request TestCase Impediment - Comment Process Priority Severity EntityState - Program TestPlan TestPlanRun TestCaseRun Time - Assignment Role RoleEffort ProjectMember Build - Company CustomActivity Attachment EntityType - General Assignable GeneralUser RequestType Message - MessageUid Milestone Relation RelationType - Requester Revision RevisionFile Tag Team - TeamIteration TeamMember TeamProject TaskHistory - UserStoryHistory RequestHistory BugHistoryFeatureHistory - BugHistory FeatureHistory Practice ImpedimentHistory) - - init_code = '' - ENTITIES.each do |name| - init_code += "class #{name}; include Base; end \n" - end - module_eval init_code - Dir["./lib/target_process/entities/*.rb"].each {|file| require file } - end diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index f1fc0c5..7f37511 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -115,12 +115,11 @@ def meta def has_many(name, klass = nil) klass ||= name.to_s.singularize.camelize - klass = ("TargetProcess::" + klass).constantize define_method(name) do path = entity_path + name.to_s.camelize @collections[name] ||= TargetProcess.client.get(path)[:items].collect! do |hash| - result = klass.new + result = "TargetProcess::#{klass}".constantize.new result.attributes.merge!(hash) result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) result || [] @@ -130,12 +129,11 @@ def has_many(name, klass = nil) def belongs_to (name, klass = nil) klass ||= name.to_s.camelize - klass = ("TargetProcess::" + klass).constantize define_method(name) do if @attributes[name] id = @attributes[name][:id] self_klass = self.class.to_s.demodulize.pluralize.underscore.to_sym - @references[name] ||= klass.find(id) + @references[name] ||= "TargetProcess::#{klass}".constantize.find(id) @references[name].collections.merge!(self_klass => [self]) @references[name] else diff --git a/lib/target_process/entities/assignable.rb b/lib/target_process/entities/assignable.rb index 246be7c..49f629f 100644 --- a/lib/target_process/entities/assignable.rb +++ b/lib/target_process/entities/assignable.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Assignable - include TargetProcess::Base + class Assignable + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -23,6 +23,5 @@ class TargetProcess::Assignable belongs_to :team belongs_to :priority belongs_to :entity_state - end end diff --git a/lib/target_process/entities/assignment.rb b/lib/target_process/entities/assignment.rb index 8dccae3..4041a90 100644 --- a/lib/target_process/entities/assignment.rb +++ b/lib/target_process/entities/assignment.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::Assignment - include TargetProcess::Base + class Assignment + include Base belongs_to :assignable belongs_to :general_user, 'User' belongs_to :role - end end diff --git a/lib/target_process/entities/attachment.rb b/lib/target_process/entities/attachment.rb index e0c2f2c..02806ad 100644 --- a/lib/target_process/entities/attachment.rb +++ b/lib/target_process/entities/attachment.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::Attachment - include TargetProcess::Base + class Attachment + include Base belongs_to :owner, 'GeneralUser' belongs_to :general belongs_to :message - end end diff --git a/lib/target_process/entities/bug.rb b/lib/target_process/entities/bug.rb index 96817f6..a4295ee 100644 --- a/lib/target_process/entities/bug.rb +++ b/lib/target_process/entities/bug.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Bug - include TargetProcess::Base + class Bug + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -27,6 +27,5 @@ class TargetProcess::Bug belongs_to :build belongs_to :user_story belongs_to :severity - end end diff --git a/lib/target_process/entities/bug_history.rb b/lib/target_process/entities/bug_history.rb index d97f426..23bc89e 100644 --- a/lib/target_process/entities/bug_history.rb +++ b/lib/target_process/entities/bug_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::BugHistory - include TargetProcess::Base + class BugHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :bug - end end diff --git a/lib/target_process/entities/build.rb b/lib/target_process/entities/build.rb index 9c97570..64bbcd1 100644 --- a/lib/target_process/entities/build.rb +++ b/lib/target_process/entities/build.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Build - include TargetProcess::Base + class Build + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -15,6 +15,5 @@ class TargetProcess::Build belongs_to :project belongs_to :release belongs_to :iteration - end end diff --git a/lib/target_process/entities/comment.rb b/lib/target_process/entities/comment.rb index 93ce665..4c248bf 100644 --- a/lib/target_process/entities/comment.rb +++ b/lib/target_process/entities/comment.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::Comment - include TargetProcess::Base + class Comment + include Base belongs_to :general belongs_to :owner, 'GeneralUser' - end end diff --git a/lib/target_process/entities/company.rb b/lib/target_process/entities/company.rb index c20a177..72e3650 100644 --- a/lib/target_process/entities/company.rb +++ b/lib/target_process/entities/company.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::Company - include TargetProcess::Base + class Company + include Base has_many :projects - end end diff --git a/lib/target_process/entities/custom_activity.rb b/lib/target_process/entities/custom_activity.rb index eee3ffb..46428fe 100644 --- a/lib/target_process/entities/custom_activity.rb +++ b/lib/target_process/entities/custom_activity.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::CustomActivity - include TargetProcess::Base + class CustomActivity + include Base has_many :times belongs_to :project belongs_to :user - end end diff --git a/lib/target_process/entities/entity_state.rb b/lib/target_process/entities/entity_state.rb index 00327ba..7baf3e4 100644 --- a/lib/target_process/entities/entity_state.rb +++ b/lib/target_process/entities/entity_state.rb @@ -1,11 +1,10 @@ module TargetProcess - class TargetProcess::EntityState - include TargetProcess::Base + class EntityState + include Base has_many :next_states, 'EntityState' has_many :previous_states, 'EntityState' belongs_to :role belongs_to :entity_type belongs_to :process - end end diff --git a/lib/target_process/entities/entity_type.rb b/lib/target_process/entities/entity_type.rb index 4e1b7b9..bdcc941 100644 --- a/lib/target_process/entities/entity_type.rb +++ b/lib/target_process/entities/entity_type.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::EntityType - include TargetProcess::Base + class EntityType + include Base has_many :entity_states - end end diff --git a/lib/target_process/entities/feature.rb b/lib/target_process/entities/feature.rb index 9d151c2..d0cd634 100644 --- a/lib/target_process/entities/feature.rb +++ b/lib/target_process/entities/feature.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Feature - include TargetProcess::Base + class Feature + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -25,6 +25,5 @@ class TargetProcess::Feature belongs_to :team belongs_to :priority belongs_to :entity_state - end end diff --git a/lib/target_process/entities/feature_history.rb b/lib/target_process/entities/feature_history.rb index 76b1c42..a5f6c55 100644 --- a/lib/target_process/entities/feature_history.rb +++ b/lib/target_process/entities/feature_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::FeatureHistory - include TargetProcess::Base + class FeatureHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :feature - end end diff --git a/lib/target_process/entities/general.rb b/lib/target_process/entities/general.rb index 75c48cd..0491408 100644 --- a/lib/target_process/entities/general.rb +++ b/lib/target_process/entities/general.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::General - include TargetProcess::Base + class General + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -11,6 +11,5 @@ class TargetProcess::General belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' belongs_to :project - end end diff --git a/lib/target_process/entities/general_user.rb b/lib/target_process/entities/general_user.rb index f1aeac3..6faf350 100644 --- a/lib/target_process/entities/general_user.rb +++ b/lib/target_process/entities/general_user.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::GeneralUser - include TargetProcess::Base + class GeneralUser + include Base has_many :assignables has_many :comments has_many :requests - end end diff --git a/lib/target_process/entities/impediment.rb b/lib/target_process/entities/impediment.rb index 9a53bc2..1a68494 100644 --- a/lib/target_process/entities/impediment.rb +++ b/lib/target_process/entities/impediment.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Impediment - include TargetProcess::Base + class Impediment + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -16,6 +16,5 @@ class TargetProcess::Impediment belongs_to :entity_state belongs_to :priority belongs_to :responsible, 'User' - end end diff --git a/lib/target_process/entities/impediment_history.rb b/lib/target_process/entities/impediment_history.rb index 054c6b3..d6c5e0a 100644 --- a/lib/target_process/entities/impediment_history.rb +++ b/lib/target_process/entities/impediment_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::ImpedimentHistory - include TargetProcess::Base + class ImpedimentHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :impediment - end end diff --git a/lib/target_process/entities/iteration.rb b/lib/target_process/entities/iteration.rb index 99f786f..9e6f7b6 100644 --- a/lib/target_process/entities/iteration.rb +++ b/lib/target_process/entities/iteration.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Iteration - include TargetProcess::Base + class Iteration + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -19,6 +19,5 @@ class TargetProcess::Iteration belongs_to :last_commented_user, 'GeneralUser' belongs_to :project belongs_to :release - end end diff --git a/lib/target_process/entities/message.rb b/lib/target_process/entities/message.rb index 9dc4469..fcc33d2 100644 --- a/lib/target_process/entities/message.rb +++ b/lib/target_process/entities/message.rb @@ -1,11 +1,10 @@ module TargetProcess - class TargetProcess::Message - include TargetProcess::Base + class Message + include Base has_many :generals has_many :attachments belongs_to :from, 'GeneralUser' belongs_to :to, 'GeneralUser' belongs_to :message_uid - end end diff --git a/lib/target_process/entities/message_uid.rb b/lib/target_process/entities/message_uid.rb index 155a608..9c06a27 100644 --- a/lib/target_process/entities/message_uid.rb +++ b/lib/target_process/entities/message_uid.rb @@ -1,6 +1,5 @@ module TargetProcess - class TargetProcess::MessageUid - include TargetProcess::Base - + class MessageUid + include Base end end diff --git a/lib/target_process/entities/milestone.rb b/lib/target_process/entities/milestone.rb index a9eb9d7..39e3c18 100644 --- a/lib/target_process/entities/milestone.rb +++ b/lib/target_process/entities/milestone.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::Milestone - include TargetProcess::Base + class Milestone + include Base has_many :projects belongs_to :owner, 'User' - end end diff --git a/lib/target_process/entities/practice.rb b/lib/target_process/entities/practice.rb index fbd391d..083f3b7 100644 --- a/lib/target_process/entities/practice.rb +++ b/lib/target_process/entities/practice.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::Practice - include TargetProcess::Base + class Practice + include Base has_many :processes - end end diff --git a/lib/target_process/entities/priority.rb b/lib/target_process/entities/priority.rb index cbb288a..2a289c3 100644 --- a/lib/target_process/entities/priority.rb +++ b/lib/target_process/entities/priority.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::Priority - include TargetProcess::Base + class Priority + include Base belongs_to :entity_type - end end diff --git a/lib/target_process/entities/process.rb b/lib/target_process/entities/process.rb index 3dbe17a..79eb40f 100644 --- a/lib/target_process/entities/process.rb +++ b/lib/target_process/entities/process.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::Process - include TargetProcess::Base + class Process + include Base has_many :entity_states has_many :projects has_many :practices - end end diff --git a/lib/target_process/entities/program.rb b/lib/target_process/entities/program.rb index 4698868..a8df114 100644 --- a/lib/target_process/entities/program.rb +++ b/lib/target_process/entities/program.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Program - include TargetProcess::Base + class Program + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -12,6 +12,5 @@ class TargetProcess::Program belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' belongs_to :project - end end diff --git a/lib/target_process/entities/project.rb b/lib/target_process/entities/project.rb index 8f1c693..01f0626 100644 --- a/lib/target_process/entities/project.rb +++ b/lib/target_process/entities/project.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Project - include TargetProcess::Base + class Project + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -32,6 +32,5 @@ class TargetProcess::Project belongs_to :program belongs_to :process belongs_to :company - end end diff --git a/lib/target_process/entities/project_member.rb b/lib/target_process/entities/project_member.rb index da1bd49..deb269d 100644 --- a/lib/target_process/entities/project_member.rb +++ b/lib/target_process/entities/project_member.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::ProjectMember - include TargetProcess::Base + class ProjectMember + include Base belongs_to :project belongs_to :user belongs_to :role - end end diff --git a/lib/target_process/entities/relation.rb b/lib/target_process/entities/relation.rb index 60e0590..7c68cae 100644 --- a/lib/target_process/entities/relation.rb +++ b/lib/target_process/entities/relation.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::Relation - include TargetProcess::Base + class Relation + include Base belongs_to :master, 'General' belongs_to :slave, 'General' belongs_to :relation_type - end end diff --git a/lib/target_process/entities/relation_type.rb b/lib/target_process/entities/relation_type.rb index 59e762c..9e82659 100644 --- a/lib/target_process/entities/relation_type.rb +++ b/lib/target_process/entities/relation_type.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::RelationType - include TargetProcess::Base + class RelationType + include Base has_many :relations - end end diff --git a/lib/target_process/entities/release.rb b/lib/target_process/entities/release.rb index 8f93580..0857092 100644 --- a/lib/target_process/entities/release.rb +++ b/lib/target_process/entities/release.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Release - include TargetProcess::Base + class Release + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -20,6 +20,5 @@ class TargetProcess::Release belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' belongs_to :project - end end diff --git a/lib/target_process/entities/request.rb b/lib/target_process/entities/request.rb index 63dd2af..f86256a 100644 --- a/lib/target_process/entities/request.rb +++ b/lib/target_process/entities/request.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Request - include TargetProcess::Base + class Request + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -26,6 +26,5 @@ class TargetProcess::Request belongs_to :priority belongs_to :entity_state belongs_to :request_type - end end diff --git a/lib/target_process/entities/request_history.rb b/lib/target_process/entities/request_history.rb index 50171a7..5a9aa43 100644 --- a/lib/target_process/entities/request_history.rb +++ b/lib/target_process/entities/request_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::RequestHistory - include TargetProcess::Base + class RequestHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :request - end end diff --git a/lib/target_process/entities/request_type.rb b/lib/target_process/entities/request_type.rb index d6980cb..1979178 100644 --- a/lib/target_process/entities/request_type.rb +++ b/lib/target_process/entities/request_type.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::RequestType - include TargetProcess::Base + class RequestType + include Base has_many :requests - end end diff --git a/lib/target_process/entities/requester.rb b/lib/target_process/entities/requester.rb index 9b5abd4..401ff75 100644 --- a/lib/target_process/entities/requester.rb +++ b/lib/target_process/entities/requester.rb @@ -1,10 +1,9 @@ module TargetProcess - class TargetProcess::Requester - include TargetProcess::Base + class Requester + include Base has_many :assignables has_many :comments has_many :requests belongs_to :company - end end diff --git a/lib/target_process/entities/revision.rb b/lib/target_process/entities/revision.rb index 540329d..cca3247 100644 --- a/lib/target_process/entities/revision.rb +++ b/lib/target_process/entities/revision.rb @@ -1,10 +1,9 @@ module TargetProcess - class TargetProcess::Revision - include TargetProcess::Base + class Revision + include Base has_many :revision_files has_many :assignables belongs_to :project belongs_to :author, 'User' - end end diff --git a/lib/target_process/entities/revision_file.rb b/lib/target_process/entities/revision_file.rb index 35d2462..dda9dd3 100644 --- a/lib/target_process/entities/revision_file.rb +++ b/lib/target_process/entities/revision_file.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::RevisionFile - include TargetProcess::Base + class RevisionFile + include Base belongs_to :revision - end end diff --git a/lib/target_process/entities/role.rb b/lib/target_process/entities/role.rb index 0530602..1b68a07 100644 --- a/lib/target_process/entities/role.rb +++ b/lib/target_process/entities/role.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::Role - include TargetProcess::Base + class Role + include Base has_many :role_efforts has_many :entity_states - end end diff --git a/lib/target_process/entities/role_effort.rb b/lib/target_process/entities/role_effort.rb index 7ed1424..6b0a7c3 100644 --- a/lib/target_process/entities/role_effort.rb +++ b/lib/target_process/entities/role_effort.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::RoleEffort - include TargetProcess::Base + class RoleEffort + include Base belongs_to :assignable belongs_to :role - end end diff --git a/lib/target_process/entities/severity.rb b/lib/target_process/entities/severity.rb index 5d68f78..a96bd30 100644 --- a/lib/target_process/entities/severity.rb +++ b/lib/target_process/entities/severity.rb @@ -1,6 +1,5 @@ module TargetProcess - class TargetProcess::Severity - include TargetProcess::Base - + class Severity + include Base end end diff --git a/lib/target_process/entities/tag.rb b/lib/target_process/entities/tag.rb index 50bcf51..db379d7 100644 --- a/lib/target_process/entities/tag.rb +++ b/lib/target_process/entities/tag.rb @@ -1,7 +1,6 @@ module TargetProcess - class TargetProcess::Tag - include TargetProcess::Base + class Tag + include Base has_many :generals - end end diff --git a/lib/target_process/entities/task.rb b/lib/target_process/entities/task.rb index 384ab68..2948ee9 100644 --- a/lib/target_process/entities/task.rb +++ b/lib/target_process/entities/task.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Task - include TargetProcess::Base + class Task + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -25,6 +25,5 @@ class TargetProcess::Task belongs_to :priority belongs_to :entity_state belongs_to :user_story - end end diff --git a/lib/target_process/entities/task_history.rb b/lib/target_process/entities/task_history.rb index 8fc626b..59cce46 100644 --- a/lib/target_process/entities/task_history.rb +++ b/lib/target_process/entities/task_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::TaskHistory - include TargetProcess::Base + class TaskHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :task - end end diff --git a/lib/target_process/entities/team.rb b/lib/target_process/entities/team.rb index 555f6d4..f5e15f8 100644 --- a/lib/target_process/entities/team.rb +++ b/lib/target_process/entities/team.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::Team - include TargetProcess::Base + class Team + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -15,6 +15,5 @@ class TargetProcess::Team belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' belongs_to :project - end end diff --git a/lib/target_process/entities/team_iteration.rb b/lib/target_process/entities/team_iteration.rb index df3fda2..1c088dd 100644 --- a/lib/target_process/entities/team_iteration.rb +++ b/lib/target_process/entities/team_iteration.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::TeamIteration - include TargetProcess::Base + class TeamIteration + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -16,6 +16,5 @@ class TargetProcess::TeamIteration belongs_to :last_commented_user, 'GeneralUser' belongs_to :project belongs_to :team - end end diff --git a/lib/target_process/entities/team_member.rb b/lib/target_process/entities/team_member.rb index 2700540..dec2868 100644 --- a/lib/target_process/entities/team_member.rb +++ b/lib/target_process/entities/team_member.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::TeamMember - include TargetProcess::Base + class TeamMember + include Base belongs_to :team belongs_to :user belongs_to :role - end end diff --git a/lib/target_process/entities/team_project.rb b/lib/target_process/entities/team_project.rb index 238d55d..87e29e9 100644 --- a/lib/target_process/entities/team_project.rb +++ b/lib/target_process/entities/team_project.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::TeamProject - include TargetProcess::Base + class TeamProject + include Base belongs_to :team belongs_to :project - end end diff --git a/lib/target_process/entities/test_case.rb b/lib/target_process/entities/test_case.rb index 948d291..8209ab7 100644 --- a/lib/target_process/entities/test_case.rb +++ b/lib/target_process/entities/test_case.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::TestCase - include TargetProcess::Base + class TestCase + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -15,6 +15,5 @@ class TargetProcess::TestCase belongs_to :project belongs_to :user_story belongs_to :priority - end end diff --git a/lib/target_process/entities/test_case_run.rb b/lib/target_process/entities/test_case_run.rb index 35b5c18..0cf022f 100644 --- a/lib/target_process/entities/test_case_run.rb +++ b/lib/target_process/entities/test_case_run.rb @@ -1,8 +1,7 @@ module TargetProcess - class TargetProcess::TestCaseRun - include TargetProcess::Base + class TestCaseRun + include Base has_many :test_cases belongs_to :test_plan_run - end end diff --git a/lib/target_process/entities/test_plan.rb b/lib/target_process/entities/test_plan.rb new file mode 100644 index 0000000..9bbbbe5 --- /dev/null +++ b/lib/target_process/entities/test_plan.rb @@ -0,0 +1,17 @@ +module TargetProcess + class TestPlan + include Base + has_many :comments + has_many :messages + has_many :tag_objects, 'Tag' + has_many :master_relations, 'Relation' + has_many :slave_relations, 'Relation' + has_many :attachments + has_many :test_cases + has_many :test_plan_runs + belongs_to :entity_type + belongs_to :owner, 'GeneralUser' + belongs_to :last_commented_user, 'GeneralUser' + belongs_to :project + end +end diff --git a/lib/target_process/entities/test_plan_run.rb b/lib/target_process/entities/test_plan_run.rb index 01d93cb..adfe68e 100644 --- a/lib/target_process/entities/test_plan_run.rb +++ b/lib/target_process/entities/test_plan_run.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::TestPlanRun - include TargetProcess::Base + class TestPlanRun + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -26,6 +26,5 @@ class TargetProcess::TestPlanRun belongs_to :entity_state belongs_to :build belongs_to :test_plan - end end diff --git a/lib/target_process/entities/time.rb b/lib/target_process/entities/time.rb index f4fafdb..e9f6300 100644 --- a/lib/target_process/entities/time.rb +++ b/lib/target_process/entities/time.rb @@ -1,11 +1,10 @@ module TargetProcess - class TargetProcess::Time - include TargetProcess::Base + class Time + include Base belongs_to :project belongs_to :user belongs_to :assignable belongs_to :role belongs_to :custom_activity - end end diff --git a/lib/target_process/entities/user.rb b/lib/target_process/entities/user.rb index 31dfd43..cae4452 100644 --- a/lib/target_process/entities/user.rb +++ b/lib/target_process/entities/user.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::User - include TargetProcess::Base + class User + include Base has_many :assignables has_many :comments has_many :requests @@ -12,6 +12,5 @@ class TargetProcess::User has_many :project_members has_many :milestones belongs_to :role - end end diff --git a/lib/target_process/entities/user_story.rb b/lib/target_process/entities/user_story.rb index 0eb1b86..9d7f94c 100644 --- a/lib/target_process/entities/user_story.rb +++ b/lib/target_process/entities/user_story.rb @@ -1,6 +1,6 @@ module TargetProcess - class TargetProcess::UserStory - include TargetProcess::Base + class UserStory + include Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -28,6 +28,5 @@ class TargetProcess::UserStory belongs_to :priority belongs_to :entity_state belongs_to :feature - end end diff --git a/lib/target_process/entities/user_story_history.rb b/lib/target_process/entities/user_story_history.rb index fda49ff..8cf016d 100644 --- a/lib/target_process/entities/user_story_history.rb +++ b/lib/target_process/entities/user_story_history.rb @@ -1,9 +1,8 @@ module TargetProcess - class TargetProcess::UserStoryHistory - include TargetProcess::Base + class UserStoryHistory + include Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :user_story - end end diff --git a/lib/target_process/user_story.rb b/lib/target_process/user_story.rb deleted file mode 100644 index 5a04f62..0000000 --- a/lib/target_process/user_story.rb +++ /dev/null @@ -1,15 +0,0 @@ - -module TargetProcess - class Task - include TargetProcess::Base - belongs_to :user_story - end - - class UserStory - include TargetProcess::Base - has_many :tasks - has_many :bugs - has_many :assigned_user, 'GeneralUser' - belongs_to :project - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b1c82f3..cffa1b6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,13 +9,10 @@ require 'target_process' require 'vcr' -VCR.configure do |c| - c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' - c.hook_into :webmock # or :fakeweb - c.configure_rspec_metadata! +unless ENV['TRAVIS'] + VCR.configure do |c| + c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' + c.hook_into :webmock # or :fakeweb + c.configure_rspec_metadata! + end end - -# Run this commands in case you want to send any request to api, otherwise -# VCR and WebMock will not allow you -# VCR.turn_off! -# WebMock.allow_net_connect! From b9258d61be885d50847bd6cafd0f65eb8d0a2425 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Tue, 20 Aug 2013 14:20:33 +0300 Subject: [PATCH 07/14] fix static tests --- .../returns_associated_project.yml | 218 ++++-- ...urns_an_array_and_resolve_associations.yml | 239 ++++++- ...rray_of_tasks_and_resolve_associations.yml | 648 ++++++++++++++---- spec/lib/target_process/base_spec.rb | 25 +- 4 files changed, 939 insertions(+), 191 deletions(-) diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml index 2c1793c..8298738 100644 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml @@ -1,25 +1,27 @@ --- http_interactions: - request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ body: encoding: UTF-8 - string: format=json - headers: {} + string: '{"Name":"Pro770346966"}' + headers: + Content-Type: + - application/json response: status: - code: 200 - message: OK + code: 201 + message: Created headers: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 15:59:59 GMT + - Tue, 20 Aug 2013 11:18:58 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '992' + - '731' Connection: - keep-alive Keep-Alive: @@ -35,31 +37,85 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '75' + - '258' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": - \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + string: "{\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997533000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997533000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:18:56 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":4817}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:18:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '199' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4818,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997534000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997534000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n - \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": - \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + \ \"Project\": {\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:01 GMT + recorded_at: Tue, 20 Aug 2013 11:18:57 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/2274 + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4817 body: encoding: UTF-8 string: format=json @@ -72,11 +128,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:03 GMT + - Tue, 20 Aug 2013 11:18:59 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '725' + - '731' Connection: - keep-alive Keep-Alive: @@ -92,24 +148,24 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '37' + - '50' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\",\r\n \"Description\": + string: "{\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376385752000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n + \"\\/Date(1376997533000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997533000-0500)\\/\",\r\n \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 21.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:02 GMT + recorded_at: Tue, 20 Aug 2013 11:18:57 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 @@ -125,7 +181,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:00 GMT + - Tue, 20 Aug 2013 11:18:54 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -145,7 +201,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '4' X-Ua-Compatible: - IE=edge body: @@ -153,7 +209,7 @@ http_interactions: string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": true,\r\n \"IsSearchable\": false\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:02 GMT + recorded_at: Tue, 20 Aug 2013 11:18:58 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 @@ -169,7 +225,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:04 GMT + - Tue, 20 Aug 2013 11:19:00 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -189,7 +245,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '5' + - '8' X-Ua-Compatible: - IE=edge body: @@ -200,7 +256,7 @@ http_interactions: \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:03 GMT + recorded_at: Tue, 20 Aug 2013 11:18:58 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 @@ -216,7 +272,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:01 GMT + - Tue, 20 Aug 2013 11:18:55 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -236,7 +292,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '13' X-Ua-Compatible: - IE=edge body: @@ -245,5 +301,87 @@ http_interactions: \ \"Description\": \"Scrum is an iterative, incremental methodology for project management.\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:03 GMT + recorded_at: Tue, 20 Aug 2013 11:18:59 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4817/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:01 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '78' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 11:18:59 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4818/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:18:56 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '218' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:00 GMT recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml index e352a9a..af43657 100644 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml @@ -1,25 +1,82 @@ --- http_interactions: - request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ body: encoding: UTF-8 - string: format=json - headers: {} + string: '{"Name":"Pro368213346"}' + headers: + Content-Type: + - application/json response: status: - code: 200 - message: OK + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '235' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4826,\r\n \"Name\": \"Pro368213346\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997551000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997551000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:14 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":4826},"Owner":{"id":1}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created headers: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:12 GMT + - Tue, 20 Aug 2013 11:19:16 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '992' + - '946' Connection: - keep-alive Keep-Alive: @@ -35,31 +92,79 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '41' + - '178' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": - \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + string: "{\r\n \"Id\": 4827,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997552000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997552000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n - \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": - \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + \ \"Project\": {\r\n \"Id\": 4826,\r\n \"Name\": \"Pro368213346\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:11 GMT + recorded_at: Tue, 20 Aug 2013 11:19:15 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Assignments/ + body: + encoding: UTF-8 + string: '{"Assignable":{"id":4827},"GeneralUser":{"id":1},"Role":{"id":1}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '269' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '89' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 152,\r\n \"Assignable\": {\r\n \"Id\": 4827,\r\n + \ \"Name\": \"story2\"\r\n },\r\n \"GeneralUser\": {\r\n \"Kind\": + \"User\",\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"Role\": {\r\n \"Id\": 1,\r\n \"Name\": + \"Programmer\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:16 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522/AssignedUser + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4827/AssignedUser body: encoding: UTF-8 string: format=json @@ -72,7 +177,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:09 GMT + - Tue, 20 Aug 2013 11:19:18 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -92,7 +197,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '19' + - '9' X-Ua-Compatible: - IE=edge body: @@ -104,5 +209,87 @@ http_interactions: \ \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n }\r\n ]\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:11 GMT + recorded_at: Tue, 20 Aug 2013 11:19:16 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4827/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:13 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '260' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:17 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4826/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:19 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '77' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:17 GMT recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml index 2167022..6231c16 100644 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml @@ -1,25 +1,82 @@ --- http_interactions: - request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522 + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ body: encoding: UTF-8 - string: format=json - headers: {} + string: '{"Name":"Pro60479920"}' + headers: + Content-Type: + - application/json response: status: - code: 200 - message: OK + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '730' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '231' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997538000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:01 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":4819}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created headers: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:05 GMT + - Tue, 20 Aug 2013 11:18:58 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '992' + - '945' Connection: - keep-alive Keep-Alive: @@ -35,31 +92,325 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '84' + - '205' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4522,\r\n \"Name\": \"story2\",\r\n \"Description\": - \"
asdasd
\\r\\n\",\r\n \"StartDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562204000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376566023000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + string: "{\r\n \"Id\": 4820,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n - \ \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 47,\r\n \"Name\": - \"In Progress\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + \ \"Project\": {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:01 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":4820}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '941' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '245' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4821,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997539000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 78.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:02 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":4820}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:18:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '941' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '257' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4822,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997540000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 79.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:03 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":4820}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '941' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '249' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4823,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997541000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 79.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:04 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":4820}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '941' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '238' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4824,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997541000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 80.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:04 GMT + recorded_at: Tue, 20 Aug 2013 11:19:04 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":4820}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '941' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '243' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4825,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1376997542000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 80.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:05 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4522/Tasks + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4820/Tasks body: encoding: UTF-8 string: format=json @@ -72,11 +423,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:02 GMT + - Tue, 20 Aug 2013 11:19:02 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '4550' + - '5702' Connection: - keep-alive Keep-Alive: @@ -92,78 +443,94 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '45' + - '64' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 4523,\r\n \"Name\": - \"task1\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562226000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376562235000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 74.5,\r\n \"Effort\": + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 4821,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 78.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4822,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 79.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4524,\r\n \"Name\": - \"task2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562238000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376562238000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 75.0,\r\n \"Effort\": + {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4823,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 79.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4525,\r\n \"Name\": - \"task3\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562240000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376562240000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 75.5,\r\n \"Effort\": + {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4824,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 80.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4526,\r\n \"Name\": - \"task4\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376562242000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376562243000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 76.0,\r\n \"Effort\": + {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4825,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 80.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\"\r\n },\r\n + {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4522,\r\n \"Name\": \"story2\"\r\n },\r\n + {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n \ \"CustomFields\": []\r\n }\r\n ]\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:04 GMT + recorded_at: Tue, 20 Aug 2013 11:19:06 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 @@ -179,7 +546,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:06 GMT + - Tue, 20 Aug 2013 11:19:08 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -199,7 +566,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '4' X-Ua-Compatible: - IE=edge body: @@ -207,7 +574,7 @@ http_interactions: string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": true,\r\n \"IsSearchable\": true\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:05 GMT + recorded_at: Tue, 20 Aug 2013 11:19:06 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 @@ -223,7 +590,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:03 GMT + - Tue, 20 Aug 2013 11:19:03 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -243,7 +610,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '4' + - '7' X-Ua-Compatible: - IE=edge body: @@ -254,10 +621,10 @@ http_interactions: \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:05 GMT + recorded_at: Tue, 20 Aug 2013 11:19:07 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/2274 + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4819 body: encoding: UTF-8 string: format=json @@ -270,11 +637,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:07 GMT + - Tue, 20 Aug 2013 11:19:09 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '725' + - '730' Connection: - keep-alive Keep-Alive: @@ -290,24 +657,24 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '36' + - '51' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 2274,\r\n \"Name\": \"Foobar\",\r\n \"Description\": + string: "{\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376385752000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376385759000-0500)\\/\",\r\n + \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997538000-0500)\\/\",\r\n \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 21.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"FOO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:06 GMT + recorded_at: Tue, 20 Aug 2013 11:19:07 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 @@ -323,7 +690,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:04 GMT + - Tue, 20 Aug 2013 11:19:04 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -343,7 +710,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '4' X-Ua-Compatible: - IE=edge body: @@ -351,7 +718,7 @@ http_interactions: string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": true,\r\n \"IsSearchable\": false\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:06 GMT + recorded_at: Tue, 20 Aug 2013 11:19:08 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 @@ -367,7 +734,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:08 GMT + - Tue, 20 Aug 2013 11:19:10 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -387,7 +754,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '4' + - '6' X-Ua-Compatible: - IE=edge body: @@ -398,7 +765,7 @@ http_interactions: \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:07 GMT + recorded_at: Tue, 20 Aug 2013 11:19:08 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 @@ -414,7 +781,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:05 GMT + - Tue, 20 Aug 2013 11:19:05 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -434,7 +801,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '2' + - '4' X-Ua-Compatible: - IE=edge body: @@ -443,7 +810,7 @@ http_interactions: \ \"Description\": \"Scrum is an iterative, incremental methodology for project management.\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:07 GMT + recorded_at: Tue, 20 Aug 2013 11:19:09 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 @@ -459,7 +826,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:09 GMT + - Tue, 20 Aug 2013 11:19:11 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -479,7 +846,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '8' + - '7' X-Ua-Compatible: - IE=edge body: @@ -488,7 +855,7 @@ http_interactions: 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \ \"Name\": \"UserStory\"\r\n }\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:08 GMT + recorded_at: Tue, 20 Aug 2013 11:19:09 GMT - request: method: get uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 @@ -504,7 +871,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:06 GMT + - Tue, 20 Aug 2013 11:19:06 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -524,7 +891,7 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '4' X-Ua-Compatible: - IE=edge body: @@ -532,10 +899,10 @@ http_interactions: string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": true,\r\n \"IsSearchable\": true\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:08 GMT + recorded_at: Tue, 20 Aug 2013 11:19:10 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/47 + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 body: encoding: UTF-8 string: format=json @@ -548,11 +915,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:10 GMT + - Tue, 20 Aug 2013 11:19:12 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '348' + - '298' Connection: - keep-alive Keep-Alive: @@ -568,22 +935,21 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '9' + - '15' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 47,\r\n \"Name\": \"In Progress\",\r\n \"IsInitial\": - false,\r\n \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": - false,\r\n \"NumericPriority\": 47.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n - \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": - 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": {\r\n \"Id\": - 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:09 GMT + recorded_at: Tue, 20 Aug 2013 11:19:10 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 body: encoding: UTF-8 string: format=json @@ -596,11 +962,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:07 GMT + - Tue, 20 Aug 2013 11:19:07 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '81' + - '89' Connection: - keep-alive Keep-Alive: @@ -616,18 +982,18 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '10' + - '4' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n - \ \"HasEffort\": true\r\n}" + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:09 GMT + recorded_at: Tue, 20 Aug 2013 11:19:11 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 body: encoding: UTF-8 string: format=json @@ -640,11 +1006,11 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:11 GMT + - Tue, 20 Aug 2013 11:19:13 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - - '89' + - '149' Connection: - keep-alive Keep-Alive: @@ -660,21 +1026,63 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '4' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" http_version: - recorded_at: Mon, 19 Aug 2013 16:00:10 GMT + recorded_at: Tue, 20 Aug 2013 11:19:11 GMT - request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4819/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 11:19:08 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '71' + X-Ua-Compatible: + - IE=edge body: encoding: UTF-8 - string: format=json + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 11:19:12 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4820/ + body: + encoding: US-ASCII + string: '' headers: {} response: status: @@ -684,11 +1092,9 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Mon, 19 Aug 2013 16:00:08 GMT - Content-Type: - - application/json; charset=utf-8 + - Tue, 20 Aug 2013 11:19:15 GMT Content-Length: - - '149' + - '0' Connection: - keep-alive Keep-Alive: @@ -704,14 +1110,12 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '3' + - '1002' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" + string: '' http_version: - recorded_at: Mon, 19 Aug 2013 16:00:10 GMT + recorded_at: Tue, 20 Aug 2013 11:19:13 GMT recorded_with: VCR 2.5.0 diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 36997d6..26b136a 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -315,11 +315,14 @@ describe '#belongs_to' do context "when symbol passed" do it 'returns associated project' do - us = TargetProcess::UserStory.find(4522) + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", project: { id: p.id }).save expect(us.project).to be_an_instance_of(TargetProcess::Project) expect(us.references[:project]).to eq(us.project) expect(us.project.collections[:user_stories]).to eq([us]) + p.delete + us.delete end end end @@ -327,7 +330,11 @@ describe 'has_many' do context "when symbol passed" do it 'returns an array of tasks and resolve associations' do - us = TargetProcess::UserStory.find(4522) + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", project: { id: p.id }).save + 5.times do + TargetProcess::Task.new(name: "task", user_story: { id: us.id }).save + end tasks = us.tasks expect(tasks).to be_an_instance_of(Array) @@ -336,16 +343,28 @@ expect(task.references[:user_story]).to eq(us) end expect(us.collections[:tasks]).to eq(tasks) + p.delete + us.delete end end context "when hash passed" do it 'returns an array and resolve associations' do - us = TargetProcess::UserStory.find(4522) + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id }, + owner: { id: 1 } + ).save + TargetProcess::Assignment.new(assignable: { id: us.id }, + general_user: { id: 1 }, + role: { id: 1} + ).save au = us.assigned_user expect(au).to be_an_instance_of(Array) expect(au.first).to be_an_instance_of(TargetProcess::GeneralUser) + us.delete + p.delete end end end From 6f147db84d2daf03ddafa869b0d2de6f0d365654 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Tue, 20 Aug 2013 15:04:11 +0300 Subject: [PATCH 08/14] refactor --- lib/target_process/base.rb | 2 +- spec/lib/target_process/base_spec.rb | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 7f37511..9ab1a64 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -122,7 +122,7 @@ def has_many(name, klass = nil) result = "TargetProcess::#{klass}".constantize.new result.attributes.merge!(hash) result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) - result || [] + result end end end diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 26b136a..eb7250d 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -316,7 +316,9 @@ context "when symbol passed" do it 'returns associated project' do p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save - us = TargetProcess::UserStory.new(name: "story2", project: { id: p.id }).save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id } + ).save expect(us.project).to be_an_instance_of(TargetProcess::Project) expect(us.references[:project]).to eq(us.project) @@ -331,7 +333,9 @@ context "when symbol passed" do it 'returns an array of tasks and resolve associations' do p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save - us = TargetProcess::UserStory.new(name: "story2", project: { id: p.id }).save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id } + ).save 5.times do TargetProcess::Task.new(name: "task", user_story: { id: us.id }).save end From 3ddfb070d4dda227806d0fa2f58388dfad399c50 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Tue, 20 Aug 2013 17:58:33 +0300 Subject: [PATCH 09/14] remove references caching --- lib/target_process/base.rb | 13 +- .../provide_getter_for_referenced_item.yml | 1645 ++ .../returns_associated_project.yml | 387 - ..._for_collections_with_different_class.yml} | 62 +- ...or_collections_with_symbol-named_class.yml | 17179 ++++++++++++++++ ...rray_of_tasks_and_resolve_associations.yml | 1121 - spec/lib/target_process/base_spec.rb | 95 +- spec/spec_helper.rb | 2 +- 8 files changed, 18905 insertions(+), 1599 deletions(-) create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml delete mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml rename spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/{when_hash_passed/returns_an_array_and_resolve_associations.yml => provides_getters_for_collections_with_different_class.yml} (83%) create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_symbol-named_class.yml delete mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 9ab1a64..e52d9c2 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -8,14 +8,12 @@ def self.included(base) base.extend(ClassMethods) end - attr_reader :attributes, :changed_attributes, :references, :collections + attr_reader :attributes, :changed_attributes module InstanceMethods def initialize(hash = {}) @changed_attributes = hash @attributes = {} - @references = {} - @collections = {} end def delete @@ -94,7 +92,7 @@ def all(options = {}) TargetProcess.client.get(path, options)[:items].collect! do |hash| result = new result.attributes.merge!(hash) - result || [] + result end end @@ -117,11 +115,9 @@ def has_many(name, klass = nil) klass ||= name.to_s.singularize.camelize define_method(name) do path = entity_path + name.to_s.camelize - @collections[name] ||= TargetProcess.client.get(path)[:items].collect! do |hash| result = "TargetProcess::#{klass}".constantize.new result.attributes.merge!(hash) - result.references.merge!(self.class.to_s.demodulize.underscore.to_sym => self) result end end @@ -133,9 +129,8 @@ def belongs_to (name, klass = nil) if @attributes[name] id = @attributes[name][:id] self_klass = self.class.to_s.demodulize.pluralize.underscore.to_sym - @references[name] ||= "TargetProcess::#{klass}".constantize.find(id) - @references[name].collections.merge!(self_klass => [self]) - @references[name] + reference = "TargetProcess::#{klass}".constantize.find(id) + reference else nil end diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml new file mode 100644 index 0000000..11f8279 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml @@ -0,0 +1,1645 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Pro655746553"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '244' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:21 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":5267}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '197' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5268,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009559000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '47' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '53' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267/UserStories + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '1155' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '124' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5268,\r\n \"Name\": + \"story2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": + \"UserStory\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n + \ \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n + \ },\r\n \"LastCommentedUser\": null,\r\n \"Project\": {\r\n + \ \"Id\": 5267,\r\n \"Name\": \"Pro655746553\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Nice To Have\"\r\n },\r\n \"EntityState\": + {\r\n \"Id\": 46,\r\n \"Name\": \"Open\"\r\n },\r\n \"Feature\": + null,\r\n \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '49' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '49' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '9' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '14' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:38 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:35 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '81' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:39 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5268/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:41 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '210' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:39 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml deleted file mode 100644 index 8298738..0000000 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/when_symbol_passed/returns_associated_project.yml +++ /dev/null @@ -1,387 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ - body: - encoding: UTF-8 - string: '{"Name":"Pro770346966"}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:58 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '258' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997533000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997533000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:56 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ - body: - encoding: UTF-8 - string: '{"Name":"story2","Project":{"id":4817}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:53 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '946' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '199' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4818,\r\n \"Name\": \"story2\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997534000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997534000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": - 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n - \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n - \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\"\r\n - \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": - \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:57 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4817 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:59 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '50' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4817,\r\n \"Name\": \"Pro770346966\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997533000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997533000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:57 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:54 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:58 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:00 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '8' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:58 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:55 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '13' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:59 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4817/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:01 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '78' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 11:18:59 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4818/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:56 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '218' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:00 GMT -recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_different_class.yml similarity index 83% rename from spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml rename to spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_different_class.yml index af43657..da8f321 100644 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_hash_passed/returns_an_array_and_resolve_associations.yml +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_different_class.yml @@ -5,7 +5,7 @@ http_interactions: uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ body: encoding: UTF-8 - string: '{"Name":"Pro368213346"}' + string: '{"Name":"Pro394154672"}' headers: Content-Type: - application/json @@ -17,7 +17,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:10 GMT + - Tue, 20 Aug 2013 14:43:11 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -37,16 +37,16 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '235' + - '276' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4826,\r\n \"Name\": \"Pro368213346\",\r\n \"Description\": + string: "{\r\n \"Id\": 5276,\r\n \"Name\": \"Pro394154672\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997551000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997551000-0500)\\/\",\r\n + \"\\/Date(1377009792000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009792000-0500)\\/\",\r\n \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": @@ -54,13 +54,13 @@ http_interactions: null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Tue, 20 Aug 2013 11:19:14 GMT + recorded_at: Tue, 20 Aug 2013 14:43:14 GMT - request: method: post uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ body: encoding: UTF-8 - string: '{"Name":"story2","Project":{"id":4826},"Owner":{"id":1}}' + string: '{"Name":"story2","Project":{"id":5276},"Owner":{"id":1}}' headers: Content-Type: - application/json @@ -72,7 +72,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:16 GMT + - Tue, 20 Aug 2013 14:43:17 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -92,33 +92,33 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '178' + - '189' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 4827,\r\n \"Name\": \"story2\",\r\n \"Description\": + string: "{\r\n \"Id\": 5277,\r\n \"Name\": \"story2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997552000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997552000-0500)\\/\",\r\n + \"\\/Date(1377009792000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009792000-0500)\\/\",\r\n \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 4826,\r\n \"Name\": \"Pro368213346\"\r\n + \ \"Project\": {\r\n \"Id\": 5276,\r\n \"Name\": \"Pro394154672\"\r\n \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" http_version: - recorded_at: Tue, 20 Aug 2013 11:19:15 GMT + recorded_at: Tue, 20 Aug 2013 14:43:15 GMT - request: method: post uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Assignments/ body: encoding: UTF-8 - string: '{"Assignable":{"id":4827},"GeneralUser":{"id":1},"Role":{"id":1}}' + string: '{"Assignable":{"id":5277},"GeneralUser":{"id":1},"Role":{"id":1}}' headers: Content-Type: - application/json @@ -130,7 +130,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:12 GMT + - Tue, 20 Aug 2013 14:43:12 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -150,21 +150,21 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '89' + - '69' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 - string: "{\r\n \"Id\": 152,\r\n \"Assignable\": {\r\n \"Id\": 4827,\r\n + string: "{\r\n \"Id\": 175,\r\n \"Assignable\": {\r\n \"Id\": 5277,\r\n \ \"Name\": \"story2\"\r\n },\r\n \"GeneralUser\": {\r\n \"Kind\": \"User\",\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n },\r\n \"Role\": {\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\"\r\n }\r\n}" http_version: - recorded_at: Tue, 20 Aug 2013 11:19:16 GMT + recorded_at: Tue, 20 Aug 2013 14:43:16 GMT - request: method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4827/AssignedUser + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5277/AssignedUser body: encoding: UTF-8 string: format=json @@ -177,7 +177,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:18 GMT + - Tue, 20 Aug 2013 14:43:18 GMT Content-Type: - application/json; charset=utf-8 Content-Length: @@ -209,10 +209,10 @@ http_interactions: \ \"DeleteDate\": null,\r\n \"IsActive\": true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n }\r\n ]\r\n}" http_version: - recorded_at: Tue, 20 Aug 2013 11:19:16 GMT + recorded_at: Tue, 20 Aug 2013 14:43:17 GMT - request: method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4827/ + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5277/ body: encoding: US-ASCII string: '' @@ -225,7 +225,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:13 GMT + - Tue, 20 Aug 2013 14:43:13 GMT Content-Length: - '0' Connection: @@ -243,17 +243,17 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '260' + - '246' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 20 Aug 2013 11:19:17 GMT + recorded_at: Tue, 20 Aug 2013 14:43:17 GMT - request: method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4826/ + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5276/ body: encoding: US-ASCII string: '' @@ -266,7 +266,7 @@ http_interactions: Server: - nginx/1.4.1 Date: - - Tue, 20 Aug 2013 11:19:19 GMT + - Tue, 20 Aug 2013 14:43:19 GMT Content-Length: - '0' Connection: @@ -284,12 +284,12 @@ http_interactions: X-Aspnetmvc-Version: - '3.0' X-Stopwatch: - - '77' + - '76' X-Ua-Compatible: - IE=edge body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 20 Aug 2013 11:19:17 GMT + recorded_at: Tue, 20 Aug 2013 14:43:18 GMT recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_symbol-named_class.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_symbol-named_class.yml new file mode 100644 index 0000000..d16d330 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/provides_getters_for_collections_with_symbol-named_class.yml @@ -0,0 +1,17179 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Pro194521092"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '248' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:40 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":5269}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '248' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:41 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":5270}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '942' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '255' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5271,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009579000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:41 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":5270}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '942' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '281' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5272,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009579000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 86.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:42 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":5270}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '942' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '222' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5273,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009580000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009580000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 86.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:43 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":5270}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '942' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '274' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5274,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009581000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009581000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 87.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:44 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ + body: + encoding: UTF-8 + string: '{"Name":"task","UserStory":{"id":5270}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '942' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '227' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5275,\r\n \"Name\": \"task\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009582000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009582000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 87.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n \"Release\": + null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": + null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n + \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n + \ \"UserStory\": {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270/Tasks + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '5707' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '62' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5271,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5272,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 86.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5273,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009580000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009580000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 86.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5274,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009581000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009581000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 87.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5275,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009582000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009582000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 87.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '47' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '62' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:46 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '38' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '60' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:39:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '60' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:39:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '49' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '48' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:13 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:13 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '51' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '63' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '61' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '61' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '48' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:49 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:49 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:46 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '62' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '66' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:40:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '54' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:40:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '15' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '51' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '49' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:13 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '65' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '62' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/11 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '134' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 11,\r\n \"Name\": \"-\",\r\n \"Importance\": 1,\r\n + \ \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Task\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/50 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:46 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '335' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 50,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 50.0,\r\n \"Role\": {\r\n \"Id\": 1,\r\n + \ \"Name\": \"Programmer\"\r\n },\r\n \"EntityType\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Process\": {\r\n \"Id\": 3,\r\n + \ \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:45 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Roles/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '81' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Programmer\",\r\n \"IsPair\": true,\r\n + \ \"HasEffort\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '84' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Task\",\r\n \"IsExtendable\": true,\r\n + \ \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '66' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:49 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '94' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:49 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:46 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '15' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '12' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:41:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270/Tasks + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '5707' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '67' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5271,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5272,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009579000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 86.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5273,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009580000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009580000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 86.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5274,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009581000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009581000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 87.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 5275,\r\n \"Name\": + \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009582000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377009582000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 87.5,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": + {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": + {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n + \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": + {\r\n \"Id\": 5270,\r\n \"Name\": \"story2\"\r\n },\r\n + \ \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '67' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:41:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '9' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '48' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '112' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '52' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '48' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:23 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:24 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '9' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:25 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:26 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '99' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '25' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '60' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '59' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '51' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '11' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:43 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '92' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:44 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:46 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:47 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:48 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:45 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:49 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:47 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:50 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:51 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:48 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:52 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:49 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:53 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:50 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:54 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:51 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:55 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:52 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:56 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:53 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '10' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:57 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:54 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:58 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:55 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '61' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5270,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009578000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009578000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:42:59 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:56 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:00 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:57 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:01 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:58 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '51' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5269,\r\n \"Name\": \"Pro194521092\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377009577000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009577000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:02 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:42:59 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:03 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:00 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:04 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:05 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:06 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '50' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '47' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:11 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5269/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:08 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '85' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:12 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5270/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Tue, 20 Aug 2013 14:43:15 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '989' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Tue, 20 Aug 2013 14:43:13 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml deleted file mode 100644 index 6231c16..0000000 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/has_many/when_symbol_passed/returns_an_array_of_tasks_and_resolve_associations.yml +++ /dev/null @@ -1,1121 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ - body: - encoding: UTF-8 - string: '{"Name":"Pro60479920"}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:02 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '730' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '231' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997538000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:01 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ - body: - encoding: UTF-8 - string: '{"Name":"story2","Project":{"id":4819}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:58 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '945' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '205' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4820,\r\n \"Name\": \"story2\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 78.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": - 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n - \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n - \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n - \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": - \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:01 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ - body: - encoding: UTF-8 - string: '{"Name":"task","UserStory":{"id":4820}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:04 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '941' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '245' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4821,\r\n \"Name\": \"task\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997539000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 78.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": - null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": - null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n - \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n - \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:02 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ - body: - encoding: UTF-8 - string: '{"Name":"task","UserStory":{"id":4820}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:18:59 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '941' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '257' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4822,\r\n \"Name\": \"task\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997540000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 79.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": - null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": - null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n - \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n - \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:03 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ - body: - encoding: UTF-8 - string: '{"Name":"task","UserStory":{"id":4820}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:05 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '941' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '249' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4823,\r\n \"Name\": \"task\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997541000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 79.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": - null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": - null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n - \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n - \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:04 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ - body: - encoding: UTF-8 - string: '{"Name":"task","UserStory":{"id":4820}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:01 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '941' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '238' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4824,\r\n \"Name\": \"task\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997541000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 80.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": - null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": - null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n - \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n - \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:04 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Tasks/ - body: - encoding: UTF-8 - string: '{"Name":"task","UserStory":{"id":4820}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:07 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '941' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '243' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4825,\r\n \"Name\": \"task\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997542000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 80.5,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n \"Release\": - null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": null,\r\n \"Team\": - null,\r\n \"Priority\": {\r\n \"Id\": 11,\r\n \"Name\": \"-\"\r\n },\r\n - \ \"EntityState\": {\r\n \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n - \ \"UserStory\": {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:05 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4820/Tasks - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:02 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '5702' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '64' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 4821,\r\n \"Name\": - \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376997539000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 78.5,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": - {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n - \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4822,\r\n \"Name\": - \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376997540000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 79.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": - {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n - \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4823,\r\n \"Name\": - \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 79.5,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": - {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n - \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4824,\r\n \"Name\": - \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376997541000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 80.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": - {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n - \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n },\r\n {\r\n \"Id\": 4825,\r\n \"Name\": - \"task\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1376997542000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 80.5,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"EntityType\": - {\r\n \"Id\": 5,\r\n \"Name\": \"Task\"\r\n },\r\n \"Owner\": - {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - {\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 11,\r\n \"Name\": \"-\"\r\n },\r\n \"EntityState\": {\r\n - \ \"Id\": 50,\r\n \"Name\": \"Open\"\r\n },\r\n \"UserStory\": - {\r\n \"Id\": 4820,\r\n \"Name\": \"story2\"\r\n },\r\n - \ \"CustomFields\": []\r\n }\r\n ]\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:06 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:08 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:06 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:03 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:07 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4819 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:09 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '730' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '51' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4819,\r\n \"Name\": \"Pro60479920\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1376997538000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1376997538000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 35.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:07 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:04 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:08 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:10 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '6' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:08 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:05 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:09 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:11 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": - 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n - \ \"Name\": \"UserStory\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:09 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:06 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:10 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:12 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '298' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '15' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n - \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": - false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": - {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": - {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:10 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:07 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:11 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:13 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:11 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/4819/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:08 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '71' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:12 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/4820/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 11:19:15 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '1002' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 11:19:13 GMT -recorded_with: VCR 2.5.0 diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index eb7250d..7fb8df3 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -313,63 +313,58 @@ end describe '#belongs_to' do - context "when symbol passed" do - it 'returns associated project' do - p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save - us = TargetProcess::UserStory.new(name: "story2", - project: { id: p.id } - ).save - - expect(us.project).to be_an_instance_of(TargetProcess::Project) - expect(us.references[:project]).to eq(us.project) - expect(us.project.collections[:user_stories]).to eq([us]) - p.delete - us.delete - end + it 'provide getter for referenced item' do + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id } + ).save + + expect(us.project).to be_an_instance_of(TargetProcess::Project) + expect(us.project).to eq(p) + expect(p.user_stories.first).to eq(us) + p.delete + us.delete end end describe 'has_many' do - context "when symbol passed" do - it 'returns an array of tasks and resolve associations' do - p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save - us = TargetProcess::UserStory.new(name: "story2", - project: { id: p.id } - ).save - 5.times do - TargetProcess::Task.new(name: "task", user_story: { id: us.id }).save - end - tasks = us.tasks - - expect(tasks).to be_an_instance_of(Array) - us.tasks.each do |task| - expect(task).to be_an_instance_of(TargetProcess::Task) - expect(task.references[:user_story]).to eq(us) - end - expect(us.collections[:tasks]).to eq(tasks) - p.delete - us.delete + it 'provides getters for collections with symbol-named class' do + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id } + ).save + tasks = [] + 5.times do + tasks << TargetProcess::Task.new(name: "task", + user_story: { id: us.id } + ).save end - end - context "when hash passed" do - it 'returns an array and resolve associations' do - p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save - us = TargetProcess::UserStory.new(name: "story2", - project: { id: p.id }, - owner: { id: 1 } - ).save - TargetProcess::Assignment.new(assignable: { id: us.id }, - general_user: { id: 1 }, - role: { id: 1} - ).save - au = us.assigned_user - - expect(au).to be_an_instance_of(Array) - expect(au.first).to be_an_instance_of(TargetProcess::GeneralUser) - us.delete - p.delete + expect(us.tasks).to eq(tasks) + us.tasks.each do |task| + expect(task).to be_an_instance_of(TargetProcess::Task) + expect(task.user_story).to eq(us) end + p.delete + us.delete + end + + it 'provides getters for collections with different class' do + p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save + us = TargetProcess::UserStory.new(name: "story2", + project: { id: p.id }, + owner: { id: 1 } + ).save + TargetProcess::Assignment.new(assignable: { id: us.id }, + general_user: { id: 1 }, + role: { id: 1} + ).save + au = us.assigned_user + + expect(au).to be_an_instance_of(Array) + expect(au.first).to be_an_instance_of(TargetProcess::GeneralUser) + us.delete + p.delete end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cffa1b6..738debd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,7 +12,7 @@ unless ENV['TRAVIS'] VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' - c.hook_into :webmock # or :fakeweb + c.hook_into :webmock c.configure_rspec_metadata! end end From b2343fa4f6a07c2ac2670ec2f7aa3cad9218e5a0 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Wed, 21 Aug 2013 15:34:43 +0300 Subject: [PATCH 10/14] add references setters --- lib/target_process/base.rb | 9 +- lib/target_process/collection.rb | 5 + .../provide_getter_for_referenced_items.yml | 1645 +++++++++++++++++ .../provide_setters_for_referenced_items.yml | 1510 +++++++++++++++ spec/lib/target_process/base_spec.rb | 15 +- 5 files changed, 3182 insertions(+), 2 deletions(-) create mode 100644 lib/target_process/collection.rb create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_items.yml create mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_setters_for_referenced_items.yml diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index e52d9c2..806e281 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -42,7 +42,7 @@ def ==(other) end def method_missing(name, *args) - if respond_to?(name) + if respond_to_missing?(name) if name.to_s.match(/=\z/) key = name.to_s.delete('=').to_sym if @attributes[key] == args.first @@ -135,6 +135,13 @@ def belongs_to (name, klass = nil) nil end end + + setter_name = (name.to_s + '=').to_sym + define_method(setter_name) do |val| + if val.class.to_s.demodulize == klass + @changed_attributes.merge!(name => { id: val.id }) + end + end end end diff --git a/lib/target_process/collection.rb b/lib/target_process/collection.rb new file mode 100644 index 0000000..522bb17 --- /dev/null +++ b/lib/target_process/collection.rb @@ -0,0 +1,5 @@ +module TargetProcess + class Collection < Array + + end +end diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_items.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_items.yml new file mode 100644 index 0000000..c4bc618 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_items.yml @@ -0,0 +1,1645 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Pro381650585"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:01 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '406' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087544000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087544000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:06 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":5488}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '269' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5489,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087545000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087545000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:02 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '28' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087544000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087544000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:07 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '29' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087544000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087544000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:03 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:08 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:04 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:09 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:05 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:10 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:11 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488/UserStories + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:06 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '1155' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '92' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5489,\r\n \"Name\": + \"story2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377087545000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377087545000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": + \"UserStory\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n + \ \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n + \ },\r\n \"LastCommentedUser\": null,\r\n \"Project\": {\r\n + \ \"Id\": 5488,\r\n \"Name\": \"Pro381650585\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Nice To Have\"\r\n },\r\n \"EntityState\": + {\r\n \"Id\": 46,\r\n \"Name\": \"Open\"\r\n },\r\n \"Feature\": + null,\r\n \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:12 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:07 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:13 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:13 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:08 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '6' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '28' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087544000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087544000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:14 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:09 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '28' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5488,\r\n \"Name\": \"Pro381650585\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087544000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087544000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:15 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:10 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:18 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:16 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:11 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:19 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:17 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:12 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:20 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '7' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:18 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:13 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:21 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '18' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:14 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:19 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:20 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:15 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:16 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:21 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:22 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:17 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:22 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5488/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:25 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '86' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:23 GMT +- request: + method: delete + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5489/ + body: + encoding: US-ASCII + string: '' + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:18 GMT + Content-Length: + - '0' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '187' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: '' + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:23 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_setters_for_referenced_items.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_setters_for_referenced_items.yml new file mode 100644 index 0000000..104dd99 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_setters_for_referenced_items.yml @@ -0,0 +1,1510 @@ +--- +http_interactions: +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ + body: + encoding: UTF-8 + string: '{"Name":"Pro988274817"}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '215' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5490,\r\n \"Name\": \"Pro988274817\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087562000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087562000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:24 GMT +- request: + method: post + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ + body: + encoding: UTF-8 + string: '{"Name":"story2","Project":{"id":5490}}' + headers: + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:22 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '946' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '140' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5491,\r\n \"Name\": \"story2\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087565000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087565000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": + 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n + \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n + \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n + \ \"Project\": {\r\n \"Id\": 5490,\r\n \"Name\": \"Pro988274817\"\r\n + \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": + \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": + \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:27 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5490 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '30' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5490,\r\n \"Name\": \"Pro988274817\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087562000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087562000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:23 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:28 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:24 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:29 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:25 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:30 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5490/UserStories + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:26 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '1155' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '36' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5491,\r\n \"Name\": + \"story2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n + \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377087565000-0500)\\/\",\r\n + \ \"ModifyDate\": \"\\/Date(1377087565000-0500)\\/\",\r\n \"LastCommentDate\": + null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.0,\r\n \"Effort\": + 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n + \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": + 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": + \"UserStory\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n + \ \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n + \ },\r\n \"LastCommentedUser\": null,\r\n \"Project\": {\r\n + \ \"Id\": 5490,\r\n \"Name\": \"Pro988274817\"\r\n },\r\n + \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": + null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": + 5,\r\n \"Name\": \"Nice To Have\"\r\n },\r\n \"EntityState\": + {\r\n \"Id\": 46,\r\n \"Name\": \"Open\"\r\n },\r\n \"Feature\": + null,\r\n \"CustomFields\": []\r\n }\r\n ]\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:31 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:27 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:32 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:28 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:33 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5490 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '29' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5490,\r\n \"Name\": \"Pro988274817\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087562000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087562000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5490 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:29 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '731' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '28' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5490,\r\n \"Name\": \"Pro988274817\",\r\n \"Description\": + null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": + \"\\/Date(1377087562000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377087562000-0500)\\/\",\r\n + \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": + 41.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": + \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": + {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n + \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": + null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": + \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:34 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:30 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '88' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": false\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:35 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:38 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:31 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '334' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": + \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": + \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": + \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": + true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:36 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:32 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '8' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:37 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:40 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:38 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:33 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '3' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": + 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n + \ \"Name\": \"UserStory\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:39 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:42 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '4' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:40 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:35 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '298' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '5' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n + \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": + false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": + {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": + {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:43 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:41 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:36 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '89' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": + true,\r\n \"IsSearchable\": true\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:44 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:42 GMT +- request: + method: get + uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 + body: + encoding: UTF-8 + string: format=json + headers: {} + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.4.1 + Date: + - Wed, 21 Aug 2013 12:19:37 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '149' + Connection: + - keep-alive + Keep-Alive: + - timeout=60 + Cache-Control: + - no-cache, no-store, must-revalidate + Pragma: + - no-cache + Expires: + - '-1' + X-Aspnet-Version: + - 4.0.30319 + X-Aspnetmvc-Version: + - '3.0' + X-Stopwatch: + - '2' + X-Ua-Compatible: + - IE=edge + body: + encoding: UTF-8 + string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n + \ \"Description\": \"Scrum is an iterative, incremental methodology for project + management.\"\r\n}" + http_version: + recorded_at: Wed, 21 Aug 2013 12:19:43 GMT +recorded_with: VCR 2.5.0 diff --git a/spec/lib/target_process/base_spec.rb b/spec/lib/target_process/base_spec.rb index 7fb8df3..459c703 100644 --- a/spec/lib/target_process/base_spec.rb +++ b/spec/lib/target_process/base_spec.rb @@ -313,7 +313,7 @@ end describe '#belongs_to' do - it 'provide getter for referenced item' do + it 'provide getter for referenced items' do p = TargetProcess::Project.new(name: "Pro#{rand(999_999_999)}").save us = TargetProcess::UserStory.new(name: "story2", project: { id: p.id } @@ -325,6 +325,19 @@ p.delete us.delete end + + it 'provide setters for referenced items' do + project_name = "Pro#{rand(999_999_999)}" + p = TargetProcess::Project.new(name: project_name).save + us = TargetProcess::UserStory.new(name: "story2", project: nil) + + us.project = p + + expect(us.changed_attributes[:project]).to eq({id: p.id}) + us.save + expect(us.project).to eq(p) + expect(p.user_stories).to include(us) + end end describe 'has_many' do From 86489a7408d2931ecb9009ec033e823b26dcc6c9 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Wed, 21 Aug 2013 18:48:31 +0300 Subject: [PATCH 11/14] rolback behind has_many setter --- lib/target_process/base.rb | 15 +- lib/target_process/collection.rb | 5 - .../provide_getter_for_referenced_item.yml | 1645 ----------------- 3 files changed, 6 insertions(+), 1659 deletions(-) delete mode 100644 lib/target_process/collection.rb delete mode 100644 spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 806e281..989611f 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -115,11 +115,11 @@ def has_many(name, klass = nil) klass ||= name.to_s.singularize.camelize define_method(name) do path = entity_path + name.to_s.camelize - TargetProcess.client.get(path)[:items].collect! do |hash| - result = "TargetProcess::#{klass}".constantize.new - result.attributes.merge!(hash) - result - end + collection = TargetProcess.client.get(path)[:items].collect do |hash| + item = "TargetProcess::#{klass}".constantize.new + item.attributes.merge!(hash) + item + end end end @@ -127,10 +127,7 @@ def belongs_to (name, klass = nil) klass ||= name.to_s.camelize define_method(name) do if @attributes[name] - id = @attributes[name][:id] - self_klass = self.class.to_s.demodulize.pluralize.underscore.to_sym - reference = "TargetProcess::#{klass}".constantize.find(id) - reference + "TargetProcess::#{klass}".constantize.find(@attributes[name][:id]) else nil end diff --git a/lib/target_process/collection.rb b/lib/target_process/collection.rb deleted file mode 100644 index 522bb17..0000000 --- a/lib/target_process/collection.rb +++ /dev/null @@ -1,5 +0,0 @@ -module TargetProcess - class Collection < Array - - end -end diff --git a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml b/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml deleted file mode 100644 index 11f8279..0000000 --- a/spec/fixtures/vcr_cassettes/TargetProcess_Base/_belongs_to/provide_getter_for_referenced_item.yml +++ /dev/null @@ -1,1645 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/ - body: - encoding: UTF-8 - string: '{"Name":"Pro655746553"}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:23 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '244' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:21 GMT -- request: - method: post - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/ - body: - encoding: UTF-8 - string: '{"Name":"story2","Project":{"id":5267}}' - headers: - Content-Type: - - application/json - response: - status: - code: 201 - message: Created - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:18 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '946' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '197' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5268,\r\n \"Name\": \"story2\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009559000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 85.0,\r\n \"Effort\": 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": - 0.0000,\r\n \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": - 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n - \ },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n - \ \"LastName\": \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n - \ \"Project\": {\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\"\r\n - \ },\r\n \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": 5,\r\n \"Name\": - \"Nice To Have\"\r\n },\r\n \"EntityState\": {\r\n \"Id\": 46,\r\n \"Name\": - \"Open\"\r\n },\r\n \"Feature\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:21 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:24 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '47' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:22 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:19 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '53' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:23 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:25 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '5' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:23 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:20 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '10' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:24 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:26 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '8' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:24 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:21 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '8' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:25 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:27 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '5' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:25 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:22 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:26 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267/UserStories - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:28 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '1155' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '124' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Items\": [\r\n {\r\n \"Id\": 5268,\r\n \"Name\": - \"story2\",\r\n \"Description\": null,\r\n \"StartDate\": null,\r\n - \ \"EndDate\": null,\r\n \"CreateDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n - \ \"ModifyDate\": \"\\/Date(1377009559000-0500)\\/\",\r\n \"LastCommentDate\": - null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": 85.0,\r\n \"Effort\": - 0.0000,\r\n \"EffortCompleted\": 0.0000,\r\n \"EffortToDo\": 0.0000,\r\n - \ \"TimeSpent\": 0.0000,\r\n \"TimeRemain\": 0.0000,\r\n \"InitialEstimate\": - 0.0000,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n \"Name\": - \"UserStory\"\r\n },\r\n \"Owner\": {\r\n \"Id\": 1,\r\n - \ \"FirstName\": \"Administrator\",\r\n \"LastName\": \"Administrator\"\r\n - \ },\r\n \"LastCommentedUser\": null,\r\n \"Project\": {\r\n - \ \"Id\": 5267,\r\n \"Name\": \"Pro655746553\"\r\n },\r\n - \ \"Release\": null,\r\n \"Iteration\": null,\r\n \"TeamIteration\": - null,\r\n \"Team\": null,\r\n \"Priority\": {\r\n \"Id\": - 5,\r\n \"Name\": \"Nice To Have\"\r\n },\r\n \"EntityState\": - {\r\n \"Id\": 46,\r\n \"Name\": \"Open\"\r\n },\r\n \"Feature\": - null,\r\n \"CustomFields\": []\r\n }\r\n ]\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:26 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:23 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:27 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:29 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:27 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:24 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:28 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:31 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:29 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:26 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '49' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:29 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:32 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '731' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '49' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5267,\r\n \"Name\": \"Pro655746553\",\r\n \"Description\": - null,\r\n \"StartDate\": null,\r\n \"EndDate\": null,\r\n \"CreateDate\": - \"\\/Date(1377009558000-0500)\\/\",\r\n \"ModifyDate\": \"\\/Date(1377009558000-0500)\\/\",\r\n - \ \"LastCommentDate\": null,\r\n \"Tags\": \"\",\r\n \"NumericPriority\": - 40.0,\r\n \"IsActive\": true,\r\n \"IsProduct\": false,\r\n \"Abbreviation\": - \"PRO\",\r\n \"MailReplyAddress\": null,\r\n \"Color\": null,\r\n \"EntityType\": - {\r\n \"Id\": 1,\r\n \"Name\": \"Project\"\r\n },\r\n \"Owner\": {\r\n - \ \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\"\r\n },\r\n \"LastCommentedUser\": null,\r\n \"Project\": - null,\r\n \"Program\": null,\r\n \"Process\": {\r\n \"Id\": 3,\r\n \"Name\": - \"Scrum\"\r\n },\r\n \"Company\": null,\r\n \"CustomFields\": []\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:30 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:27 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '9' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:31 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:33 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '88' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"Name\": \"Project\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": false\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:31 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:28 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:32 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/GeneralUsers/1 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:34 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '334' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '6' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 1,\r\n \"FirstName\": \"Administrator\",\r\n \"LastName\": - \"Administrator\",\r\n \"Email\": \"Dzmitry_Bradnitski@gmail.com\",\r\n \"Login\": - \"admin\",\r\n \"CreateDate\": \"\\/Date(1376197595627-0500)\\/\",\r\n \"ModifyDate\": - \"\\/Date(1376218457000-0500)\\/\",\r\n \"DeleteDate\": null,\r\n \"IsActive\": - true,\r\n \"IsAdministrator\": true,\r\n \"Kind\": \"User\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:32 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:29 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:33 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:35 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:33 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:30 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '7' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": - 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n - \ \"Name\": \"UserStory\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:34 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Priorities/5 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:36 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '6' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 5,\r\n \"Name\": \"Nice To Have\",\r\n \"Importance\": - 5,\r\n \"IsDefault\": false,\r\n \"EntityType\": {\r\n \"Id\": 4,\r\n - \ \"Name\": \"UserStory\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:34 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:31 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:35 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:37 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:35 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:32 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '298' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '14' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n - \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": - false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": - {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": - {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:36 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityStates/46 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:38 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '298' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '10' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 46,\r\n \"Name\": \"Open\",\r\n \"IsInitial\": true,\r\n - \ \"IsFinal\": false,\r\n \"IsPlanned\": false,\r\n \"IsCommentRequired\": - false,\r\n \"NumericPriority\": 46.0,\r\n \"Role\": null,\r\n \"EntityType\": - {\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\"\r\n },\r\n \"Process\": - {\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\"\r\n }\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:36 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:33 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:37 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/EntityTypes/4 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:39 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '89' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 4,\r\n \"Name\": \"UserStory\",\r\n \"IsExtendable\": - true,\r\n \"IsSearchable\": true\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:37 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:34 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '4' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:38 GMT -- request: - method: get - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Processes/3 - body: - encoding: UTF-8 - string: format=json - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:40 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '149' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '6' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: "{\r\n \"Id\": 3,\r\n \"Name\": \"Scrum\",\r\n \"IsDefault\": true,\r\n - \ \"Description\": \"Scrum is an iterative, incremental methodology for project - management.\"\r\n}" - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:38 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/Projects/5267/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:35 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '81' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:39 GMT -- request: - method: delete - uri: http://admin:admin@tpruby.tpondemand.com/api/v1/UserStories/5268/ - body: - encoding: US-ASCII - string: '' - headers: {} - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx/1.4.1 - Date: - - Tue, 20 Aug 2013 14:39:41 GMT - Content-Length: - - '0' - Connection: - - keep-alive - Keep-Alive: - - timeout=60 - Cache-Control: - - no-cache, no-store, must-revalidate - Pragma: - - no-cache - Expires: - - '-1' - X-Aspnet-Version: - - 4.0.30319 - X-Aspnetmvc-Version: - - '3.0' - X-Stopwatch: - - '210' - X-Ua-Compatible: - - IE=edge - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Tue, 20 Aug 2013 14:39:39 GMT -recorded_with: VCR 2.5.0 From fb72bc282eb90cf28a30c4170abf7516f342c67a Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Thu, 22 Aug 2013 10:43:52 +0300 Subject: [PATCH 12/14] add todo list --- TODO | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..1fad8e4 --- /dev/null +++ b/TODO @@ -0,0 +1,15 @@ +1 Setters for has many associations: + # project.tasks << new_nask + + Impediment: has_many association doesn't know how current entity named in collections. + For example: GeneralUser has_many Assignables, but Assignable doesn't have any + GeneralUser - Assignable belongs to owner. + +2 (Need to discuss) belongs_to associations setters works fine when called on entity: + # task.owner = general_user + # task.save + But we still can not pass entity inside #new: + # task = TargetProcess::Task.new(name: "aaa", project: tp_project_instance) + # task.save #=> Error + +3 Update README From bd4fdd29bccdc20a63ceff27a5823645ddea1f95 Mon Sep 17 00:00:00 2001 From: Lutsiys Alexander Date: Thu, 22 Aug 2013 10:46:24 +0300 Subject: [PATCH 13/14] Update TODO --- TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO b/TODO index 1fad8e4..88b12af 100644 --- a/TODO +++ b/TODO @@ -3,7 +3,7 @@ Impediment: has_many association doesn't know how current entity named in collections. For example: GeneralUser has_many Assignables, but Assignable doesn't have any - GeneralUser - Assignable belongs to owner. + GeneralUser directly - Assignable belongs to GeneralUser as owner. 2 (Need to discuss) belongs_to associations setters works fine when called on entity: # task.owner = general_user From 08f5d6aeebaf5755b2a92d3941a46b1a89e57d91 Mon Sep 17 00:00:00 2001 From: kamrad117 Date: Fri, 23 Aug 2013 11:16:47 +0300 Subject: [PATCH 14/14] base class --- lib/target_process/base.rb | 207 +++++++++--------- lib/target_process/entities/assignable.rb | 3 +- lib/target_process/entities/assignment.rb | 3 +- lib/target_process/entities/attachment.rb | 3 +- lib/target_process/entities/bug.rb | 3 +- lib/target_process/entities/bug_history.rb | 3 +- lib/target_process/entities/build.rb | 3 +- lib/target_process/entities/comment.rb | 3 +- lib/target_process/entities/company.rb | 3 +- .../entities/custom_activity.rb | 3 +- lib/target_process/entities/entity_state.rb | 3 +- lib/target_process/entities/entity_type.rb | 3 +- lib/target_process/entities/feature.rb | 3 +- .../entities/feature_history.rb | 3 +- lib/target_process/entities/general.rb | 3 +- lib/target_process/entities/general_user.rb | 3 +- lib/target_process/entities/impediment.rb | 3 +- .../entities/impediment_history.rb | 3 +- lib/target_process/entities/iteration.rb | 3 +- lib/target_process/entities/message.rb | 3 +- lib/target_process/entities/message_uid.rb | 3 +- lib/target_process/entities/milestone.rb | 3 +- lib/target_process/entities/practice.rb | 3 +- lib/target_process/entities/priority.rb | 3 +- lib/target_process/entities/process.rb | 3 +- lib/target_process/entities/program.rb | 3 +- lib/target_process/entities/project.rb | 3 +- lib/target_process/entities/project_member.rb | 3 +- lib/target_process/entities/relation.rb | 3 +- lib/target_process/entities/relation_type.rb | 3 +- lib/target_process/entities/release.rb | 3 +- lib/target_process/entities/request.rb | 3 +- .../entities/request_history.rb | 3 +- lib/target_process/entities/request_type.rb | 3 +- lib/target_process/entities/requester.rb | 3 +- lib/target_process/entities/revision.rb | 3 +- lib/target_process/entities/revision_file.rb | 3 +- lib/target_process/entities/role.rb | 3 +- lib/target_process/entities/role_effort.rb | 3 +- lib/target_process/entities/severity.rb | 3 +- lib/target_process/entities/tag.rb | 3 +- lib/target_process/entities/task.rb | 3 +- lib/target_process/entities/task_history.rb | 3 +- lib/target_process/entities/team.rb | 8 +- lib/target_process/entities/team_iteration.rb | 4 +- lib/target_process/entities/team_member.rb | 3 +- lib/target_process/entities/team_project.rb | 3 +- lib/target_process/entities/test_case.rb | 3 +- lib/target_process/entities/test_case_run.rb | 3 +- lib/target_process/entities/test_plan.rb | 3 +- lib/target_process/entities/test_plan_run.rb | 3 +- lib/target_process/entities/testplan.rb | 4 +- lib/target_process/entities/time.rb | 3 +- lib/target_process/entities/user.rb | 3 +- lib/target_process/entities/user_story.rb | 3 +- .../entities/user_story_history.rb | 3 +- 56 files changed, 159 insertions(+), 220 deletions(-) diff --git a/lib/target_process/base.rb b/lib/target_process/base.rb index 989611f..0cd05c4 100644 --- a/lib/target_process/base.rb +++ b/lib/target_process/base.rb @@ -1,146 +1,135 @@ require 'active_support/inflector' module TargetProcess - module Base - - def self.included(base) - base.send(:include, InstanceMethods) - base.extend(ClassMethods) - end - + class Base attr_reader :attributes, :changed_attributes - module InstanceMethods - def initialize(hash = {}) - @changed_attributes = hash - @attributes = {} - end + def initialize(hash = {}) + @changed_attributes = hash + @attributes = {} + end - def delete - path = entity_path - resp = TargetProcess.client.delete(path) - true if resp.code == '200' - end + def delete + resp = TargetProcess.client.delete(entity_path) + resp.code == '200' ? true : false + end - def save - path = self.class.collection_path - @changed_attributes.merge!(id: @attributes[:id]) if @attributes[:id] - resp = TargetProcess.client.post(path, @changed_attributes) - @changed_attributes = {} - @attributes.merge!(resp) - self - end + def save + path = self.class.collection_path + @changed_attributes.merge!(id: @attributes[:id]) if @attributes[:id] + resp = TargetProcess.client.post(path, @changed_attributes) + @changed_attributes = {} + @attributes.merge!(resp) + self + end - def ==(other) - if self.class == other.class && all_attrs - other.all_attrs == [] - (all_attrs | other.all_attrs).all? do |key| - send(key) == other.send(key) - end - else - false + def ==(other) + if self.class == other.class && all_attrs - other.all_attrs == [] + (all_attrs | other.all_attrs).all? do |key| + send(key) == other.send(key) end + else + false end + end - def method_missing(name, *args) - if respond_to_missing?(name) - if name.to_s.match(/=\z/) - key = name.to_s.delete('=').to_sym - if @attributes[key] == args.first - @changed_attributes.delete(key) - else - @changed_attributes[key] = args.first - end + def method_missing(name, *args) + if respond_to_missing?(name) + if name.to_s.match(/=\z/) + key = name.to_s.delete('=').to_sym + if @attributes[key] == args.first + @changed_attributes.delete(key) else - if @changed_attributes.has_key?(name) - @changed_attributes[name] - else - @attributes[name] - end + @changed_attributes[key] = args.first end else - super + if @changed_attributes.has_key?(name) + @changed_attributes[name] + else + @attributes[name] + end end + else + super end + end - def respond_to_missing?(name, include_private = false) - if name.to_s.match(/\A[a-z_]+\z/) && all_attrs.include?(name) - true - elsif name.to_s.match(/\A[a-z_]+=\z/) && name != :id= - true - else - super - end + def respond_to_missing?(name, include_private = false) + if name.to_s.match(/\A[a-z_]+\z/) && all_attrs.include?(name) + true + elsif name.to_s.match(/\A[a-z_]+=\z/) && name != :id= + true + else + super end + end - def entity_path - self.class.collection_path + @attributes[:id].to_s + '/' - end + def entity_path + self.class.collection_path + @attributes[:id].to_s + '/' + end - def all_attrs - @attributes.keys | @changed_attributes.keys - end + def all_attrs + @attributes.keys | @changed_attributes.keys end - module ClassMethods - def where(params_str, options = {}) - options.merge!(where: params_str) - all(options) - end + def self.where(params_str, options = {}) + options.merge!(where: params_str) + all(options) + end - def all(options = {}) - path = collection_path - TargetProcess.client.get(path, options)[:items].collect! do |hash| - result = new - result.attributes.merge!(hash) - result - end + def self.all(options = {}) + path = collection_path + TargetProcess.client.get(path, options)[:items].collect! do |hash| + entity = new + entity.attributes.merge!(hash) + entity end + end - def find(id, options = {}) - path = collection_path + id.to_s - result = new - result.attributes.merge!(TargetProcess.client.get(path, options)) - result - end + def self.find(id, options = {}) + path = collection_path + id.to_s + entity = new + entity.attributes.merge!(TargetProcess.client.get(path, options)) + entity + end - def collection_path - to_s.demodulize.pluralize + '/' - end + def self.collection_path + to_s.demodulize.pluralize + '/' + end - def meta - TargetProcess.client.get(collection_path + '/meta') - end + def self.meta + TargetProcess.client.get(collection_path + '/meta') + end - def has_many(name, klass = nil) - klass ||= name.to_s.singularize.camelize - define_method(name) do - path = entity_path + name.to_s.camelize - collection = TargetProcess.client.get(path)[:items].collect do |hash| - item = "TargetProcess::#{klass}".constantize.new - item.attributes.merge!(hash) - item - end - end + def self.has_many(name, klass = nil) + klass ||= name.to_s.singularize.camelize + define_method(name) do + path = entity_path + name.to_s.camelize + collection = TargetProcess.client.get(path)[:items].collect do |hash| + entity = "TargetProcess::#{klass}".constantize.new + entity.attributes.merge!(hash) + entity + end end + end - def belongs_to (name, klass = nil) - klass ||= name.to_s.camelize - define_method(name) do - if @attributes[name] - "TargetProcess::#{klass}".constantize.find(@attributes[name][:id]) - else - nil - end + def self.belongs_to (name, klass = nil) + klass ||= name.to_s.camelize + define_method(name) do + if @attributes[name] + "TargetProcess::#{klass}".constantize.find(@attributes[name][:id]) + else + nil end + end - setter_name = (name.to_s + '=').to_sym - define_method(setter_name) do |val| - if val.class.to_s.demodulize == klass - @changed_attributes.merge!(name => { id: val.id }) - end + setter_name = (name.to_s + '=').to_sym + define_method(setter_name) do |val| + if val.class.to_s.demodulize == klass + @changed_attributes.merge!(name => { id: val.id }) end end - end + end end diff --git a/lib/target_process/entities/assignable.rb b/lib/target_process/entities/assignable.rb index 49f629f..127c116 100644 --- a/lib/target_process/entities/assignable.rb +++ b/lib/target_process/entities/assignable.rb @@ -1,6 +1,5 @@ module TargetProcess - class Assignable - include Base + class Assignable < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/assignment.rb b/lib/target_process/entities/assignment.rb index 4041a90..2e89b9b 100644 --- a/lib/target_process/entities/assignment.rb +++ b/lib/target_process/entities/assignment.rb @@ -1,6 +1,5 @@ module TargetProcess - class Assignment - include Base + class Assignment < Base belongs_to :assignable belongs_to :general_user, 'User' belongs_to :role diff --git a/lib/target_process/entities/attachment.rb b/lib/target_process/entities/attachment.rb index 02806ad..74c6311 100644 --- a/lib/target_process/entities/attachment.rb +++ b/lib/target_process/entities/attachment.rb @@ -1,6 +1,5 @@ module TargetProcess - class Attachment - include Base + class Attachment < Base belongs_to :owner, 'GeneralUser' belongs_to :general belongs_to :message diff --git a/lib/target_process/entities/bug.rb b/lib/target_process/entities/bug.rb index a4295ee..52dfb10 100644 --- a/lib/target_process/entities/bug.rb +++ b/lib/target_process/entities/bug.rb @@ -1,6 +1,5 @@ module TargetProcess - class Bug - include Base + class Bug < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/bug_history.rb b/lib/target_process/entities/bug_history.rb index 23bc89e..171ca9e 100644 --- a/lib/target_process/entities/bug_history.rb +++ b/lib/target_process/entities/bug_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class BugHistory - include Base + class BugHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :bug diff --git a/lib/target_process/entities/build.rb b/lib/target_process/entities/build.rb index 64bbcd1..48ea570 100644 --- a/lib/target_process/entities/build.rb +++ b/lib/target_process/entities/build.rb @@ -1,6 +1,5 @@ module TargetProcess - class Build - include Base + class Build < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/comment.rb b/lib/target_process/entities/comment.rb index 4c248bf..d0a7b68 100644 --- a/lib/target_process/entities/comment.rb +++ b/lib/target_process/entities/comment.rb @@ -1,6 +1,5 @@ module TargetProcess - class Comment - include Base + class Comment < Base belongs_to :general belongs_to :owner, 'GeneralUser' end diff --git a/lib/target_process/entities/company.rb b/lib/target_process/entities/company.rb index 72e3650..5b99384 100644 --- a/lib/target_process/entities/company.rb +++ b/lib/target_process/entities/company.rb @@ -1,6 +1,5 @@ module TargetProcess - class Company - include Base + class Company < Base has_many :projects end end diff --git a/lib/target_process/entities/custom_activity.rb b/lib/target_process/entities/custom_activity.rb index 46428fe..c7669a7 100644 --- a/lib/target_process/entities/custom_activity.rb +++ b/lib/target_process/entities/custom_activity.rb @@ -1,6 +1,5 @@ module TargetProcess - class CustomActivity - include Base + class CustomActivity < Base has_many :times belongs_to :project belongs_to :user diff --git a/lib/target_process/entities/entity_state.rb b/lib/target_process/entities/entity_state.rb index 7baf3e4..ac1e2b1 100644 --- a/lib/target_process/entities/entity_state.rb +++ b/lib/target_process/entities/entity_state.rb @@ -1,6 +1,5 @@ module TargetProcess - class EntityState - include Base + class EntityState < Base has_many :next_states, 'EntityState' has_many :previous_states, 'EntityState' belongs_to :role diff --git a/lib/target_process/entities/entity_type.rb b/lib/target_process/entities/entity_type.rb index bdcc941..10b724d 100644 --- a/lib/target_process/entities/entity_type.rb +++ b/lib/target_process/entities/entity_type.rb @@ -1,6 +1,5 @@ module TargetProcess - class EntityType - include Base + class EntityType < Base has_many :entity_states end end diff --git a/lib/target_process/entities/feature.rb b/lib/target_process/entities/feature.rb index d0cd634..518a51e 100644 --- a/lib/target_process/entities/feature.rb +++ b/lib/target_process/entities/feature.rb @@ -1,6 +1,5 @@ module TargetProcess - class Feature - include Base + class Feature < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/feature_history.rb b/lib/target_process/entities/feature_history.rb index a5f6c55..178b41f 100644 --- a/lib/target_process/entities/feature_history.rb +++ b/lib/target_process/entities/feature_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class FeatureHistory - include Base + class FeatureHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :feature diff --git a/lib/target_process/entities/general.rb b/lib/target_process/entities/general.rb index 0491408..36c0dcd 100644 --- a/lib/target_process/entities/general.rb +++ b/lib/target_process/entities/general.rb @@ -1,6 +1,5 @@ module TargetProcess - class General - include Base + class General < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/general_user.rb b/lib/target_process/entities/general_user.rb index 6faf350..2310c31 100644 --- a/lib/target_process/entities/general_user.rb +++ b/lib/target_process/entities/general_user.rb @@ -1,6 +1,5 @@ module TargetProcess - class GeneralUser - include Base + class GeneralUser < Base has_many :assignables has_many :comments has_many :requests diff --git a/lib/target_process/entities/impediment.rb b/lib/target_process/entities/impediment.rb index 1a68494..65f27fe 100644 --- a/lib/target_process/entities/impediment.rb +++ b/lib/target_process/entities/impediment.rb @@ -1,6 +1,5 @@ module TargetProcess - class Impediment - include Base + class Impediment < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/impediment_history.rb b/lib/target_process/entities/impediment_history.rb index d6c5e0a..ac94ee3 100644 --- a/lib/target_process/entities/impediment_history.rb +++ b/lib/target_process/entities/impediment_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class ImpedimentHistory - include Base + class ImpedimentHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :impediment diff --git a/lib/target_process/entities/iteration.rb b/lib/target_process/entities/iteration.rb index 9e6f7b6..4d2072f 100644 --- a/lib/target_process/entities/iteration.rb +++ b/lib/target_process/entities/iteration.rb @@ -1,6 +1,5 @@ module TargetProcess - class Iteration - include Base + class Iteration < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/message.rb b/lib/target_process/entities/message.rb index fcc33d2..e08c9e3 100644 --- a/lib/target_process/entities/message.rb +++ b/lib/target_process/entities/message.rb @@ -1,6 +1,5 @@ module TargetProcess - class Message - include Base + class Message < Base has_many :generals has_many :attachments belongs_to :from, 'GeneralUser' diff --git a/lib/target_process/entities/message_uid.rb b/lib/target_process/entities/message_uid.rb index 9c06a27..1d8f87a 100644 --- a/lib/target_process/entities/message_uid.rb +++ b/lib/target_process/entities/message_uid.rb @@ -1,5 +1,4 @@ module TargetProcess - class MessageUid - include Base + class MessageUid < Base end end diff --git a/lib/target_process/entities/milestone.rb b/lib/target_process/entities/milestone.rb index 39e3c18..b03d115 100644 --- a/lib/target_process/entities/milestone.rb +++ b/lib/target_process/entities/milestone.rb @@ -1,6 +1,5 @@ module TargetProcess - class Milestone - include Base + class Milestone < Base has_many :projects belongs_to :owner, 'User' end diff --git a/lib/target_process/entities/practice.rb b/lib/target_process/entities/practice.rb index 083f3b7..2b98495 100644 --- a/lib/target_process/entities/practice.rb +++ b/lib/target_process/entities/practice.rb @@ -1,6 +1,5 @@ module TargetProcess - class Practice - include Base + class Practice < Base has_many :processes end end diff --git a/lib/target_process/entities/priority.rb b/lib/target_process/entities/priority.rb index 2a289c3..131ab78 100644 --- a/lib/target_process/entities/priority.rb +++ b/lib/target_process/entities/priority.rb @@ -1,6 +1,5 @@ module TargetProcess - class Priority - include Base + class Priority < Base belongs_to :entity_type end end diff --git a/lib/target_process/entities/process.rb b/lib/target_process/entities/process.rb index 79eb40f..48031ad 100644 --- a/lib/target_process/entities/process.rb +++ b/lib/target_process/entities/process.rb @@ -1,6 +1,5 @@ module TargetProcess - class Process - include Base + class Process < Base has_many :entity_states has_many :projects has_many :practices diff --git a/lib/target_process/entities/program.rb b/lib/target_process/entities/program.rb index a8df114..f8815de 100644 --- a/lib/target_process/entities/program.rb +++ b/lib/target_process/entities/program.rb @@ -1,6 +1,5 @@ module TargetProcess - class Program - include Base + class Program < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/project.rb b/lib/target_process/entities/project.rb index 01f0626..d56183e 100644 --- a/lib/target_process/entities/project.rb +++ b/lib/target_process/entities/project.rb @@ -1,6 +1,5 @@ module TargetProcess - class Project - include Base + class Project < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/project_member.rb b/lib/target_process/entities/project_member.rb index deb269d..f30086d 100644 --- a/lib/target_process/entities/project_member.rb +++ b/lib/target_process/entities/project_member.rb @@ -1,6 +1,5 @@ module TargetProcess - class ProjectMember - include Base + class ProjectMember < Base belongs_to :project belongs_to :user belongs_to :role diff --git a/lib/target_process/entities/relation.rb b/lib/target_process/entities/relation.rb index 7c68cae..22ff5cb 100644 --- a/lib/target_process/entities/relation.rb +++ b/lib/target_process/entities/relation.rb @@ -1,6 +1,5 @@ module TargetProcess - class Relation - include Base + class Relation < Base belongs_to :master, 'General' belongs_to :slave, 'General' belongs_to :relation_type diff --git a/lib/target_process/entities/relation_type.rb b/lib/target_process/entities/relation_type.rb index 9e82659..6e281b4 100644 --- a/lib/target_process/entities/relation_type.rb +++ b/lib/target_process/entities/relation_type.rb @@ -1,6 +1,5 @@ module TargetProcess - class RelationType - include Base + class RelationType < Base has_many :relations end end diff --git a/lib/target_process/entities/release.rb b/lib/target_process/entities/release.rb index 0857092..11f0d9e 100644 --- a/lib/target_process/entities/release.rb +++ b/lib/target_process/entities/release.rb @@ -1,6 +1,5 @@ module TargetProcess - class Release - include Base + class Release < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/request.rb b/lib/target_process/entities/request.rb index f86256a..38bb668 100644 --- a/lib/target_process/entities/request.rb +++ b/lib/target_process/entities/request.rb @@ -1,6 +1,5 @@ module TargetProcess - class Request - include Base + class Request < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/request_history.rb b/lib/target_process/entities/request_history.rb index 5a9aa43..9ab4399 100644 --- a/lib/target_process/entities/request_history.rb +++ b/lib/target_process/entities/request_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class RequestHistory - include Base + class RequestHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :request diff --git a/lib/target_process/entities/request_type.rb b/lib/target_process/entities/request_type.rb index 1979178..efd76fe 100644 --- a/lib/target_process/entities/request_type.rb +++ b/lib/target_process/entities/request_type.rb @@ -1,6 +1,5 @@ module TargetProcess - class RequestType - include Base + class RequestType < Base has_many :requests end end diff --git a/lib/target_process/entities/requester.rb b/lib/target_process/entities/requester.rb index 401ff75..d0c9590 100644 --- a/lib/target_process/entities/requester.rb +++ b/lib/target_process/entities/requester.rb @@ -1,6 +1,5 @@ module TargetProcess - class Requester - include Base + class Requester < Base has_many :assignables has_many :comments has_many :requests diff --git a/lib/target_process/entities/revision.rb b/lib/target_process/entities/revision.rb index cca3247..b6b263f 100644 --- a/lib/target_process/entities/revision.rb +++ b/lib/target_process/entities/revision.rb @@ -1,6 +1,5 @@ module TargetProcess - class Revision - include Base + class Revision < Base has_many :revision_files has_many :assignables belongs_to :project diff --git a/lib/target_process/entities/revision_file.rb b/lib/target_process/entities/revision_file.rb index dda9dd3..81dda6c 100644 --- a/lib/target_process/entities/revision_file.rb +++ b/lib/target_process/entities/revision_file.rb @@ -1,6 +1,5 @@ module TargetProcess - class RevisionFile - include Base + class RevisionFile < Base belongs_to :revision end end diff --git a/lib/target_process/entities/role.rb b/lib/target_process/entities/role.rb index 1b68a07..e80c467 100644 --- a/lib/target_process/entities/role.rb +++ b/lib/target_process/entities/role.rb @@ -1,6 +1,5 @@ module TargetProcess - class Role - include Base + class Role < Base has_many :role_efforts has_many :entity_states end diff --git a/lib/target_process/entities/role_effort.rb b/lib/target_process/entities/role_effort.rb index 6b0a7c3..25c1597 100644 --- a/lib/target_process/entities/role_effort.rb +++ b/lib/target_process/entities/role_effort.rb @@ -1,6 +1,5 @@ module TargetProcess - class RoleEffort - include Base + class RoleEffort < Base belongs_to :assignable belongs_to :role end diff --git a/lib/target_process/entities/severity.rb b/lib/target_process/entities/severity.rb index a96bd30..64f6a5c 100644 --- a/lib/target_process/entities/severity.rb +++ b/lib/target_process/entities/severity.rb @@ -1,5 +1,4 @@ module TargetProcess - class Severity - include Base + class Severity < Base end end diff --git a/lib/target_process/entities/tag.rb b/lib/target_process/entities/tag.rb index db379d7..af88906 100644 --- a/lib/target_process/entities/tag.rb +++ b/lib/target_process/entities/tag.rb @@ -1,6 +1,5 @@ module TargetProcess - class Tag - include Base + class Tag < Base has_many :generals end end diff --git a/lib/target_process/entities/task.rb b/lib/target_process/entities/task.rb index 2948ee9..e786b66 100644 --- a/lib/target_process/entities/task.rb +++ b/lib/target_process/entities/task.rb @@ -1,6 +1,5 @@ module TargetProcess - class Task - include Base + class Task < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/task_history.rb b/lib/target_process/entities/task_history.rb index 59cce46..eee53ff 100644 --- a/lib/target_process/entities/task_history.rb +++ b/lib/target_process/entities/task_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class TaskHistory - include Base + class TaskHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :task diff --git a/lib/target_process/entities/team.rb b/lib/target_process/entities/team.rb index f5e15f8..69d9c00 100644 --- a/lib/target_process/entities/team.rb +++ b/lib/target_process/entities/team.rb @@ -1,6 +1,5 @@ module TargetProcess - class Team - include Base + class Team < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -10,6 +9,11 @@ class Team has_many :team_members has_many :team_projects has_many :assignables + has_many :user_stories + has_many :tasks + has_many :bugs + has_many :requests + has_many :features has_many :team_iterations belongs_to :entity_type belongs_to :owner, 'GeneralUser' diff --git a/lib/target_process/entities/team_iteration.rb b/lib/target_process/entities/team_iteration.rb index 1c088dd..6a22708 100644 --- a/lib/target_process/entities/team_iteration.rb +++ b/lib/target_process/entities/team_iteration.rb @@ -1,6 +1,5 @@ module TargetProcess - class TeamIteration - include Base + class TeamIteration < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -11,6 +10,7 @@ class TeamIteration has_many :user_stories has_many :tasks has_many :bugs + has_many :test_plan_runs belongs_to :entity_type belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' diff --git a/lib/target_process/entities/team_member.rb b/lib/target_process/entities/team_member.rb index dec2868..962d8f5 100644 --- a/lib/target_process/entities/team_member.rb +++ b/lib/target_process/entities/team_member.rb @@ -1,6 +1,5 @@ module TargetProcess - class TeamMember - include Base + class TeamMember < Base belongs_to :team belongs_to :user belongs_to :role diff --git a/lib/target_process/entities/team_project.rb b/lib/target_process/entities/team_project.rb index 87e29e9..db5e4d6 100644 --- a/lib/target_process/entities/team_project.rb +++ b/lib/target_process/entities/team_project.rb @@ -1,6 +1,5 @@ module TargetProcess - class TeamProject - include Base + class TeamProject < Base belongs_to :team belongs_to :project end diff --git a/lib/target_process/entities/test_case.rb b/lib/target_process/entities/test_case.rb index 8209ab7..b5d48ba 100644 --- a/lib/target_process/entities/test_case.rb +++ b/lib/target_process/entities/test_case.rb @@ -1,6 +1,5 @@ module TargetProcess - class TestCase - include Base + class TestCase < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/test_case_run.rb b/lib/target_process/entities/test_case_run.rb index 0cf022f..f64a22c 100644 --- a/lib/target_process/entities/test_case_run.rb +++ b/lib/target_process/entities/test_case_run.rb @@ -1,6 +1,5 @@ module TargetProcess - class TestCaseRun - include Base + class TestCaseRun < Base has_many :test_cases belongs_to :test_plan_run end diff --git a/lib/target_process/entities/test_plan.rb b/lib/target_process/entities/test_plan.rb index 9bbbbe5..e51d71c 100644 --- a/lib/target_process/entities/test_plan.rb +++ b/lib/target_process/entities/test_plan.rb @@ -1,6 +1,5 @@ module TargetProcess - class TestPlan - include Base + class TestPlan < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/test_plan_run.rb b/lib/target_process/entities/test_plan_run.rb index adfe68e..cae9ea0 100644 --- a/lib/target_process/entities/test_plan_run.rb +++ b/lib/target_process/entities/test_plan_run.rb @@ -1,6 +1,5 @@ module TargetProcess - class TestPlanRun - include Base + class TestPlanRun < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/testplan.rb b/lib/target_process/entities/testplan.rb index b25430b..c9d0378 100644 --- a/lib/target_process/entities/testplan.rb +++ b/lib/target_process/entities/testplan.rb @@ -1,6 +1,5 @@ module TargetProcess - class TargetProcess::Testplan - include TargetProcess::Base + class Testplan < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' @@ -13,6 +12,5 @@ class TargetProcess::Testplan belongs_to :owner, 'GeneralUser' belongs_to :last_commented_user, 'GeneralUser' belongs_to :project - end end diff --git a/lib/target_process/entities/time.rb b/lib/target_process/entities/time.rb index e9f6300..af60001 100644 --- a/lib/target_process/entities/time.rb +++ b/lib/target_process/entities/time.rb @@ -1,6 +1,5 @@ module TargetProcess - class Time - include Base + class Time < Base belongs_to :project belongs_to :user belongs_to :assignable diff --git a/lib/target_process/entities/user.rb b/lib/target_process/entities/user.rb index cae4452..08fa47e 100644 --- a/lib/target_process/entities/user.rb +++ b/lib/target_process/entities/user.rb @@ -1,6 +1,5 @@ module TargetProcess - class User - include Base + class User < Base has_many :assignables has_many :comments has_many :requests diff --git a/lib/target_process/entities/user_story.rb b/lib/target_process/entities/user_story.rb index 9d7f94c..179fb6f 100644 --- a/lib/target_process/entities/user_story.rb +++ b/lib/target_process/entities/user_story.rb @@ -1,6 +1,5 @@ module TargetProcess - class UserStory - include Base + class UserStory < Base has_many :comments has_many :messages has_many :tag_objects, 'Tag' diff --git a/lib/target_process/entities/user_story_history.rb b/lib/target_process/entities/user_story_history.rb index 8cf016d..0b47ea2 100644 --- a/lib/target_process/entities/user_story_history.rb +++ b/lib/target_process/entities/user_story_history.rb @@ -1,6 +1,5 @@ module TargetProcess - class UserStoryHistory - include Base + class UserStoryHistory < Base belongs_to :entity_state belongs_to :modifier, 'GeneralUser' belongs_to :user_story