wcc_ministries_client 1.0.1 → 1.0.2
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/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/bin/gen +3 -1
- data/docs/MinistryApi.md +5 -5
- data/lib/wcc_ministries_client/api/ministry_api.rb +5 -5
- data/lib/wcc_ministries_client/configuration.rb +2 -2
- data/lib/wcc_ministries_client/version.rb +1 -1
- data/lib/wcc_ministries_client.rb +2 -1
- data/pkg/wcc_ministries_client-1.0.1.gem +0 -0
- data/pkg/wcc_ministries_client-1.0.2.gem +0 -0
- data/spec/configuration_spec.rb +3 -3
- data/swagger.json +5 -5
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b96140c4e35013a90b6a4905f48568e2489f85488b659ebb6ab31c3b2b330637
|
4
|
+
data.tar.gz: '05569aac8a34144e765b5aa3717e28463f9f045591415e010acca83f5b24c907'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d2b2841adae8e81d80912809510471cd73de14532c5a7bd461a81263b0e69bba6c6e573e718eea4ef779cb60b9f70ae6ab985096997c062d07979e20e39ca3
|
7
|
+
data.tar.gz: 656932c3195877d7f06a979c634e29250ad17531d3a0957c2b76f554b241f716741b4580203cb6b076c5445270a7e3b664a744c1f07820ac0dcad96449cdf874
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -71,12 +71,12 @@ end
|
|
71
71
|
|
72
72
|
## Documentation for API Endpoints
|
73
73
|
|
74
|
-
All URIs are relative to *https://www.watermark.org/api/v1
|
74
|
+
All URIs are relative to *https://www.watermark.org/api/v1*
|
75
75
|
|
76
76
|
Class | Method | HTTP request | Description
|
77
77
|
------------ | ------------- | ------------- | -------------
|
78
|
-
*WCC::Ministries::Client::MinistryApi* | [**get_ministry**](docs/MinistryApi.md#get_ministry) | **GET** /{id} | Get a single ministry by ID
|
79
|
-
*WCC::Ministries::Client::MinistryApi* | [**list_ministries**](docs/MinistryApi.md#list_ministries) | **GET** / | Query for a list of ministries matching some criteria
|
78
|
+
*WCC::Ministries::Client::MinistryApi* | [**get_ministry**](docs/MinistryApi.md#get_ministry) | **GET** /ministries/{id} | Get a single ministry by ID
|
79
|
+
*WCC::Ministries::Client::MinistryApi* | [**list_ministries**](docs/MinistryApi.md#list_ministries) | **GET** /ministries | Query for a list of ministries matching some criteria
|
80
80
|
|
81
81
|
|
82
82
|
## Documentation for Models
|
data/bin/gen
CHANGED
data/docs/MinistryApi.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# WCC::Ministries::Client::MinistryApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://www.watermark.org/api/v1
|
3
|
+
All URIs are relative to *https://www.watermark.org/api/v1*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**get_ministry**](MinistryApi.md#get_ministry) | **GET** /{id} | Get a single ministry by ID |
|
8
|
-
| [**list_ministries**](MinistryApi.md#list_ministries) | **GET** / | Query for a list of ministries matching some criteria |
|
7
|
+
| [**get_ministry**](MinistryApi.md#get_ministry) | **GET** /ministries/{id} | Get a single ministry by ID |
|
8
|
+
| [**list_ministries**](MinistryApi.md#list_ministries) | **GET** /ministries | Query for a list of ministries matching some criteria |
|
9
9
|
|
10
10
|
|
11
11
|
## get_ministry
|
@@ -86,7 +86,7 @@ require 'wcc_ministries_client'
|
|
86
86
|
|
87
87
|
api_instance = WCC::Ministries::Client::MinistryApi.new
|
88
88
|
opts = {
|
89
|
-
|
89
|
+
filter_code: 'filter_code_example', # String | Match a single ministry by unique code
|
90
90
|
skip: 56, # Integer | Number of records to skip for pagination
|
91
91
|
limit: 56 # Integer | Number of records to return in this page
|
92
92
|
}
|
@@ -122,7 +122,7 @@ end
|
|
122
122
|
|
123
123
|
| Name | Type | Description | Notes |
|
124
124
|
| ---- | ---- | ----------- | ----- |
|
125
|
-
| **
|
125
|
+
| **filter_code** | **String** | Match a single ministry by unique code | [optional] |
|
126
126
|
| **skip** | **Integer** | Number of records to skip for pagination | [optional] |
|
127
127
|
| **limit** | **Integer** | Number of records to return in this page | [optional] |
|
128
128
|
|
@@ -41,7 +41,7 @@ module WCC::Ministries::Client
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'id' when calling MinistryApi.get_ministry"
|
42
42
|
end
|
43
43
|
# resource path
|
44
|
-
local_var_path = '/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
44
|
+
local_var_path = '/ministries/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
45
45
|
|
46
46
|
# query parameters
|
47
47
|
query_params = opts[:query_params] || {}
|
@@ -83,7 +83,7 @@ module WCC::Ministries::Client
|
|
83
83
|
# Query for a list of ministries matching some criteria
|
84
84
|
# Search for ministries by some query parameters
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
|
-
# @option opts [String] :
|
86
|
+
# @option opts [String] :filter_code Match a single ministry by unique code
|
87
87
|
# @option opts [Integer] :skip Number of records to skip for pagination
|
88
88
|
# @option opts [Integer] :limit Number of records to return in this page
|
89
89
|
# @return [InlineResponse200]
|
@@ -95,7 +95,7 @@ module WCC::Ministries::Client
|
|
95
95
|
# Query for a list of ministries matching some criteria
|
96
96
|
# Search for ministries by some query parameters
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [String] :
|
98
|
+
# @option opts [String] :filter_code Match a single ministry by unique code
|
99
99
|
# @option opts [Integer] :skip Number of records to skip for pagination
|
100
100
|
# @option opts [Integer] :limit Number of records to return in this page
|
101
101
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
@@ -104,11 +104,11 @@ module WCC::Ministries::Client
|
|
104
104
|
@api_client.config.logger.debug 'Calling API: MinistryApi.list_ministries ...'
|
105
105
|
end
|
106
106
|
# resource path
|
107
|
-
local_var_path = '/'
|
107
|
+
local_var_path = '/ministries'
|
108
108
|
|
109
109
|
# query parameters
|
110
110
|
query_params = opts[:query_params] || {}
|
111
|
-
query_params[:'filter[
|
111
|
+
query_params[:'filter[code]'] = opts[:'filter_code'] if !opts[:'filter_code'].nil?
|
112
112
|
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
113
113
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
114
114
|
|
@@ -140,7 +140,7 @@ module WCC::Ministries::Client
|
|
140
140
|
def initialize
|
141
141
|
@scheme = 'https'
|
142
142
|
@host = 'www.watermark.org'
|
143
|
-
@base_path = '/api/v1
|
143
|
+
@base_path = '/api/v1'
|
144
144
|
@server_index = 0
|
145
145
|
@server_operation_index = {}
|
146
146
|
@server_variables = {}
|
@@ -222,7 +222,7 @@ module WCC::Ministries::Client
|
|
222
222
|
def server_settings
|
223
223
|
[
|
224
224
|
{
|
225
|
-
url: "https://www.watermark.org/api/v1
|
225
|
+
url: "https://www.watermark.org/api/v1",
|
226
226
|
description: "Watermark.org production server",
|
227
227
|
}
|
228
228
|
]
|
@@ -9,11 +9,12 @@ Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
|
+
# Always require "version" first
|
13
|
+
require 'wcc_ministries_client/version'
|
12
14
|
|
13
15
|
# Common files
|
14
16
|
require 'wcc_ministries_client/api_client'
|
15
17
|
require 'wcc_ministries_client/api_error'
|
16
|
-
require 'wcc_ministries_client/version'
|
17
18
|
require 'wcc_ministries_client/configuration'
|
18
19
|
|
19
20
|
# Models
|
Binary file
|
Binary file
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe WCC::Ministries::Client::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("https://www.watermark.org/api/v1
|
21
|
+
# uri = URI.parse("https://www.watermark.org/api/v1")
|
22
22
|
# WCC::Ministries::Client.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe WCC::Ministries::Client::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("https://www.watermark.org/api/v1
|
31
|
+
# expect(config.base_url).to eq("https://www.watermark.org/api/v1")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("https://www.watermark.org/api/v1
|
38
|
+
# expect(config.base_url).to eq("https://www.watermark.org/api/v1")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/swagger.json
CHANGED
@@ -14,14 +14,14 @@
|
|
14
14
|
},
|
15
15
|
"servers" : [ {
|
16
16
|
"description" : "Watermark.org production server",
|
17
|
-
"url" : "https://www.watermark.org/api/v1
|
17
|
+
"url" : "https://www.watermark.org/api/v1"
|
18
18
|
} ],
|
19
19
|
"tags" : [ {
|
20
20
|
"name" : "ministry",
|
21
21
|
"description" : "Endpoints to get Ministry entities"
|
22
22
|
} ],
|
23
23
|
"paths" : {
|
24
|
-
"/" : {
|
24
|
+
"/ministries" : {
|
25
25
|
"get" : {
|
26
26
|
"tags" : [ "ministry" ],
|
27
27
|
"summary" : "Query for a list of ministries matching some criteria",
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"description" : "Search for ministries by some query parameters\n",
|
30
30
|
"parameters" : [ {
|
31
31
|
"in" : "query",
|
32
|
-
"name" : "filter[
|
33
|
-
"description" : "Match a single ministry by unique
|
32
|
+
"name" : "filter[code]",
|
33
|
+
"description" : "Match a single ministry by unique code",
|
34
34
|
"required" : false,
|
35
35
|
"schema" : {
|
36
36
|
"type" : "string"
|
@@ -62,7 +62,7 @@
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
},
|
65
|
-
"/{id}" : {
|
65
|
+
"/ministries/{id}" : {
|
66
66
|
"get" : {
|
67
67
|
"tags" : [ "ministry" ],
|
68
68
|
"summary" : "Get a single ministry by ID",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc_ministries_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Community Church
|
@@ -110,6 +110,8 @@ files:
|
|
110
110
|
- lib/wcc_ministries_client/version.rb
|
111
111
|
- openapitools.json
|
112
112
|
- pkg/wcc_ministries_client-1.0.0.gem
|
113
|
+
- pkg/wcc_ministries_client-1.0.1.gem
|
114
|
+
- pkg/wcc_ministries_client-1.0.2.gem
|
113
115
|
- spec/api/ministry_api_spec.rb
|
114
116
|
- spec/api_client_spec.rb
|
115
117
|
- spec/configuration_spec.rb
|
@@ -155,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
157
|
version: '0'
|
156
158
|
requirements: []
|
157
159
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.7.6.
|
160
|
+
rubygems_version: 2.7.6.2
|
159
161
|
signing_key:
|
160
162
|
specification_version: 4
|
161
163
|
summary: WCC Ministries API Ruby Gem
|