vantage-client 0.0.6 → 0.0.7
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 +4 -4
- data/docs/PingApi.md +5 -4
- data/lib/vantage-client/api/ping_api.rb +7 -6
- data/lib/vantage-client/version.rb +1 -1
- data/spec/api/ping_api_spec.rb +1 -1
- data/vantage-client-0.0.6.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6a0af3a45f67d8cf5838279ea6f28953c1e180d0812e24f6b14d5ee9d7f9f7e
|
4
|
+
data.tar.gz: cd582ae7e48374a0f74cbc474211620e019f85e15664d3722c59f3fa408db166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3729a7109b1cfba748b9f14d33013529c0f113b9ff1da8c261fb9b8f08b3fc8063608b6a16c318f754c0492c30e2c2997921a809a47bb6e013399f9b33481eb4
|
7
|
+
data.tar.gz: 93393ad7d1d35997e91aa6cd7f4299c3797dc7819be7a8c0a8e0b0f8d258870475c5672f936aa821501fa8d0d3fcda0988625b571026ac6e2f1ea3fdff9665df
|
data/docs/PingApi.md
CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
|
9
9
|
|
10
10
|
# **ping**
|
11
|
-
> ping
|
11
|
+
> String ping
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -27,7 +27,8 @@ end
|
|
27
27
|
api_instance = Vantage::PingApi.new
|
28
28
|
|
29
29
|
begin
|
30
|
-
api_instance.ping
|
30
|
+
result = api_instance.ping
|
31
|
+
p result
|
31
32
|
rescue Vantage::ApiError => e
|
32
33
|
puts "Exception when calling PingApi->ping: #{e}"
|
33
34
|
end
|
@@ -38,7 +39,7 @@ This endpoint does not need any parameter.
|
|
38
39
|
|
39
40
|
### Return type
|
40
41
|
|
41
|
-
|
42
|
+
**String**
|
42
43
|
|
43
44
|
### Authorization
|
44
45
|
|
@@ -47,7 +48,7 @@ nil (empty response body)
|
|
47
48
|
### HTTP request headers
|
48
49
|
|
49
50
|
- **Content-Type**: Not defined
|
50
|
-
- **Accept**:
|
51
|
+
- **Accept**: text/plain
|
51
52
|
|
52
53
|
|
53
54
|
|
@@ -21,15 +21,15 @@ module Vantage
|
|
21
21
|
end
|
22
22
|
# This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
|
-
# @return [
|
24
|
+
# @return [String]
|
25
25
|
def ping(opts = {})
|
26
|
-
ping_with_http_info(opts)
|
27
|
-
|
26
|
+
data, _status_code, _headers = ping_with_http_info(opts)
|
27
|
+
data
|
28
28
|
end
|
29
29
|
|
30
30
|
# This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [Array<(
|
32
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
33
33
|
def ping_with_http_info(opts = {})
|
34
34
|
if @api_client.config.debugging
|
35
35
|
@api_client.config.logger.debug 'Calling API: PingApi.ping ...'
|
@@ -43,7 +43,7 @@ module Vantage
|
|
43
43
|
# header parameters
|
44
44
|
header_params = {}
|
45
45
|
# HTTP header 'Accept' (if needed)
|
46
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
46
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
47
47
|
|
48
48
|
# form parameters
|
49
49
|
form_params = {}
|
@@ -56,7 +56,8 @@ module Vantage
|
|
56
56
|
:query_params => query_params,
|
57
57
|
:form_params => form_params,
|
58
58
|
:body => post_body,
|
59
|
-
:auth_names => auth_names
|
59
|
+
:auth_names => auth_names,
|
60
|
+
:return_type => 'String')
|
60
61
|
if @api_client.config.debugging
|
61
62
|
@api_client.config.logger.debug "API called: PingApi#ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
62
63
|
end
|
data/spec/api/ping_api_spec.rb
CHANGED
@@ -35,7 +35,7 @@ describe 'PingApi' do
|
|
35
35
|
# unit tests for ping
|
36
36
|
# This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [
|
38
|
+
# @return [String]
|
39
39
|
describe 'ping test' do
|
40
40
|
it 'should work' do
|
41
41
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vantage-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -259,6 +259,7 @@ files:
|
|
259
259
|
- spec/models/service_spec.rb
|
260
260
|
- spec/models/services_spec.rb
|
261
261
|
- spec/spec_helper.rb
|
262
|
+
- vantage-client-0.0.6.gem
|
262
263
|
- vantage-client.gemspec
|
263
264
|
homepage: https://vantage.sh
|
264
265
|
licenses:
|