primary_connect_client 0.4.0 → 0.7.0

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: 440e1d9e5c3a04589f6f359308713c1d91bfd8ee2b2c1166e9be5190ca5a2daf
4
- data.tar.gz: 86b54448a4f909d84cff2d0f0265cb6ff217dd7df1cfb4d7062646457cd426b3
3
+ metadata.gz: ba82e52a3d18bd2b24337335cbfbea864f8903f6dd68d2b09f8cca576fab6cf1
4
+ data.tar.gz: eae26b56c08d55907f49301e7fecb8c0ea79bae26144bc4a000b5b7a814a9690
5
5
  SHA512:
6
- metadata.gz: 76f7e3f0a51c88c205b05f6448d5b71f54cffa82f70466df0dd853c6cfff0e566781f2a834ac7bf071cc12771410eaaf1f0e8d104646bc722fc421d58fd3413e
7
- data.tar.gz: 4d9d1f3b2c46b444a565c8e6dbc5e1745c31c5b7f20e44d427d3eeed25e3418583fbf88479aa516bc83b6bc7821fab2ca7acfcb11b7772d0440214e1f0a2d7ab
6
+ metadata.gz: 6aa8f80b8bf0b301013b638b6d53621f5c83a56d0ac3b1fd7422bd5af3ccdfec97b960355bfe13739069df2d44469a84978add44c8f4bef0bc53fd71f3a692aa
7
+ data.tar.gz: ef62ede457c62613f0424a3927042cebe420b0cef1517c4023b79f477bd7ffd108032eb6d8087fa9064f9d74e5fe0e78f011c44937afcd6d2733ff4e73402eed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Added lab report endpoint
6
+
7
+ ## 0.6.0
8
+
9
+ - Bumped `primary_connect_proto` to `0.7.3`
10
+
11
+ ## 0.5.0
12
+
13
+ - Bumped `primary_connect_proto` to `0.7.2`
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  - Bumped `primary_connect_proto` to `0.7.1`
data/README.md CHANGED
@@ -84,6 +84,7 @@ All URIs are relative to *https://connect.primary.health*
84
84
  | ---------------------------------- | --------------------------------------------------- | ---------------------------------------------- | ------------ |
85
85
  | _PrimaryConnectClient::DefaultApi_ | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
86
86
  | _PrimaryConnectClient::DefaultApi_ | [**get_order**](docs/DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order |
87
+ | _PrimaryConnectClient::DefaultApi_ | [**get_lab_report**](docs/DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report |
87
88
  | _PrimaryConnectClient::DefaultApi_ | [**get_result**](docs/DefaultApi.md#get_result) | **GET** /api/v1/orders/{order_id}/results/{id} | show result |
88
89
  | _PrimaryConnectClient::DefaultApi_ | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
89
90
  | _PrimaryConnectClient::DefaultApi_ | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
@@ -139,6 +139,64 @@ module PrimaryConnectClient
139
139
  return data, status_code, headers
140
140
  end
141
141
 
142
+ # show lab report
143
+ # @param result_id [String] Result id
144
+ # @param [Hash] opts the optional parameters
145
+ # @return report
146
+ def get_lab_report(result_id, opts = {})
147
+ get_lab_report_with_http_info(result_id, opts)
148
+ end
149
+
150
+ # show lab report
151
+ # @param result_id [String] Result id
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
154
+ def get_lab_report_with_http_info(result_id, opts = {})
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_lab_report ...'
157
+ end
158
+ # verify the required parameter 'result_id' is set
159
+ if @api_client.config.client_side_validation && result_id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'result_id' when calling DefaultApi.get_lab_report"
161
+ end
162
+ # resource path
163
+ local_var_path = '/api/v1/results/{result_id}/lab_report'.sub('{' + 'result_id' + '}', CGI.escape(result_id.to_s))
164
+
165
+ # query parameters
166
+ query_params = opts[:query_params] || {}
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:debug_body]
176
+
177
+ # return_type
178
+ return_type = opts[:debug_return_type] || 'String'
179
+
180
+ # auth_names
181
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
182
+
183
+ new_options = opts.merge(
184
+ :operation => :"DefaultApi.get_lab_report",
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => return_type
191
+ )
192
+
193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "API called: DefaultApi#get_lab_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
+ end
197
+ return data
198
+ end
199
+
142
200
  # show result
143
201
  # @param order_id [String] Order id
144
202
  # @param id [String] Result id
@@ -109,7 +109,8 @@ module PrimaryConnectClient
109
109
  :ssl_verifyhost => _verify_ssl_host,
110
110
  :sslcert => @config.cert_file,
111
111
  :sslkey => @config.key_file,
112
- :verbose => @config.debugging
112
+ :verbose => @config.debugging,
113
+ :followlocation => true
113
114
  }
114
115
 
115
116
  # set custom cert, if provided
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -154,7 +154,7 @@ module PrimaryConnectClient
154
154
  @params_encoding = nil
155
155
  @cert_file = nil
156
156
  @key_file = nil
157
- @debugging = false
157
+ @debugging = true
158
158
  @inject_format = false
159
159
  @force_ending_format = false
160
160
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrimaryConnectClient
4
- VERSION = '0.4.0'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.required_ruby_version = ">= 2.4"
26
26
 
27
27
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
28
- s.add_runtime_dependency 'primary_connect_proto', '~> 0.7.1'
28
+ s.add_runtime_dependency 'primary_connect_proto', '~> 0.7.3'
29
29
 
30
30
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
31
31
 
@@ -109,4 +109,16 @@ describe 'DefaultApi' do
109
109
  end
110
110
  end
111
111
 
112
+ # unit tests for api_v1_lab_report_get
113
+ # show result
114
+ # @param order_id Order id
115
+ # @param result_id Result id
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [nil]
118
+ describe 'api_v1_lab_report_get test' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ end
122
+ end
123
+
112
124
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primary_connect_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.7.1
39
+ version: 0.7.3
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.7.1
46
+ version: 0.7.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement