bullet_train_test 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +123 -0
  4. data/Rakefile +10 -0
  5. data/bullet_train_test.gemspec +38 -0
  6. data/docs/ApiV1GoalSerializer.md +18 -0
  7. data/docs/ApiV1GoalSerializerData.md +24 -0
  8. data/docs/ApiV1GoalSerializerDataAttributes.md +26 -0
  9. data/docs/ApiV1GoalSerializerDataRelationships.md +18 -0
  10. data/docs/ApiV1ProjectSerializer.md +18 -0
  11. data/docs/ApiV1ProjectSerializerData.md +24 -0
  12. data/docs/ApiV1ProjectSerializerDataAttributes.md +32 -0
  13. data/docs/ApiV1ProjectsTagSerializer.md +18 -0
  14. data/docs/ApiV1ProjectsTagSerializerData.md +24 -0
  15. data/docs/ApiV1ProjectsTagSerializerDataAttributes.md +26 -0
  16. data/docs/ApiV1ProjectsTagSerializerDataRelationships.md +18 -0
  17. data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeam.md +18 -0
  18. data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeamData.md +20 -0
  19. data/docs/ApiV1TeamSerializer.md +18 -0
  20. data/docs/ApiV1TeamSerializerData.md +24 -0
  21. data/docs/ApiV1TeamSerializerDataAttributes.md +28 -0
  22. data/docs/ApiV1TeamSerializerDataRelationships.md +18 -0
  23. data/docs/ApiV1TeamSerializerDataRelationshipsScaffoldingAbsolutelyAbstractCreativeConcepts.md +18 -0
  24. data/docs/GoalsApi.md +205 -0
  25. data/docs/MeApi.md +66 -0
  26. data/docs/ProjectsApi.md +472 -0
  27. data/docs/TeamsApi.md +628 -0
  28. data/git_push.sh +57 -0
  29. data/lib/bullet_train_test/api/goals_api.rb +210 -0
  30. data/lib/bullet_train_test/api/me_api.rb +73 -0
  31. data/lib/bullet_train_test/api/projects_api.rb +466 -0
  32. data/lib/bullet_train_test/api/teams_api.rb +611 -0
  33. data/lib/bullet_train_test/api_client.rb +389 -0
  34. data/lib/bullet_train_test/api_error.rb +57 -0
  35. data/lib/bullet_train_test/configuration.rb +271 -0
  36. data/lib/bullet_train_test/models/api_v1_goal_serializer.rb +219 -0
  37. data/lib/bullet_train_test/models/api_v1_goal_serializer_data.rb +245 -0
  38. data/lib/bullet_train_test/models/api_v1_goal_serializer_data_attributes.rb +254 -0
  39. data/lib/bullet_train_test/models/api_v1_goal_serializer_data_relationships.rb +218 -0
  40. data/lib/bullet_train_test/models/api_v1_project_serializer.rb +219 -0
  41. data/lib/bullet_train_test/models/api_v1_project_serializer_data.rb +245 -0
  42. data/lib/bullet_train_test/models/api_v1_project_serializer_data_attributes.rb +281 -0
  43. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer.rb +219 -0
  44. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data.rb +245 -0
  45. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_attributes.rb +254 -0
  46. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships.rb +218 -0
  47. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team.rb +218 -0
  48. data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team_data.rb +227 -0
  49. data/lib/bullet_train_test/models/api_v1_team_serializer.rb +219 -0
  50. data/lib/bullet_train_test/models/api_v1_team_serializer_data.rb +245 -0
  51. data/lib/bullet_train_test/models/api_v1_team_serializer_data_attributes.rb +263 -0
  52. data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships.rb +218 -0
  53. data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts.rb +220 -0
  54. data/lib/bullet_train_test/version.rb +15 -0
  55. data/lib/bullet_train_test.rb +61 -0
  56. data/spec/api/goals_api_spec.rb +69 -0
  57. data/spec/api/me_api_spec.rb +44 -0
  58. data/spec/api/projects_api_spec.rb +115 -0
  59. data/spec/api/teams_api_spec.rb +144 -0
  60. data/spec/api_client_spec.rb +226 -0
  61. data/spec/configuration_spec.rb +42 -0
  62. data/spec/models/api_v1_goal_serializer_data_attributes_spec.rb +58 -0
  63. data/spec/models/api_v1_goal_serializer_data_relationships_spec.rb +34 -0
  64. data/spec/models/api_v1_goal_serializer_data_spec.rb +52 -0
  65. data/spec/models/api_v1_goal_serializer_spec.rb +34 -0
  66. data/spec/models/api_v1_project_serializer_data_attributes_spec.rb +76 -0
  67. data/spec/models/api_v1_project_serializer_data_spec.rb +52 -0
  68. data/spec/models/api_v1_project_serializer_spec.rb +34 -0
  69. data/spec/models/api_v1_projects_tag_serializer_data_attributes_spec.rb +58 -0
  70. data/spec/models/api_v1_projects_tag_serializer_data_relationships_spec.rb +34 -0
  71. data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_data_spec.rb +40 -0
  72. data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_spec.rb +34 -0
  73. data/spec/models/api_v1_projects_tag_serializer_data_spec.rb +52 -0
  74. data/spec/models/api_v1_projects_tag_serializer_spec.rb +34 -0
  75. data/spec/models/api_v1_team_serializer_data_attributes_spec.rb +64 -0
  76. data/spec/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts_spec.rb +34 -0
  77. data/spec/models/api_v1_team_serializer_data_relationships_spec.rb +34 -0
  78. data/spec/models/api_v1_team_serializer_data_spec.rb +52 -0
  79. data/spec/models/api_v1_team_serializer_spec.rb +34 -0
  80. data/spec/spec_helper.rb +111 -0
  81. metadata +187 -0
