Module: Endpoints

Included in:
TestRail::APIClient
Defined in:
lib/endpoints.rb

Overview

This space left blank intentionally

Instance Method Summary collapse

Instance Method Details

#add_case(section_id, opts = {}) ⇒ Object



30
31
32
# File 'lib/endpoints.rb', line 30

def add_case(section_id, opts = {})
  send_post("add_case/#{section_id}", opts)
end

#add_milestone(project_id, opts = {}) ⇒ Object



110
111
112
# File 'lib/endpoints.rb', line 110

def add_milestone(project_id, opts = {})
  send_post("add_milestone/#{project_id}", opts)
end

#add_plan(project_id, opts = {}) ⇒ Object



90
91
92
# File 'lib/endpoints.rb', line 90

def add_plan(project_id, opts = {})
  send_post("add_plan/#{project_id}", opts)
end

#add_plan_entries(plan_id, opts = {}) ⇒ Object



94
95
96
# File 'lib/endpoints.rb', line 94

def add_plan_entries(plan_id, opts = {})
  send_post("add_plan_entries/#{plan_id}", opts)
end

#add_result(test_id, opts = {}) ⇒ Object



6
7
8
# File 'lib/endpoints.rb', line 6

def add_result(test_id, opts = {})
  send_post("add_result/#{test_id}", opts)
end

#add_result_for_case(run_id, case_id, opts = {}) ⇒ Object



10
11
12
# File 'lib/endpoints.rb', line 10

def add_result_for_case(run_id, case_id, opts = {})
  send_post("add_result_for_case/#{run_id}/#{case_id}", opts)
end

#add_run(suite_id, opts = {}) ⇒ Object



74
75
76
# File 'lib/endpoints.rb', line 74

def add_run(suite_id, opts = {})
  send_post("add_run/#{suite_id}", opts)
end

#add_section(suite_id, opts = {}) ⇒ Object



62
63
64
# File 'lib/endpoints.rb', line 62

def add_section(suite_id, opts = {})
  send_post("add_section/#{suite_id}", opts)
end

#add_suite(project_id, opts = {}) ⇒ Object



58
59
60
# File 'lib/endpoints.rb', line 58

def add_suite(project_id, opts = {})
  send_post("add_suite/#{project_id}", opts)
end

#close_plan(plan_id, opts = {}) ⇒ Object



98
99
100
# File 'lib/endpoints.rb', line 98

def close_plan(plan_id, opts = {})
  send_post("close_plan/#{plan_id}", opts)
end

#close_run(run_id, opts = {}) ⇒ Object



78
79
80
# File 'lib/endpoints.rb', line 78

def close_run(run_id, opts = {})
  send_post("close_run/#{run_id}", opts)
end

#delete_case(case_id, opts = {}) ⇒ Object



38
39
40
# File 'lib/endpoints.rb', line 38

def delete_case(case_id, opts = {})
  send_post("delete_case/#{case_id}", opts)
end

#get_case(case_id, opts = {}) ⇒ Object



22
23
24
# File 'lib/endpoints.rb', line 22

def get_case(case_id, opts = {})
  send_get("get_case/#{case_id}", opts)
end

#get_cases(suite_id, section_id, opts = {}) ⇒ Object



26
27
28
# File 'lib/endpoints.rb', line 26

def get_cases(suite_id, section_id, opts = {})
  send_get("get_cases/#{suite_id}/#{section_id}", opts)
end

#get_milestone(milestone_id, opts = {}) ⇒ Object



102
103
104
# File 'lib/endpoints.rb', line 102

def get_milestone(milestone_id, opts = {})
  send_get("get_milestone/#{milestone_id}", opts)
end

#get_milestones(project_id, opts = {}) ⇒ Object



106
107
108
# File 'lib/endpoints.rb', line 106

def get_milestones(project_id, opts = {})
  send_get("get_milestones/#{project_id}", opts)
end

#get_plan(plan_id, opts = {}) ⇒ Object



82
83
84
# File 'lib/endpoints.rb', line 82

def get_plan(plan_id, opts = {})
  send_get("get_plan/#{plan_id}", opts)
end

#get_plans(project_id, opts = {}) ⇒ Object



86
87
88
# File 'lib/endpoints.rb', line 86

def get_plans(project_id, opts = {})
  send_get("get_plans/#{project_id}", opts)
end

#get_project(project_id, opts = {}) ⇒ Object



114
115
116
# File 'lib/endpoints.rb', line 114

def get_project(project_id, opts = {})
  send_get("get_project/#{project_id}", opts)
end

#get_projects(opts = {}) ⇒ Object



118
119
120
# File 'lib/endpoints.rb', line 118

def get_projects(opts = {})
  send_get('get_projects', opts)
end

#get_run(run_id, opts = {}) ⇒ Object



66
67
68
# File 'lib/endpoints.rb', line 66

def get_run(run_id, opts = {})
  send_get("get_run/#{run_id}", opts)
end

#get_runs(project_id, plan_id, opts = {}) ⇒ Object



70
71
72
# File 'lib/endpoints.rb', line 70

def get_runs(project_id, plan_id, opts = {})
  send_get("get_runs/#{project_id}/#{plan_id}", opts)
end

#get_section(section_id, opts = {}) ⇒ Object



50
51
52
# File 'lib/endpoints.rb', line 50

def get_section(section_id, opts = {})
  send_get("get_section/#{section_id}", opts)
end

#get_sections(suite_id, opts = {}) ⇒ Object



54
55
56
# File 'lib/endpoints.rb', line 54

def get_sections(suite_id, opts = {})
  send_get("get_sections/#{suite_id}", opts)
end

#get_suite(suite_id, opts = {}) ⇒ Object



42
43
44
# File 'lib/endpoints.rb', line 42

def get_suite(suite_id, opts = {})
  send_get("get_suite/#{suite_id}", opts)
end

#get_suites(project_id, opts = {}) ⇒ Object



46
47
48
# File 'lib/endpoints.rb', line 46

def get_suites(project_id, opts = {})
  send_get("get_suites/#{project_id}", opts)
end

#get_test(test_id, opts = {}) ⇒ Object



14
15
16
# File 'lib/endpoints.rb', line 14

def get_test(test_id, opts = {})
  send_get("get_test/#{test_id}", opts)
end

#get_tests(run_id, opts = {}) ⇒ Object



18
19
20
# File 'lib/endpoints.rb', line 18

def get_tests(run_id, opts = {})
  send_get("get_tests/#{run_id}", opts)
end

#update_case(case_id, opts = {}) ⇒ Object



34
35
36
# File 'lib/endpoints.rb', line 34

def update_case(case_id, opts = {})
  send_post("update_case/#{case_id}", opts)
end