bullet_train_test 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22cc055be83d7902aee65fd30455f513a80279d092d7b447bc51bf5f586fe08c
4
- data.tar.gz: 7b8140bc989cc447eedb2a59eb0ce2a97c75294bd208bcde6cef1a52b5fba388
3
+ metadata.gz: 43714566ab46321bbc16c462a44f654aa5ca06684dead1c6c64d92eaad5b6374
4
+ data.tar.gz: b903a80ad11942cc98ac1ec7d5d246c5f4d5253017e56d124388cc409f62469f
5
5
  SHA512:
6
- metadata.gz: 6523b09536bb1c6636604e9989e6c3767197e182510e72b5e7f00928deeacc103a50f9922d34a10e4c6d7e009d5d5c79bf3681fefefc79ffd40b82ceacc2259d
7
- data.tar.gz: 69530bd558ed77f3aed7b7d5868bc41f992f6f4efeae46d8c2c48111ca53de2da39073f5be1d2a0926613ff3ae44a700cb81c95ecb0935459c282625e617be4f
6
+ metadata.gz: 1e395acb7ff9f1ee1620642221b671ccec8e2cbc9c796bfbf49c188f9722b93fea80b9bdf5ddf0f6a5d9f53fdb14d8ef167f31226397d94dbb553546eed20d78
7
+ data.tar.gz: 80f252ed130bd85127395f6bf35257f74e70718855246d5af0eef339668b9441f024aa73561aabeacbf9c5768585d5e0464fdafe4dc2787dbd145d7727a9a497
data/README.md CHANGED
@@ -7,7 +7,7 @@ You can update this description in `config/locales/en/application.en.yml`.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.0.6
10
+ - Package version: 1.0.7
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build bullet_train_test.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./bullet_train_test-1.0.6.gem
26
+ gem install ./bullet_train_test-1.0.7.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./bullet_train_test-1.0.6.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./bullet_train_test-1.0.7.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'bullet_train_test', '~> 1.0.6'
35
+ gem 'bullet_train_test', '~> 1.0.7'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -80,6 +80,7 @@ Class | Method | HTTP request | Description
80
80
  *BulletTrainTest::ProjectsApi* | [**delete_projects_id**](docs/ProjectsApi.md#delete_projects_id) | **DELETE** /projects/{id} |
81
81
  *BulletTrainTest::ProjectsApi* | [**delete_projects_tags_id**](docs/ProjectsApi.md#delete_projects_tags_id) | **DELETE** /projects/tags/{id} |
82
82
  *BulletTrainTest::ProjectsApi* | [**get_projects_id**](docs/ProjectsApi.md#get_projects_id) | **GET** /projects/{id} |
83
+ *BulletTrainTest::ProjectsApi* | [**get_projects_project_id_goals**](docs/ProjectsApi.md#get_projects_project_id_goals) | **GET** /projects/{project_id}/goals |
83
84
  *BulletTrainTest::ProjectsApi* | [**get_projects_tags_id**](docs/ProjectsApi.md#get_projects_tags_id) | **GET** /projects/tags/{id} |
84
85
  *BulletTrainTest::ProjectsApi* | [**post_projects_project_id_goals**](docs/ProjectsApi.md#post_projects_project_id_goals) | **POST** /projects/{project_id}/goals |
85
86
  *BulletTrainTest::ProjectsApi* | [**put_projects_id**](docs/ProjectsApi.md#put_projects_id) | **PUT** /projects/{id} |
data/docs/ProjectsApi.md CHANGED
@@ -7,6 +7,7 @@ All URIs are relative to *https://bullettrainapi.eu.ngrok.io/api/v1*
7
7
  | [**delete_projects_id**](ProjectsApi.md#delete_projects_id) | **DELETE** /projects/{id} | |
8
8
  | [**delete_projects_tags_id**](ProjectsApi.md#delete_projects_tags_id) | **DELETE** /projects/tags/{id} | |
9
9
  | [**get_projects_id**](ProjectsApi.md#get_projects_id) | **GET** /projects/{id} | |
10
+ | [**get_projects_project_id_goals**](ProjectsApi.md#get_projects_project_id_goals) | **GET** /projects/{project_id}/goals | |
10
11
  | [**get_projects_tags_id**](ProjectsApi.md#get_projects_tags_id) | **GET** /projects/tags/{id} | |
11
12
  | [**post_projects_project_id_goals**](ProjectsApi.md#post_projects_project_id_goals) | **POST** /projects/{project_id}/goals | |
12
13
  | [**put_projects_id**](ProjectsApi.md#put_projects_id) | **PUT** /projects/{id} | |
@@ -203,6 +204,76 @@ No authorization required
203
204
  - **Accept**: application/vnd.api+json
204
205
 
205
206
 
207
+ ## get_projects_project_id_goals
208
+
209
+ > <Array<ApiV1GoalSerializer>> get_projects_project_id_goals(project_id, opts)
210
+
211
+
212
+
213
+ List Goals
214
+
215
+ ### Examples
216
+
217
+ ```ruby
218
+ require 'time'
219
+ require 'bullet_train_test'
220
+
221
+ api_instance = BulletTrainTest::ProjectsApi.new
222
+ project_id = 56 # Integer | Project ID
223
+ opts = {
224
+ page: 56, # Integer | Page of results to fetch.
225
+ per_page: 56 # Integer | Number of results to return per page.
226
+ }
227
+
228
+ begin
229
+
230
+ result = api_instance.get_projects_project_id_goals(project_id, opts)
231
+ p result
232
+ rescue BulletTrainTest::ApiError => e
233
+ puts "Error when calling ProjectsApi->get_projects_project_id_goals: #{e}"
234
+ end
235
+ ```
236
+
237
+ #### Using the get_projects_project_id_goals_with_http_info variant
238
+
239
+ This returns an Array which contains the response data, status code and headers.
240
+
241
+ > <Array(<Array<ApiV1GoalSerializer>>, Integer, Hash)> get_projects_project_id_goals_with_http_info(project_id, opts)
242
+
243
+ ```ruby
244
+ begin
245
+
246
+ data, status_code, headers = api_instance.get_projects_project_id_goals_with_http_info(project_id, opts)
247
+ p status_code # => 2xx
248
+ p headers # => { ... }
249
+ p data # => <Array<ApiV1GoalSerializer>>
250
+ rescue BulletTrainTest::ApiError => e
251
+ puts "Error when calling ProjectsApi->get_projects_project_id_goals_with_http_info: #{e}"
252
+ end
253
+ ```
254
+
255
+ ### Parameters
256
+
257
+ | Name | Type | Description | Notes |
258
+ | ---- | ---- | ----------- | ----- |
259
+ | **project_id** | **Integer** | Project ID | |
260
+ | **page** | **Integer** | Page of results to fetch. | [optional][default to 1] |
261
+ | **per_page** | **Integer** | Number of results to return per page. | [optional][default to 100] |
262
+
263
+ ### Return type
264
+
265
+ [**Array&lt;ApiV1GoalSerializer&gt;**](ApiV1GoalSerializer.md)
266
+
267
+ ### Authorization
268
+
269
+ No authorization required
270
+
271
+ ### HTTP request headers
272
+
273
+ - **Content-Type**: Not defined
274
+ - **Accept**: application/vnd.api+json
275
+
276
+
206
277
  ## get_projects_tags_id
207
278
 
208
279
  > <ApiV1ProjectsTagSerializer> get_projects_tags_id(id)
@@ -198,6 +198,73 @@ module BulletTrainTest
198
198
  return data, status_code, headers
199
199
  end
200
200
 
201
+ # List Goals
202
+ # @param project_id [Integer] Project ID
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [Integer] :page Page of results to fetch. (default to 1)
205
+ # @option opts [Integer] :per_page Number of results to return per page. (default to 100)
206
+ # @return [Array<ApiV1GoalSerializer>]
207
+ def get_projects_project_id_goals(project_id, opts = {})
208
+ data, _status_code, _headers = get_projects_project_id_goals_with_http_info(project_id, opts)
209
+ data
210
+ end
211
+
212
+ # List Goals
213
+ # @param project_id [Integer] Project ID
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [Integer] :page Page of results to fetch.
216
+ # @option opts [Integer] :per_page Number of results to return per page.
217
+ # @return [Array<(Array<ApiV1GoalSerializer>, Integer, Hash)>] Array<ApiV1GoalSerializer> data, response status code and response headers
218
+ def get_projects_project_id_goals_with_http_info(project_id, opts = {})
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug 'Calling API: ProjectsApi.get_projects_project_id_goals ...'
221
+ end
222
+ # verify the required parameter 'project_id' is set
223
+ if @api_client.config.client_side_validation && project_id.nil?
224
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.get_projects_project_id_goals"
225
+ end
226
+ # resource path
227
+ local_var_path = '/projects/{project_id}/goals'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
228
+
229
+ # query parameters
230
+ query_params = opts[:query_params] || {}
231
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
232
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
233
+
234
+ # header parameters
235
+ header_params = opts[:header_params] || {}
236
+ # HTTP header 'Accept' (if needed)
237
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
238
+
239
+ # form parameters
240
+ form_params = opts[:form_params] || {}
241
+
242
+ # http body (model)
243
+ post_body = opts[:debug_body]
244
+
245
+ # return_type
246
+ return_type = opts[:debug_return_type] || 'Array<ApiV1GoalSerializer>'
247
+
248
+ # auth_names
249
+ auth_names = opts[:debug_auth_names] || []
250
+
251
+ new_options = opts.merge(
252
+ :operation => :"ProjectsApi.get_projects_project_id_goals",
253
+ :header_params => header_params,
254
+ :query_params => query_params,
255
+ :form_params => form_params,
256
+ :body => post_body,
257
+ :auth_names => auth_names,
258
+ :return_type => return_type
259
+ )
260
+
261
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug "API called: ProjectsApi#get_projects_project_id_goals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ end
265
+ return data, status_code, headers
266
+ end
267
+
201
268
  # Retrieve a Tag
202
269
  # @param id [Integer] Tag ID
203
270
  # @param [Hash] opts the optional parameters
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module BulletTrainTest
14
- VERSION = '1.0.6'
14
+ VERSION = '1.0.7'
15
15
  end
@@ -65,6 +65,19 @@ describe 'ProjectsApi' do
65
65
  end
66
66
  end
67
67
 
68
+ # unit tests for get_projects_project_id_goals
69
+ # List Goals
70
+ # @param project_id Project ID
71
+ # @param [Hash] opts the optional parameters
72
+ # @option opts [Integer] :page Page of results to fetch.
73
+ # @option opts [Integer] :per_page Number of results to return per page.
74
+ # @return [Array<ApiV1GoalSerializer>]
75
+ describe 'get_projects_project_id_goals test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
68
81
  # unit tests for get_projects_tags_id
69
82
  # Retrieve a Tag
70
83
  # @param id Tag ID
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator