bullet_train_test 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/docs/TeamsApi.md
ADDED
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
# BulletTrainTest::TeamsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://bullettrainapi.eu.ngrok.io/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_teams**](TeamsApi.md#get_teams) | **GET** /teams | |
|
|
8
|
+
| [**get_teams_id**](TeamsApi.md#get_teams_id) | **GET** /teams/{id} | |
|
|
9
|
+
| [**get_teams_team_id_projects**](TeamsApi.md#get_teams_team_id_projects) | **GET** /teams/{team_id}/projects | |
|
|
10
|
+
| [**get_teams_team_id_projects_tags**](TeamsApi.md#get_teams_team_id_projects_tags) | **GET** /teams/{team_id}/projects/tags | |
|
|
11
|
+
| [**get_teams_team_id_projects_three**](TeamsApi.md#get_teams_team_id_projects_three) | **GET** /teams/{team_id}/projects/three | |
|
|
12
|
+
| [**post_teams**](TeamsApi.md#post_teams) | **POST** /teams | |
|
|
13
|
+
| [**post_teams_team_id_projects**](TeamsApi.md#post_teams_team_id_projects) | **POST** /teams/{team_id}/projects | |
|
|
14
|
+
| [**post_teams_team_id_projects_tags**](TeamsApi.md#post_teams_team_id_projects_tags) | **POST** /teams/{team_id}/projects/tags | |
|
|
15
|
+
| [**put_teams_id**](TeamsApi.md#put_teams_id) | **PUT** /teams/{id} | |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## get_teams
|
|
19
|
+
|
|
20
|
+
> <Array<ApiV1TeamSerializer>> get_teams(opts)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
List Teams
|
|
25
|
+
|
|
26
|
+
### Examples
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'time'
|
|
30
|
+
require 'bullet_train_test'
|
|
31
|
+
|
|
32
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
33
|
+
opts = {
|
|
34
|
+
page: 56, # Integer | Page of results to fetch.
|
|
35
|
+
per_page: 56 # Integer | Number of results to return per page.
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
|
|
40
|
+
result = api_instance.get_teams(opts)
|
|
41
|
+
p result
|
|
42
|
+
rescue BulletTrainTest::ApiError => e
|
|
43
|
+
puts "Error when calling TeamsApi->get_teams: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the get_teams_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<Array<ApiV1TeamSerializer>>, Integer, Hash)> get_teams_with_http_info(opts)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
|
|
56
|
+
data, status_code, headers = api_instance.get_teams_with_http_info(opts)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <Array<ApiV1TeamSerializer>>
|
|
60
|
+
rescue BulletTrainTest::ApiError => e
|
|
61
|
+
puts "Error when calling TeamsApi->get_teams_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **page** | **Integer** | Page of results to fetch. | [optional][default to 1] |
|
|
70
|
+
| **per_page** | **Integer** | Number of results to return per page. | [optional][default to 100] |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**Array<ApiV1TeamSerializer>**](ApiV1TeamSerializer.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
No authorization required
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/vnd.api+json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## get_teams_id
|
|
87
|
+
|
|
88
|
+
> <ApiV1TeamSerializer> get_teams_id(id)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Retrieve a Team
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'bullet_train_test'
|
|
99
|
+
|
|
100
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
101
|
+
id = 56 # Integer | Team ID
|
|
102
|
+
|
|
103
|
+
begin
|
|
104
|
+
|
|
105
|
+
result = api_instance.get_teams_id(id)
|
|
106
|
+
p result
|
|
107
|
+
rescue BulletTrainTest::ApiError => e
|
|
108
|
+
puts "Error when calling TeamsApi->get_teams_id: #{e}"
|
|
109
|
+
end
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Using the get_teams_id_with_http_info variant
|
|
113
|
+
|
|
114
|
+
This returns an Array which contains the response data, status code and headers.
|
|
115
|
+
|
|
116
|
+
> <Array(<ApiV1TeamSerializer>, Integer, Hash)> get_teams_id_with_http_info(id)
|
|
117
|
+
|
|
118
|
+
```ruby
|
|
119
|
+
begin
|
|
120
|
+
|
|
121
|
+
data, status_code, headers = api_instance.get_teams_id_with_http_info(id)
|
|
122
|
+
p status_code # => 2xx
|
|
123
|
+
p headers # => { ... }
|
|
124
|
+
p data # => <ApiV1TeamSerializer>
|
|
125
|
+
rescue BulletTrainTest::ApiError => e
|
|
126
|
+
puts "Error when calling TeamsApi->get_teams_id_with_http_info: #{e}"
|
|
127
|
+
end
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
| Name | Type | Description | Notes |
|
|
133
|
+
| ---- | ---- | ----------- | ----- |
|
|
134
|
+
| **id** | **Integer** | Team ID | |
|
|
135
|
+
|
|
136
|
+
### Return type
|
|
137
|
+
|
|
138
|
+
[**ApiV1TeamSerializer**](ApiV1TeamSerializer.md)
|
|
139
|
+
|
|
140
|
+
### Authorization
|
|
141
|
+
|
|
142
|
+
No authorization required
|
|
143
|
+
|
|
144
|
+
### HTTP request headers
|
|
145
|
+
|
|
146
|
+
- **Content-Type**: Not defined
|
|
147
|
+
- **Accept**: application/vnd.api+json
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## get_teams_team_id_projects
|
|
151
|
+
|
|
152
|
+
> <Array<ApiV1ProjectSerializer>> get_teams_team_id_projects(team_id, opts)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
List Projects
|
|
157
|
+
|
|
158
|
+
### Examples
|
|
159
|
+
|
|
160
|
+
```ruby
|
|
161
|
+
require 'time'
|
|
162
|
+
require 'bullet_train_test'
|
|
163
|
+
|
|
164
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
165
|
+
team_id = 56 # Integer | Team ID
|
|
166
|
+
opts = {
|
|
167
|
+
page: 56, # Integer | Page of results to fetch.
|
|
168
|
+
per_page: 56 # Integer | Number of results to return per page.
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
begin
|
|
172
|
+
|
|
173
|
+
result = api_instance.get_teams_team_id_projects(team_id, opts)
|
|
174
|
+
p result
|
|
175
|
+
rescue BulletTrainTest::ApiError => e
|
|
176
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects: #{e}"
|
|
177
|
+
end
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
#### Using the get_teams_team_id_projects_with_http_info variant
|
|
181
|
+
|
|
182
|
+
This returns an Array which contains the response data, status code and headers.
|
|
183
|
+
|
|
184
|
+
> <Array(<Array<ApiV1ProjectSerializer>>, Integer, Hash)> get_teams_team_id_projects_with_http_info(team_id, opts)
|
|
185
|
+
|
|
186
|
+
```ruby
|
|
187
|
+
begin
|
|
188
|
+
|
|
189
|
+
data, status_code, headers = api_instance.get_teams_team_id_projects_with_http_info(team_id, opts)
|
|
190
|
+
p status_code # => 2xx
|
|
191
|
+
p headers # => { ... }
|
|
192
|
+
p data # => <Array<ApiV1ProjectSerializer>>
|
|
193
|
+
rescue BulletTrainTest::ApiError => e
|
|
194
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects_with_http_info: #{e}"
|
|
195
|
+
end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
| Name | Type | Description | Notes |
|
|
201
|
+
| ---- | ---- | ----------- | ----- |
|
|
202
|
+
| **team_id** | **Integer** | Team ID | |
|
|
203
|
+
| **page** | **Integer** | Page of results to fetch. | [optional][default to 1] |
|
|
204
|
+
| **per_page** | **Integer** | Number of results to return per page. | [optional][default to 100] |
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
[**Array<ApiV1ProjectSerializer>**](ApiV1ProjectSerializer.md)
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
No authorization required
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: Not defined
|
|
217
|
+
- **Accept**: application/vnd.api+json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## get_teams_team_id_projects_tags
|
|
221
|
+
|
|
222
|
+
> <Array<ApiV1ProjectsTagSerializer>> get_teams_team_id_projects_tags(team_id, opts)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
List Tags
|
|
227
|
+
|
|
228
|
+
### Examples
|
|
229
|
+
|
|
230
|
+
```ruby
|
|
231
|
+
require 'time'
|
|
232
|
+
require 'bullet_train_test'
|
|
233
|
+
|
|
234
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
235
|
+
team_id = 56 # Integer | Team ID
|
|
236
|
+
opts = {
|
|
237
|
+
page: 56, # Integer | Page of results to fetch.
|
|
238
|
+
per_page: 56 # Integer | Number of results to return per page.
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
begin
|
|
242
|
+
|
|
243
|
+
result = api_instance.get_teams_team_id_projects_tags(team_id, opts)
|
|
244
|
+
p result
|
|
245
|
+
rescue BulletTrainTest::ApiError => e
|
|
246
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects_tags: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### Using the get_teams_team_id_projects_tags_with_http_info variant
|
|
251
|
+
|
|
252
|
+
This returns an Array which contains the response data, status code and headers.
|
|
253
|
+
|
|
254
|
+
> <Array(<Array<ApiV1ProjectsTagSerializer>>, Integer, Hash)> get_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
|
255
|
+
|
|
256
|
+
```ruby
|
|
257
|
+
begin
|
|
258
|
+
|
|
259
|
+
data, status_code, headers = api_instance.get_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
|
260
|
+
p status_code # => 2xx
|
|
261
|
+
p headers # => { ... }
|
|
262
|
+
p data # => <Array<ApiV1ProjectsTagSerializer>>
|
|
263
|
+
rescue BulletTrainTest::ApiError => e
|
|
264
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects_tags_with_http_info: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
| Name | Type | Description | Notes |
|
|
271
|
+
| ---- | ---- | ----------- | ----- |
|
|
272
|
+
| **team_id** | **Integer** | Team ID | |
|
|
273
|
+
| **page** | **Integer** | Page of results to fetch. | [optional][default to 1] |
|
|
274
|
+
| **per_page** | **Integer** | Number of results to return per page. | [optional][default to 100] |
|
|
275
|
+
|
|
276
|
+
### Return type
|
|
277
|
+
|
|
278
|
+
[**Array<ApiV1ProjectsTagSerializer>**](ApiV1ProjectsTagSerializer.md)
|
|
279
|
+
|
|
280
|
+
### Authorization
|
|
281
|
+
|
|
282
|
+
No authorization required
|
|
283
|
+
|
|
284
|
+
### HTTP request headers
|
|
285
|
+
|
|
286
|
+
- **Content-Type**: Not defined
|
|
287
|
+
- **Accept**: application/vnd.api+json
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## get_teams_team_id_projects_three
|
|
291
|
+
|
|
292
|
+
> <Array<ApiV1ProjectSerializer>> get_teams_team_id_projects_three(team_id, opts)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
translation missing: en.projects.api.three
|
|
297
|
+
|
|
298
|
+
### Examples
|
|
299
|
+
|
|
300
|
+
```ruby
|
|
301
|
+
require 'time'
|
|
302
|
+
require 'bullet_train_test'
|
|
303
|
+
|
|
304
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
305
|
+
team_id = 56 # Integer | Team ID
|
|
306
|
+
opts = {
|
|
307
|
+
page: 56, # Integer | Page of results to fetch.
|
|
308
|
+
per_page: 56 # Integer | Number of results to return per page.
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
begin
|
|
312
|
+
|
|
313
|
+
result = api_instance.get_teams_team_id_projects_three(team_id, opts)
|
|
314
|
+
p result
|
|
315
|
+
rescue BulletTrainTest::ApiError => e
|
|
316
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects_three: #{e}"
|
|
317
|
+
end
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
#### Using the get_teams_team_id_projects_three_with_http_info variant
|
|
321
|
+
|
|
322
|
+
This returns an Array which contains the response data, status code and headers.
|
|
323
|
+
|
|
324
|
+
> <Array(<Array<ApiV1ProjectSerializer>>, Integer, Hash)> get_teams_team_id_projects_three_with_http_info(team_id, opts)
|
|
325
|
+
|
|
326
|
+
```ruby
|
|
327
|
+
begin
|
|
328
|
+
|
|
329
|
+
data, status_code, headers = api_instance.get_teams_team_id_projects_three_with_http_info(team_id, opts)
|
|
330
|
+
p status_code # => 2xx
|
|
331
|
+
p headers # => { ... }
|
|
332
|
+
p data # => <Array<ApiV1ProjectSerializer>>
|
|
333
|
+
rescue BulletTrainTest::ApiError => e
|
|
334
|
+
puts "Error when calling TeamsApi->get_teams_team_id_projects_three_with_http_info: #{e}"
|
|
335
|
+
end
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Parameters
|
|
339
|
+
|
|
340
|
+
| Name | Type | Description | Notes |
|
|
341
|
+
| ---- | ---- | ----------- | ----- |
|
|
342
|
+
| **team_id** | **Integer** | Team ID | |
|
|
343
|
+
| **page** | **Integer** | Page of results to fetch. | [optional][default to 1] |
|
|
344
|
+
| **per_page** | **Integer** | Number of results to return per page. | [optional][default to 3] |
|
|
345
|
+
|
|
346
|
+
### Return type
|
|
347
|
+
|
|
348
|
+
[**Array<ApiV1ProjectSerializer>**](ApiV1ProjectSerializer.md)
|
|
349
|
+
|
|
350
|
+
### Authorization
|
|
351
|
+
|
|
352
|
+
No authorization required
|
|
353
|
+
|
|
354
|
+
### HTTP request headers
|
|
355
|
+
|
|
356
|
+
- **Content-Type**: Not defined
|
|
357
|
+
- **Accept**: application/vnd.api+json
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
## post_teams
|
|
361
|
+
|
|
362
|
+
> <ApiV1TeamSerializer> post_teams(opts)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
Add a New Team
|
|
367
|
+
|
|
368
|
+
### Examples
|
|
369
|
+
|
|
370
|
+
```ruby
|
|
371
|
+
require 'time'
|
|
372
|
+
require 'bullet_train_test'
|
|
373
|
+
|
|
374
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
375
|
+
opts = {
|
|
376
|
+
unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
begin
|
|
380
|
+
|
|
381
|
+
result = api_instance.post_teams(opts)
|
|
382
|
+
p result
|
|
383
|
+
rescue BulletTrainTest::ApiError => e
|
|
384
|
+
puts "Error when calling TeamsApi->post_teams: #{e}"
|
|
385
|
+
end
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
#### Using the post_teams_with_http_info variant
|
|
389
|
+
|
|
390
|
+
This returns an Array which contains the response data, status code and headers.
|
|
391
|
+
|
|
392
|
+
> <Array(<ApiV1TeamSerializer>, Integer, Hash)> post_teams_with_http_info(opts)
|
|
393
|
+
|
|
394
|
+
```ruby
|
|
395
|
+
begin
|
|
396
|
+
|
|
397
|
+
data, status_code, headers = api_instance.post_teams_with_http_info(opts)
|
|
398
|
+
p status_code # => 2xx
|
|
399
|
+
p headers # => { ... }
|
|
400
|
+
p data # => <ApiV1TeamSerializer>
|
|
401
|
+
rescue BulletTrainTest::ApiError => e
|
|
402
|
+
puts "Error when calling TeamsApi->post_teams_with_http_info: #{e}"
|
|
403
|
+
end
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Parameters
|
|
407
|
+
|
|
408
|
+
| Name | Type | Description | Notes |
|
|
409
|
+
| ---- | ---- | ----------- | ----- |
|
|
410
|
+
| **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
|
|
411
|
+
|
|
412
|
+
### Return type
|
|
413
|
+
|
|
414
|
+
[**ApiV1TeamSerializer**](ApiV1TeamSerializer.md)
|
|
415
|
+
|
|
416
|
+
### Authorization
|
|
417
|
+
|
|
418
|
+
No authorization required
|
|
419
|
+
|
|
420
|
+
### HTTP request headers
|
|
421
|
+
|
|
422
|
+
- **Content-Type**: application/json, multipart/form-data
|
|
423
|
+
- **Accept**: application/vnd.api+json
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
## post_teams_team_id_projects
|
|
427
|
+
|
|
428
|
+
> <ApiV1ProjectSerializer> post_teams_team_id_projects(team_id, opts)
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
Add a New Project
|
|
433
|
+
|
|
434
|
+
### Examples
|
|
435
|
+
|
|
436
|
+
```ruby
|
|
437
|
+
require 'time'
|
|
438
|
+
require 'bullet_train_test'
|
|
439
|
+
|
|
440
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
441
|
+
team_id = 56 # Integer | Team ID
|
|
442
|
+
opts = {
|
|
443
|
+
unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
begin
|
|
447
|
+
|
|
448
|
+
result = api_instance.post_teams_team_id_projects(team_id, opts)
|
|
449
|
+
p result
|
|
450
|
+
rescue BulletTrainTest::ApiError => e
|
|
451
|
+
puts "Error when calling TeamsApi->post_teams_team_id_projects: #{e}"
|
|
452
|
+
end
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
#### Using the post_teams_team_id_projects_with_http_info variant
|
|
456
|
+
|
|
457
|
+
This returns an Array which contains the response data, status code and headers.
|
|
458
|
+
|
|
459
|
+
> <Array(<ApiV1ProjectSerializer>, Integer, Hash)> post_teams_team_id_projects_with_http_info(team_id, opts)
|
|
460
|
+
|
|
461
|
+
```ruby
|
|
462
|
+
begin
|
|
463
|
+
|
|
464
|
+
data, status_code, headers = api_instance.post_teams_team_id_projects_with_http_info(team_id, opts)
|
|
465
|
+
p status_code # => 2xx
|
|
466
|
+
p headers # => { ... }
|
|
467
|
+
p data # => <ApiV1ProjectSerializer>
|
|
468
|
+
rescue BulletTrainTest::ApiError => e
|
|
469
|
+
puts "Error when calling TeamsApi->post_teams_team_id_projects_with_http_info: #{e}"
|
|
470
|
+
end
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
### Parameters
|
|
474
|
+
|
|
475
|
+
| Name | Type | Description | Notes |
|
|
476
|
+
| ---- | ---- | ----------- | ----- |
|
|
477
|
+
| **team_id** | **Integer** | Team ID | |
|
|
478
|
+
| **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
|
|
479
|
+
|
|
480
|
+
### Return type
|
|
481
|
+
|
|
482
|
+
[**ApiV1ProjectSerializer**](ApiV1ProjectSerializer.md)
|
|
483
|
+
|
|
484
|
+
### Authorization
|
|
485
|
+
|
|
486
|
+
No authorization required
|
|
487
|
+
|
|
488
|
+
### HTTP request headers
|
|
489
|
+
|
|
490
|
+
- **Content-Type**: application/json, multipart/form-data
|
|
491
|
+
- **Accept**: application/vnd.api+json
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
## post_teams_team_id_projects_tags
|
|
495
|
+
|
|
496
|
+
> <ApiV1ProjectsTagSerializer> post_teams_team_id_projects_tags(team_id, opts)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
Add a New Tag
|
|
501
|
+
|
|
502
|
+
### Examples
|
|
503
|
+
|
|
504
|
+
```ruby
|
|
505
|
+
require 'time'
|
|
506
|
+
require 'bullet_train_test'
|
|
507
|
+
|
|
508
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
509
|
+
team_id = 56 # Integer | Team ID
|
|
510
|
+
opts = {
|
|
511
|
+
unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
begin
|
|
515
|
+
|
|
516
|
+
result = api_instance.post_teams_team_id_projects_tags(team_id, opts)
|
|
517
|
+
p result
|
|
518
|
+
rescue BulletTrainTest::ApiError => e
|
|
519
|
+
puts "Error when calling TeamsApi->post_teams_team_id_projects_tags: #{e}"
|
|
520
|
+
end
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
#### Using the post_teams_team_id_projects_tags_with_http_info variant
|
|
524
|
+
|
|
525
|
+
This returns an Array which contains the response data, status code and headers.
|
|
526
|
+
|
|
527
|
+
> <Array(<ApiV1ProjectsTagSerializer>, Integer, Hash)> post_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
|
528
|
+
|
|
529
|
+
```ruby
|
|
530
|
+
begin
|
|
531
|
+
|
|
532
|
+
data, status_code, headers = api_instance.post_teams_team_id_projects_tags_with_http_info(team_id, opts)
|
|
533
|
+
p status_code # => 2xx
|
|
534
|
+
p headers # => { ... }
|
|
535
|
+
p data # => <ApiV1ProjectsTagSerializer>
|
|
536
|
+
rescue BulletTrainTest::ApiError => e
|
|
537
|
+
puts "Error when calling TeamsApi->post_teams_team_id_projects_tags_with_http_info: #{e}"
|
|
538
|
+
end
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### Parameters
|
|
542
|
+
|
|
543
|
+
| Name | Type | Description | Notes |
|
|
544
|
+
| ---- | ---- | ----------- | ----- |
|
|
545
|
+
| **team_id** | **Integer** | Team ID | |
|
|
546
|
+
| **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
|
|
547
|
+
|
|
548
|
+
### Return type
|
|
549
|
+
|
|
550
|
+
[**ApiV1ProjectsTagSerializer**](ApiV1ProjectsTagSerializer.md)
|
|
551
|
+
|
|
552
|
+
### Authorization
|
|
553
|
+
|
|
554
|
+
No authorization required
|
|
555
|
+
|
|
556
|
+
### HTTP request headers
|
|
557
|
+
|
|
558
|
+
- **Content-Type**: application/json, multipart/form-data
|
|
559
|
+
- **Accept**: application/vnd.api+json
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
## put_teams_id
|
|
563
|
+
|
|
564
|
+
> <ApiV1TeamSerializer> put_teams_id(id, opts)
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
Update a Team
|
|
569
|
+
|
|
570
|
+
### Examples
|
|
571
|
+
|
|
572
|
+
```ruby
|
|
573
|
+
require 'time'
|
|
574
|
+
require 'bullet_train_test'
|
|
575
|
+
|
|
576
|
+
api_instance = BulletTrainTest::TeamsApi.new
|
|
577
|
+
id = 56 # Integer | Team ID
|
|
578
|
+
opts = {
|
|
579
|
+
unknown_base_type: TODO # UNKNOWN_BASE_TYPE |
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
begin
|
|
583
|
+
|
|
584
|
+
result = api_instance.put_teams_id(id, opts)
|
|
585
|
+
p result
|
|
586
|
+
rescue BulletTrainTest::ApiError => e
|
|
587
|
+
puts "Error when calling TeamsApi->put_teams_id: #{e}"
|
|
588
|
+
end
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
#### Using the put_teams_id_with_http_info variant
|
|
592
|
+
|
|
593
|
+
This returns an Array which contains the response data, status code and headers.
|
|
594
|
+
|
|
595
|
+
> <Array(<ApiV1TeamSerializer>, Integer, Hash)> put_teams_id_with_http_info(id, opts)
|
|
596
|
+
|
|
597
|
+
```ruby
|
|
598
|
+
begin
|
|
599
|
+
|
|
600
|
+
data, status_code, headers = api_instance.put_teams_id_with_http_info(id, opts)
|
|
601
|
+
p status_code # => 2xx
|
|
602
|
+
p headers # => { ... }
|
|
603
|
+
p data # => <ApiV1TeamSerializer>
|
|
604
|
+
rescue BulletTrainTest::ApiError => e
|
|
605
|
+
puts "Error when calling TeamsApi->put_teams_id_with_http_info: #{e}"
|
|
606
|
+
end
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### Parameters
|
|
610
|
+
|
|
611
|
+
| Name | Type | Description | Notes |
|
|
612
|
+
| ---- | ---- | ----------- | ----- |
|
|
613
|
+
| **id** | **Integer** | Team ID | |
|
|
614
|
+
| **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | [optional] |
|
|
615
|
+
|
|
616
|
+
### Return type
|
|
617
|
+
|
|
618
|
+
[**ApiV1TeamSerializer**](ApiV1TeamSerializer.md)
|
|
619
|
+
|
|
620
|
+
### Authorization
|
|
621
|
+
|
|
622
|
+
No authorization required
|
|
623
|
+
|
|
624
|
+
### HTTP request headers
|
|
625
|
+
|
|
626
|
+
- **Content-Type**: application/json, multipart/form-data
|
|
627
|
+
- **Accept**: application/vnd.api+json
|
|
628
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host=""
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id=""
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id=""
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note=""
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|