bullet_train_test 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +123 -0
- data/Rakefile +10 -0
- data/bullet_train_test.gemspec +38 -0
- data/docs/ApiV1GoalSerializer.md +18 -0
- data/docs/ApiV1GoalSerializerData.md +24 -0
- data/docs/ApiV1GoalSerializerDataAttributes.md +26 -0
- data/docs/ApiV1GoalSerializerDataRelationships.md +18 -0
- data/docs/ApiV1ProjectSerializer.md +18 -0
- data/docs/ApiV1ProjectSerializerData.md +24 -0
- data/docs/ApiV1ProjectSerializerDataAttributes.md +32 -0
- data/docs/ApiV1ProjectsTagSerializer.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerData.md +24 -0
- data/docs/ApiV1ProjectsTagSerializerDataAttributes.md +26 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationships.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeam.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeamData.md +20 -0
- data/docs/ApiV1TeamSerializer.md +18 -0
- data/docs/ApiV1TeamSerializerData.md +24 -0
- data/docs/ApiV1TeamSerializerDataAttributes.md +28 -0
- data/docs/ApiV1TeamSerializerDataRelationships.md +18 -0
- data/docs/ApiV1TeamSerializerDataRelationshipsScaffoldingAbsolutelyAbstractCreativeConcepts.md +18 -0
- data/docs/GoalsApi.md +205 -0
- data/docs/MeApi.md +66 -0
- data/docs/ProjectsApi.md +472 -0
- data/docs/TeamsApi.md +628 -0
- data/git_push.sh +57 -0
- data/lib/bullet_train_test/api/goals_api.rb +210 -0
- data/lib/bullet_train_test/api/me_api.rb +73 -0
- data/lib/bullet_train_test/api/projects_api.rb +466 -0
- data/lib/bullet_train_test/api/teams_api.rb +611 -0
- data/lib/bullet_train_test/api_client.rb +389 -0
- data/lib/bullet_train_test/api_error.rb +57 -0
- data/lib/bullet_train_test/configuration.rb +271 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data_attributes.rb +254 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer_data_attributes.rb +281 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_attributes.rb +254 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team_data.rb +227 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_attributes.rb +263 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts.rb +220 -0
- data/lib/bullet_train_test/version.rb +15 -0
- data/lib/bullet_train_test.rb +61 -0
- data/spec/api/goals_api_spec.rb +69 -0
- data/spec/api/me_api_spec.rb +44 -0
- data/spec/api/projects_api_spec.rb +115 -0
- data/spec/api/teams_api_spec.rb +144 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_v1_goal_serializer_data_attributes_spec.rb +58 -0
- data/spec/models/api_v1_goal_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_goal_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_goal_serializer_spec.rb +34 -0
- data/spec/models/api_v1_project_serializer_data_attributes_spec.rb +76 -0
- data/spec/models/api_v1_project_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_project_serializer_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_attributes_spec.rb +58 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_data_spec.rb +40 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_projects_tag_serializer_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_attributes_spec.rb +64 -0
- data/spec/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_team_serializer_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +187 -0
@@ -0,0 +1,611 @@
|
|
1
|
+
=begin
|
2
|
+
#Bullet Train Test
|
3
|
+
|
4
|
+
#You can update this description in `config/locales/en/application.en.yml`.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module BulletTrainTest
|
16
|
+
class TeamsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List Teams
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [Integer] :page Page of results to fetch. (default to 1)
|
25
|
+
# @option opts [Integer] :per_page Number of results to return per page. (default to 100)
|
26
|
+
# @return [Array<ApiV1TeamSerializer>]
|
27
|
+
def get_teams(opts = {})
|
28
|
+
data, _status_code, _headers = get_teams_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# List Teams
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @option opts [Integer] :page Page of results to fetch.
|
35
|
+
# @option opts [Integer] :per_page Number of results to return per page.
|
36
|
+
# @return [Array<(Array<ApiV1TeamSerializer>, Integer, Hash)>] Array<ApiV1TeamSerializer> data, response status code and response headers
|
37
|
+
def get_teams_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.get_teams ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/teams'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
47
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'Array<ApiV1TeamSerializer>'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || []
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"TeamsApi.get_teams",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# Retrieve a Team
|
84
|
+
# @param id [Integer] Team ID
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [ApiV1TeamSerializer]
|
87
|
+
def get_teams_id(id, opts = {})
|
88
|
+
data, _status_code, _headers = get_teams_id_with_http_info(id, opts)
|
89
|
+
data
|
90
|
+
end
|
91
|
+
|
92
|
+
# Retrieve a Team
|
93
|
+
# @param id [Integer] Team ID
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<(ApiV1TeamSerializer, Integer, Hash)>] ApiV1TeamSerializer data, response status code and response headers
|
96
|
+
def get_teams_id_with_http_info(id, opts = {})
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.get_teams_id ...'
|
99
|
+
end
|
100
|
+
# verify the required parameter 'id' is set
|
101
|
+
if @api_client.config.client_side_validation && id.nil?
|
102
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.get_teams_id"
|
103
|
+
end
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/teams/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
106
|
+
|
107
|
+
# query parameters
|
108
|
+
query_params = opts[:query_params] || {}
|
109
|
+
|
110
|
+
# header parameters
|
111
|
+
header_params = opts[:header_params] || {}
|
112
|
+
# HTTP header 'Accept' (if needed)
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:debug_body]
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:debug_return_type] || 'ApiV1TeamSerializer'
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:debug_auth_names] || []
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:operation => :"TeamsApi.get_teams_id",
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => return_type
|
135
|
+
)
|
136
|
+
|
137
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_teams_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
|
+
end
|
141
|
+
return data, status_code, headers
|
142
|
+
end
|
143
|
+
|
144
|
+
# List Projects
|
145
|
+
# @param team_id [Integer] Team ID
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @option opts [Integer] :page Page of results to fetch. (default to 1)
|
148
|
+
# @option opts [Integer] :per_page Number of results to return per page. (default to 100)
|
149
|
+
# @return [Array<ApiV1ProjectSerializer>]
|
150
|
+
def get_teams_team_id_projects(team_id, opts = {})
|
151
|
+
data, _status_code, _headers = get_teams_team_id_projects_with_http_info(team_id, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# List Projects
|
156
|
+
# @param team_id [Integer] Team ID
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @option opts [Integer] :page Page of results to fetch.
|
159
|
+
# @option opts [Integer] :per_page Number of results to return per page.
|
160
|
+
# @return [Array<(Array<ApiV1ProjectSerializer>, Integer, Hash)>] Array<ApiV1ProjectSerializer> data, response status code and response headers
|
161
|
+
def get_teams_team_id_projects_with_http_info(team_id, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.get_teams_team_id_projects ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'team_id' is set
|
166
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_teams_team_id_projects"
|
168
|
+
end
|
169
|
+
# resource path
|
170
|
+
local_var_path = '/teams/{team_id}/projects'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
|
171
|
+
|
172
|
+
# query parameters
|
173
|
+
query_params = opts[:query_params] || {}
|
174
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
175
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
176
|
+
|
177
|
+
# header parameters
|
178
|
+
header_params = opts[:header_params] || {}
|
179
|
+
# HTTP header 'Accept' (if needed)
|
180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
181
|
+
|
182
|
+
# form parameters
|
183
|
+
form_params = opts[:form_params] || {}
|
184
|
+
|
185
|
+
# http body (model)
|
186
|
+
post_body = opts[:debug_body]
|
187
|
+
|
188
|
+
# return_type
|
189
|
+
return_type = opts[:debug_return_type] || 'Array<ApiV1ProjectSerializer>'
|
190
|
+
|
191
|
+
# auth_names
|
192
|
+
auth_names = opts[:debug_auth_names] || []
|
193
|
+
|
194
|
+
new_options = opts.merge(
|
195
|
+
:operation => :"TeamsApi.get_teams_team_id_projects",
|
196
|
+
:header_params => header_params,
|
197
|
+
:query_params => query_params,
|
198
|
+
:form_params => form_params,
|
199
|
+
:body => post_body,
|
200
|
+
:auth_names => auth_names,
|
201
|
+
:return_type => return_type
|
202
|
+
)
|
203
|
+
|
204
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_teams_team_id_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
207
|
+
end
|
208
|
+
return data, status_code, headers
|
209
|
+
end
|
210
|
+
|
211
|
+
# List Tags
|
212
|
+
# @param team_id [Integer] Team ID
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @option opts [Integer] :page Page of results to fetch. (default to 1)
|
215
|
+
# @option opts [Integer] :per_page Number of results to return per page. (default to 100)
|
216
|
+
# @return [Array<ApiV1ProjectsTagSerializer>]
|
217
|
+
def get_teams_team_id_projects_tags(team_id, opts = {})
|
218
|
+
data, _status_code, _headers = get_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
219
|
+
data
|
220
|
+
end
|
221
|
+
|
222
|
+
# List Tags
|
223
|
+
# @param team_id [Integer] Team ID
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [Integer] :page Page of results to fetch.
|
226
|
+
# @option opts [Integer] :per_page Number of results to return per page.
|
227
|
+
# @return [Array<(Array<ApiV1ProjectsTagSerializer>, Integer, Hash)>] Array<ApiV1ProjectsTagSerializer> data, response status code and response headers
|
228
|
+
def get_teams_team_id_projects_tags_with_http_info(team_id, opts = {})
|
229
|
+
if @api_client.config.debugging
|
230
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.get_teams_team_id_projects_tags ...'
|
231
|
+
end
|
232
|
+
# verify the required parameter 'team_id' is set
|
233
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
234
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_teams_team_id_projects_tags"
|
235
|
+
end
|
236
|
+
# resource path
|
237
|
+
local_var_path = '/teams/{team_id}/projects/tags'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
|
238
|
+
|
239
|
+
# query parameters
|
240
|
+
query_params = opts[:query_params] || {}
|
241
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
242
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
243
|
+
|
244
|
+
# header parameters
|
245
|
+
header_params = opts[:header_params] || {}
|
246
|
+
# HTTP header 'Accept' (if needed)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = opts[:form_params] || {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = opts[:debug_body]
|
254
|
+
|
255
|
+
# return_type
|
256
|
+
return_type = opts[:debug_return_type] || 'Array<ApiV1ProjectsTagSerializer>'
|
257
|
+
|
258
|
+
# auth_names
|
259
|
+
auth_names = opts[:debug_auth_names] || []
|
260
|
+
|
261
|
+
new_options = opts.merge(
|
262
|
+
:operation => :"TeamsApi.get_teams_team_id_projects_tags",
|
263
|
+
:header_params => header_params,
|
264
|
+
:query_params => query_params,
|
265
|
+
:form_params => form_params,
|
266
|
+
:body => post_body,
|
267
|
+
:auth_names => auth_names,
|
268
|
+
:return_type => return_type
|
269
|
+
)
|
270
|
+
|
271
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
272
|
+
if @api_client.config.debugging
|
273
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_teams_team_id_projects_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
274
|
+
end
|
275
|
+
return data, status_code, headers
|
276
|
+
end
|
277
|
+
|
278
|
+
# translation missing: en.projects.api.three
|
279
|
+
# @param team_id [Integer] Team ID
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @option opts [Integer] :page Page of results to fetch. (default to 1)
|
282
|
+
# @option opts [Integer] :per_page Number of results to return per page. (default to 3)
|
283
|
+
# @return [Array<ApiV1ProjectSerializer>]
|
284
|
+
def get_teams_team_id_projects_three(team_id, opts = {})
|
285
|
+
data, _status_code, _headers = get_teams_team_id_projects_three_with_http_info(team_id, opts)
|
286
|
+
data
|
287
|
+
end
|
288
|
+
|
289
|
+
# translation missing: en.projects.api.three
|
290
|
+
# @param team_id [Integer] Team ID
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @option opts [Integer] :page Page of results to fetch.
|
293
|
+
# @option opts [Integer] :per_page Number of results to return per page.
|
294
|
+
# @return [Array<(Array<ApiV1ProjectSerializer>, Integer, Hash)>] Array<ApiV1ProjectSerializer> data, response status code and response headers
|
295
|
+
def get_teams_team_id_projects_three_with_http_info(team_id, opts = {})
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.get_teams_team_id_projects_three ...'
|
298
|
+
end
|
299
|
+
# verify the required parameter 'team_id' is set
|
300
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_teams_team_id_projects_three"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '/teams/{team_id}/projects/three'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
309
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
310
|
+
|
311
|
+
# header parameters
|
312
|
+
header_params = opts[:header_params] || {}
|
313
|
+
# HTTP header 'Accept' (if needed)
|
314
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
315
|
+
|
316
|
+
# form parameters
|
317
|
+
form_params = opts[:form_params] || {}
|
318
|
+
|
319
|
+
# http body (model)
|
320
|
+
post_body = opts[:debug_body]
|
321
|
+
|
322
|
+
# return_type
|
323
|
+
return_type = opts[:debug_return_type] || 'Array<ApiV1ProjectSerializer>'
|
324
|
+
|
325
|
+
# auth_names
|
326
|
+
auth_names = opts[:debug_auth_names] || []
|
327
|
+
|
328
|
+
new_options = opts.merge(
|
329
|
+
:operation => :"TeamsApi.get_teams_team_id_projects_three",
|
330
|
+
:header_params => header_params,
|
331
|
+
:query_params => query_params,
|
332
|
+
:form_params => form_params,
|
333
|
+
:body => post_body,
|
334
|
+
:auth_names => auth_names,
|
335
|
+
:return_type => return_type
|
336
|
+
)
|
337
|
+
|
338
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_teams_team_id_projects_three\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
341
|
+
end
|
342
|
+
return data, status_code, headers
|
343
|
+
end
|
344
|
+
|
345
|
+
# Add a New Team
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
348
|
+
# @return [ApiV1TeamSerializer]
|
349
|
+
def post_teams(opts = {})
|
350
|
+
data, _status_code, _headers = post_teams_with_http_info(opts)
|
351
|
+
data
|
352
|
+
end
|
353
|
+
|
354
|
+
# Add a New Team
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
357
|
+
# @return [Array<(ApiV1TeamSerializer, Integer, Hash)>] ApiV1TeamSerializer data, response status code and response headers
|
358
|
+
def post_teams_with_http_info(opts = {})
|
359
|
+
if @api_client.config.debugging
|
360
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.post_teams ...'
|
361
|
+
end
|
362
|
+
# resource path
|
363
|
+
local_var_path = '/teams'
|
364
|
+
|
365
|
+
# query parameters
|
366
|
+
query_params = opts[:query_params] || {}
|
367
|
+
|
368
|
+
# header parameters
|
369
|
+
header_params = opts[:header_params] || {}
|
370
|
+
# HTTP header 'Accept' (if needed)
|
371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
372
|
+
# HTTP header 'Content-Type'
|
373
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
374
|
+
if !content_type.nil?
|
375
|
+
header_params['Content-Type'] = content_type
|
376
|
+
end
|
377
|
+
|
378
|
+
# form parameters
|
379
|
+
form_params = opts[:form_params] || {}
|
380
|
+
|
381
|
+
# http body (model)
|
382
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
383
|
+
|
384
|
+
# return_type
|
385
|
+
return_type = opts[:debug_return_type] || 'ApiV1TeamSerializer'
|
386
|
+
|
387
|
+
# auth_names
|
388
|
+
auth_names = opts[:debug_auth_names] || []
|
389
|
+
|
390
|
+
new_options = opts.merge(
|
391
|
+
:operation => :"TeamsApi.post_teams",
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names,
|
397
|
+
:return_type => return_type
|
398
|
+
)
|
399
|
+
|
400
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: TeamsApi#post_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
406
|
+
|
407
|
+
# Add a New Project
|
408
|
+
# @param team_id [Integer] Team ID
|
409
|
+
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
411
|
+
# @return [ApiV1ProjectSerializer]
|
412
|
+
def post_teams_team_id_projects(team_id, opts = {})
|
413
|
+
data, _status_code, _headers = post_teams_team_id_projects_with_http_info(team_id, opts)
|
414
|
+
data
|
415
|
+
end
|
416
|
+
|
417
|
+
# Add a New Project
|
418
|
+
# @param team_id [Integer] Team ID
|
419
|
+
# @param [Hash] opts the optional parameters
|
420
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
421
|
+
# @return [Array<(ApiV1ProjectSerializer, Integer, Hash)>] ApiV1ProjectSerializer data, response status code and response headers
|
422
|
+
def post_teams_team_id_projects_with_http_info(team_id, opts = {})
|
423
|
+
if @api_client.config.debugging
|
424
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.post_teams_team_id_projects ...'
|
425
|
+
end
|
426
|
+
# verify the required parameter 'team_id' is set
|
427
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
428
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.post_teams_team_id_projects"
|
429
|
+
end
|
430
|
+
# resource path
|
431
|
+
local_var_path = '/teams/{team_id}/projects'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
|
432
|
+
|
433
|
+
# query parameters
|
434
|
+
query_params = opts[:query_params] || {}
|
435
|
+
|
436
|
+
# header parameters
|
437
|
+
header_params = opts[:header_params] || {}
|
438
|
+
# HTTP header 'Accept' (if needed)
|
439
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
440
|
+
# HTTP header 'Content-Type'
|
441
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
442
|
+
if !content_type.nil?
|
443
|
+
header_params['Content-Type'] = content_type
|
444
|
+
end
|
445
|
+
|
446
|
+
# form parameters
|
447
|
+
form_params = opts[:form_params] || {}
|
448
|
+
|
449
|
+
# http body (model)
|
450
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
451
|
+
|
452
|
+
# return_type
|
453
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectSerializer'
|
454
|
+
|
455
|
+
# auth_names
|
456
|
+
auth_names = opts[:debug_auth_names] || []
|
457
|
+
|
458
|
+
new_options = opts.merge(
|
459
|
+
:operation => :"TeamsApi.post_teams_team_id_projects",
|
460
|
+
:header_params => header_params,
|
461
|
+
:query_params => query_params,
|
462
|
+
:form_params => form_params,
|
463
|
+
:body => post_body,
|
464
|
+
:auth_names => auth_names,
|
465
|
+
:return_type => return_type
|
466
|
+
)
|
467
|
+
|
468
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
469
|
+
if @api_client.config.debugging
|
470
|
+
@api_client.config.logger.debug "API called: TeamsApi#post_teams_team_id_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
471
|
+
end
|
472
|
+
return data, status_code, headers
|
473
|
+
end
|
474
|
+
|
475
|
+
# Add a New Tag
|
476
|
+
# @param team_id [Integer] Team ID
|
477
|
+
# @param [Hash] opts the optional parameters
|
478
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
479
|
+
# @return [ApiV1ProjectsTagSerializer]
|
480
|
+
def post_teams_team_id_projects_tags(team_id, opts = {})
|
481
|
+
data, _status_code, _headers = post_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
482
|
+
data
|
483
|
+
end
|
484
|
+
|
485
|
+
# Add a New Tag
|
486
|
+
# @param team_id [Integer] Team ID
|
487
|
+
# @param [Hash] opts the optional parameters
|
488
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
489
|
+
# @return [Array<(ApiV1ProjectsTagSerializer, Integer, Hash)>] ApiV1ProjectsTagSerializer data, response status code and response headers
|
490
|
+
def post_teams_team_id_projects_tags_with_http_info(team_id, opts = {})
|
491
|
+
if @api_client.config.debugging
|
492
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.post_teams_team_id_projects_tags ...'
|
493
|
+
end
|
494
|
+
# verify the required parameter 'team_id' is set
|
495
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.post_teams_team_id_projects_tags"
|
497
|
+
end
|
498
|
+
# resource path
|
499
|
+
local_var_path = '/teams/{team_id}/projects/tags'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
|
500
|
+
|
501
|
+
# query parameters
|
502
|
+
query_params = opts[:query_params] || {}
|
503
|
+
|
504
|
+
# header parameters
|
505
|
+
header_params = opts[:header_params] || {}
|
506
|
+
# HTTP header 'Accept' (if needed)
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
508
|
+
# HTTP header 'Content-Type'
|
509
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
510
|
+
if !content_type.nil?
|
511
|
+
header_params['Content-Type'] = content_type
|
512
|
+
end
|
513
|
+
|
514
|
+
# form parameters
|
515
|
+
form_params = opts[:form_params] || {}
|
516
|
+
|
517
|
+
# http body (model)
|
518
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
519
|
+
|
520
|
+
# return_type
|
521
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectsTagSerializer'
|
522
|
+
|
523
|
+
# auth_names
|
524
|
+
auth_names = opts[:debug_auth_names] || []
|
525
|
+
|
526
|
+
new_options = opts.merge(
|
527
|
+
:operation => :"TeamsApi.post_teams_team_id_projects_tags",
|
528
|
+
:header_params => header_params,
|
529
|
+
:query_params => query_params,
|
530
|
+
:form_params => form_params,
|
531
|
+
:body => post_body,
|
532
|
+
:auth_names => auth_names,
|
533
|
+
:return_type => return_type
|
534
|
+
)
|
535
|
+
|
536
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
537
|
+
if @api_client.config.debugging
|
538
|
+
@api_client.config.logger.debug "API called: TeamsApi#post_teams_team_id_projects_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
539
|
+
end
|
540
|
+
return data, status_code, headers
|
541
|
+
end
|
542
|
+
|
543
|
+
# Update a Team
|
544
|
+
# @param id [Integer] Team ID
|
545
|
+
# @param [Hash] opts the optional parameters
|
546
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
547
|
+
# @return [ApiV1TeamSerializer]
|
548
|
+
def put_teams_id(id, opts = {})
|
549
|
+
data, _status_code, _headers = put_teams_id_with_http_info(id, opts)
|
550
|
+
data
|
551
|
+
end
|
552
|
+
|
553
|
+
# Update a Team
|
554
|
+
# @param id [Integer] Team ID
|
555
|
+
# @param [Hash] opts the optional parameters
|
556
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
557
|
+
# @return [Array<(ApiV1TeamSerializer, Integer, Hash)>] ApiV1TeamSerializer data, response status code and response headers
|
558
|
+
def put_teams_id_with_http_info(id, opts = {})
|
559
|
+
if @api_client.config.debugging
|
560
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.put_teams_id ...'
|
561
|
+
end
|
562
|
+
# verify the required parameter 'id' is set
|
563
|
+
if @api_client.config.client_side_validation && id.nil?
|
564
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.put_teams_id"
|
565
|
+
end
|
566
|
+
# resource path
|
567
|
+
local_var_path = '/teams/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
568
|
+
|
569
|
+
# query parameters
|
570
|
+
query_params = opts[:query_params] || {}
|
571
|
+
|
572
|
+
# header parameters
|
573
|
+
header_params = opts[:header_params] || {}
|
574
|
+
# HTTP header 'Accept' (if needed)
|
575
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
576
|
+
# HTTP header 'Content-Type'
|
577
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
578
|
+
if !content_type.nil?
|
579
|
+
header_params['Content-Type'] = content_type
|
580
|
+
end
|
581
|
+
|
582
|
+
# form parameters
|
583
|
+
form_params = opts[:form_params] || {}
|
584
|
+
|
585
|
+
# http body (model)
|
586
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
587
|
+
|
588
|
+
# return_type
|
589
|
+
return_type = opts[:debug_return_type] || 'ApiV1TeamSerializer'
|
590
|
+
|
591
|
+
# auth_names
|
592
|
+
auth_names = opts[:debug_auth_names] || []
|
593
|
+
|
594
|
+
new_options = opts.merge(
|
595
|
+
:operation => :"TeamsApi.put_teams_id",
|
596
|
+
:header_params => header_params,
|
597
|
+
:query_params => query_params,
|
598
|
+
:form_params => form_params,
|
599
|
+
:body => post_body,
|
600
|
+
:auth_names => auth_names,
|
601
|
+
:return_type => return_type
|
602
|
+
)
|
603
|
+
|
604
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
605
|
+
if @api_client.config.debugging
|
606
|
+
@api_client.config.logger.debug "API called: TeamsApi#put_teams_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
607
|
+
end
|
608
|
+
return data, status_code, headers
|
609
|
+
end
|
610
|
+
end
|
611
|
+
end
|