@@ -0,0 +1,472 @@
1
+ # BulletTrainTest::ProjectsApi
2
+
3
+ All URIs are relative to *https://bullettrainapi.eu.ngrok.io/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete_projects_id**](ProjectsApi.md#delete_projects_id) | **DELETE** /projects/{id} | |
8
+ | [**delete_projects_tags_id**](ProjectsApi.md#delete_projects_tags_id) | **DELETE** /projects/tags/{id} | |
9
+ | [**get_projects_id**](ProjectsApi.md#get_projects_id) | **GET** /projects/{id} | |
10
+ | [**get_projects_tags_id**](ProjectsApi.md#get_projects_tags_id) | **GET** /projects/tags/{id} | |
11
+ | [**post_projects_project_id_goals**](ProjectsApi.md#post_projects_project_id_goals) | **POST** /projects/{project_id}/goals | |
12
+ | [**put_projects_id**](ProjectsApi.md#put_projects_id) | **PUT** /projects/{id} | |
13
+ | [**put_projects_tags_id**](ProjectsApi.md#put_projects_tags_id) | **PUT** /projects/tags/{id} | |
14
+
15
+
16
+ ## delete_projects_id
17
+
18
+ > delete_projects_id(id)
19
+
20
+
21
+
22
+ Delete a Project
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'bullet_train_test'
29
+
30
+ api_instance = BulletTrainTest::ProjectsApi.new
31
+ id = 56 # Integer | Project ID
32
+
33
+ begin
34
+
35
+ api_instance.delete_projects_id(id)
36
+ rescue BulletTrainTest::ApiError => e
37
+ puts "Error when calling ProjectsApi->delete_projects_id: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the delete_projects_id_with_http_info variant
42
+
43
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
44
+
45
+ > <Array(nil, Integer, Hash)> delete_projects_id_with_http_info(id)
46
+
47
+ ```ruby
48
+ begin
49
+
50
+ data, status_code, headers = api_instance.delete_projects_id_with_http_info(id)
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => nil
54
+ rescue BulletTrainTest::ApiError => e
55
+ puts "Error when calling ProjectsApi->delete_projects_id_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ | Name | Type | Description | Notes |
62
+ | ---- | ---- | ----------- | ----- |
63
+ | **id** | **Integer** | Project ID | |
64
+
65
+ ### Return type
66
+
67
+ nil (empty response body)
68
+
69
+ ### Authorization
70
+
71
+ No authorization required
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: Not defined
76
+ - **Accept**: Not defined
77
+
78
+
79
+ ## delete_projects_tags_id
80
+
81
+ > delete_projects_tags_id(id)
82
+
83
+
84
+
85
+ Delete a Tag
86
+
87
+ ### Examples
88
+
89
+ ```ruby
90
+ require 'time'
91
+ require 'bullet_train_test'
92
+
93
+ api_instance = BulletTrainTest::ProjectsApi.new
94
+ id = 56 # Integer | Tag ID
95
+
96
+ begin
97
+
98
+ api_instance.delete_projects_tags_id(id)
99
+ rescue BulletTrainTest::ApiError => e
100
+ puts "Error when calling ProjectsApi->delete_projects_tags_id: #{e}"
101
+ end
102
+ ```
103
+
104
+ #### Using the delete_projects_tags_id_with_http_info variant
105
+
106
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
107
+
108
+ > <Array(nil, Integer, Hash)> delete_projects_tags_id_with_http_info(id)
109
+
110
+ ```ruby
111
+ begin
112
+
113
+ data, status_code, headers = api_instance.delete_projects_tags_id_with_http_info(id)
114
+ p status_code # => 2xx
115
+ p headers # => { ... }
116
+ p data # => nil
117
+ rescue BulletTrainTest::ApiError => e
118
+ puts "Error when calling ProjectsApi->delete_projects_tags_id_with_http_info: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ | Name | Type | Description | Notes |
125
+ | ---- | ---- | ----------- | ----- |
126
+ | **id** | **Integer** | Tag ID | |
127
+
128
+ ### Return type
129
+
130
+ nil (empty response body)
131
+
132
+ ### Authorization
133
+
134
+ No authorization required
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: Not defined
140
+
141
+
142
+ ## get_projects_id
143
+
144
+ > <ApiV1ProjectSerializer> get_projects_id(id)
145
+
146
+
147
+
148
+ Retrieve a Project
149
+
150
+ ### Examples
151
+
152
+ ```ruby
153
+ require 'time'
154
+ require 'bullet_train_test'
155
+
156
+ api_instance = BulletTrainTest::ProjectsApi.new
157
+ id = 56 # Integer | Project ID
158
+
159
+ begin
160
+
161
+ result = api_instance.get_projects_id(id)
162
+ p result
163
+ rescue BulletTrainTest::ApiError => e
164
+ puts "Error when calling ProjectsApi->get_projects_id: #{e}"
165
+ end
166
+ ```
167
+
168
+ #### Using the get_projects_id_with_http_info variant
169
+
170
+ This returns an Array which contains the response data, status code and headers.
171
+
172
+ > <Array(<ApiV1ProjectSerializer>, Integer, Hash)> get_projects_id_with_http_info(id)
173
+
174
+ ```ruby
175
+ begin
176
+
177
+ data, status_code, headers = api_instance.get_projects_id_with_http_info(id)
178
+ p status_code # => 2xx
179
+ p headers # => { ... }
180
+ p data # => <ApiV1ProjectSerializer>
181
+ rescue BulletTrainTest::ApiError => e
182
+ puts "Error when calling ProjectsApi->get_projects_id_with_http_info: #{e}"
183
+ end
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+ | Name | Type | Description | Notes |
189
+ | ---- | ---- | ----------- | ----- |
190
+ | **id** | **Integer** | Project ID | |
191
+
192
+ ### Return type
193
+
194
+ [**ApiV1ProjectSerializer**](ApiV1ProjectSerializer.md)
195
+
196
+ ### Authorization
197
+
198
+ No authorization required
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: Not defined
203
+ - **Accept**: application/vnd.api+json
204
+
205
+
206
+ ## get_projects_tags_id
207
+
208
+ > <ApiV1ProjectsTagSerializer> get_projects_tags_id(id)
209
+
210
+
211
+
212
+ Retrieve a Tag
213
+
214
+ ### Examples
215
+
216
+ ```ruby
217
+ require 'time'
218
+ require 'bullet_train_test'
219
+
220
+ api_instance = BulletTrainTest::ProjectsApi.new
221
+ id = 56 # Integer | Tag ID
222
+
223
+ begin
224
+
225
+ result = api_instance.get_projects_tags_id(id)
226
+ p result
227
+ rescue BulletTrainTest::ApiError => e
228
+ puts "Error when calling ProjectsApi->get_projects_tags_id: #{e}"
229
+ end
230
+ ```
231
+
232
+ #### Using the get_projects_tags_id_with_http_info variant
233
+
234
+ This returns an Array which contains the response data, status code and headers.
235
+
236
+ > <Array(<ApiV1ProjectsTagSerializer>, Integer, Hash)> get_projects_tags_id_with_http_info(id)
237
+
238
+ ```ruby
239
+ begin
240
+
241
+ data, status_code, headers = api_instance.get_projects_tags_id_with_http_info(id)
242
+ p status_code # => 2xx
243
+ p headers # => { ... }
244
+ p data # => <ApiV1ProjectsTagSerializer>
245
+ rescue BulletTrainTest::ApiError => e
246
+ puts "Error when calling ProjectsApi->get_projects_tags_id_with_http_info: #{e}"
247
+ end
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+ | Name | Type | Description | Notes |
253
+ | ---- | ---- | ----------- | ----- |
254
+ | **id** | **Integer** | Tag ID | |
255
+
256
+ ### Return type
257
+
258
+ [**ApiV1ProjectsTagSerializer**](ApiV1ProjectsTagSerializer.md)
259
+
260
+ ### Authorization
261
+
262
+ No authorization required
263
+
264
+ ### HTTP request headers
265
+
266
+ - **Content-Type**: Not defined
267
+ - **Accept**: application/vnd.api+json
268
+
269
+
270
+ ## post_projects_project_id_goals
271
+
272
+ > <ApiV1GoalSerializer> post_projects_project_id_goals(project_id, opts)
273
+
274
+
275
+
276
+ Add a New Goal
277
+
278
+ ### Examples
279
+
280
+ ```ruby
281
+ require 'time'
282
+ require 'bullet_train_test'
283
+
284
+ api_instance = BulletTrainTest::ProjectsApi.new
285
+ project_id = 56 # Integer | Project ID
286
+ opts = {
287
+ unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
288
+ }
289
+
290
+ begin
291
+
292
+ result = api_instance.post_projects_project_id_goals(project_id, opts)
293
+ p result
294
+ rescue BulletTrainTest::ApiError => e
295
+ puts "Error when calling ProjectsApi->post_projects_project_id_goals: #{e}"
296
+ end
297
+ ```
298
+
299
+ #### Using the post_projects_project_id_goals_with_http_info variant
300
+
301
+ This returns an Array which contains the response data, status code and headers.
302
+
303
+ > <Array(<ApiV1GoalSerializer>, Integer, Hash)> post_projects_project_id_goals_with_http_info(project_id, opts)
304
+
305
+ ```ruby
306
+ begin
307
+
308
+ data, status_code, headers = api_instance.post_projects_project_id_goals_with_http_info(project_id, opts)
309
+ p status_code # => 2xx
310
+ p headers # => { ... }
311
+ p data # => <ApiV1GoalSerializer>
312
+ rescue BulletTrainTest::ApiError => e
313
+ puts "Error when calling ProjectsApi->post_projects_project_id_goals_with_http_info: #{e}"
314
+ end
315
+ ```
316
+
317
+ ### Parameters
318
+
319
+ | Name | Type | Description | Notes |
320
+ | ---- | ---- | ----------- | ----- |
321
+ | **project_id** | **Integer** | Project ID | |
322
+ | **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
323
+
324
+ ### Return type
325
+
326
+ [**ApiV1GoalSerializer**](ApiV1GoalSerializer.md)
327
+
328
+ ### Authorization
329
+
330
+ No authorization required
331
+
332
+ ### HTTP request headers
333
+
334
+ - **Content-Type**: application/json, multipart/form-data
335
+ - **Accept**: application/vnd.api+json
336
+
337
+
338
+ ## put_projects_id
339
+
340
+ > <ApiV1ProjectSerializer> put_projects_id(id, opts)
341
+
342
+
343
+
344
+ Update a Project
345
+
346
+ ### Examples
347
+
348
+ ```ruby
349
+ require 'time'
350
+ require 'bullet_train_test'
351
+
352
+ api_instance = BulletTrainTest::ProjectsApi.new
353
+ id = 56 # Integer | Project ID
354
+ opts = {
355
+ unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
356
+ }
357
+
358
+ begin
359
+
360
+ result = api_instance.put_projects_id(id, opts)
361
+ p result
362
+ rescue BulletTrainTest::ApiError => e
363
+ puts "Error when calling ProjectsApi->put_projects_id: #{e}"
364
+ end
365
+ ```
366
+
367
+ #### Using the put_projects_id_with_http_info variant
368
+
369
+ This returns an Array which contains the response data, status code and headers.
370
+
371
+ > <Array(<ApiV1ProjectSerializer>, Integer, Hash)> put_projects_id_with_http_info(id, opts)
372
+
373
+ ```ruby
374
+ begin
375
+
376
+ data, status_code, headers = api_instance.put_projects_id_with_http_info(id, opts)
377
+ p status_code # => 2xx
378
+ p headers # => { ... }
379
+ p data # => <ApiV1ProjectSerializer>
380
+ rescue BulletTrainTest::ApiError => e
381
+ puts "Error when calling ProjectsApi->put_projects_id_with_http_info: #{e}"
382
+ end
383
+ ```
384
+
385
+ ### Parameters
386
+
387
+ | Name | Type | Description | Notes |
388
+ | ---- | ---- | ----------- | ----- |
389
+ | **id** | **Integer** | Project ID | |
390
+ | **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
391
+
392
+ ### Return type
393
+
394
+ [**ApiV1ProjectSerializer**](ApiV1ProjectSerializer.md)
395
+
396
+ ### Authorization
397
+
398
+ No authorization required
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: application/json, multipart/form-data
403
+ - **Accept**: application/vnd.api+json
404
+
405
+
406
+ ## put_projects_tags_id
407
+
408
+ > <ApiV1ProjectsTagSerializer> put_projects_tags_id(id, opts)
409
+
410
+
411
+
412
+ Update a Tag
413
+
414
+ ### Examples
415
+
416
+ ```ruby
417
+ require 'time'
418
+ require 'bullet_train_test'
419
+
420
+ api_instance = BulletTrainTest::ProjectsApi.new
421
+ id = 56 # Integer | Tag ID
422
+ opts = {
423
+ unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
424
+ }
425
+
426
+ begin
427
+
428
+ result = api_instance.put_projects_tags_id(id, opts)
429
+ p result
430
+ rescue BulletTrainTest::ApiError => e
431
+ puts "Error when calling ProjectsApi->put_projects_tags_id: #{e}"
432
+ end
433
+ ```
434
+
435
+ #### Using the put_projects_tags_id_with_http_info variant
436
+
437
+ This returns an Array which contains the response data, status code and headers.
438
+
439
+ > <Array(<ApiV1ProjectsTagSerializer>, Integer, Hash)> put_projects_tags_id_with_http_info(id, opts)
440
+
441
+ ```ruby
442
+ begin
443
+
444
+ data, status_code, headers = api_instance.put_projects_tags_id_with_http_info(id, opts)
445
+ p status_code # => 2xx
446
+ p headers # => { ... }
447
+ p data # => <ApiV1ProjectsTagSerializer>
448
+ rescue BulletTrainTest::ApiError => e
449
+ puts "Error when calling ProjectsApi->put_projects_tags_id_with_http_info: #{e}"
450
+ end
451
+ ```
452
+
453
+ ### Parameters
454
+
455
+ | Name | Type | Description | Notes |
456
+ | ---- | ---- | ----------- | ----- |
457
+ | **id** | **Integer** | Tag ID | |
458
+ | **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
459
+
460
+ ### Return type
461
+
462
+ [**ApiV1ProjectsTagSerializer**](ApiV1ProjectsTagSerializer.md)
463
+
464
+ ### Authorization
465
+
466
+ No authorization required
467
+
468
+ ### HTTP request headers
469
+
470
+ - **Content-Type**: application/json, multipart/form-data
471
+ - **Accept**: application/vnd.api+json
472
+