minty 1.0.0 → 1.1.0
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 +4 -16
- data/Gemfile.lock +28 -208
- data/README.md +58 -57
- data/Rakefile +4 -27
- data/docs/DefaultApi.md +217 -0
- data/docs/RedirectUrl.md +18 -0
- data/git_push.sh +57 -0
- data/lib/minty/api/default_api.rb +210 -0
- data/lib/minty/api_client.rb +388 -0
- data/lib/minty/api_error.rb +53 -0
- data/lib/minty/configuration.rb +275 -0
- data/lib/minty/models/redirect_url.rb +216 -0
- data/lib/minty/version.rb +9 -3
- data/lib/minty.rb +33 -7
- data/minty.gemspec +19 -32
- data/pkg/minty-1.1.0.gem +0 -0
- data/publish_rubygem.sh +1 -1
- data/spec/api/default_api_spec.rb +65 -0
- data/spec/api_client_spec.rb +222 -0
- data/spec/configuration_spec.rb +38 -0
- data/spec/models/redirect_url_spec.rb +28 -0
- data/spec/spec_helper.rb +95 -63
- metadata +37 -292
- data/.bundle/config +0 -4
- data/.devcontainer/Dockerfile +0 -19
- data/.devcontainer/devcontainer.json +0 -37
- data/.env.example +0 -2
- data/.gemrelease +0 -2
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -33
- data/.github/dependabot.yml +0 -10
- data/.github/stale.yml +0 -20
- data/.gitignore +0 -18
- data/.rspec +0 -3
- data/.rubocop.yml +0 -9
- data/CODE_OF_CONDUCT.md +0 -3
- data/DEPLOYMENT.md +0 -61
- data/DEVELOPMENT.md +0 -35
- data/EXAMPLES.md +0 -195
- data/Guardfile +0 -39
- data/LICENSE +0 -21
- data/Makefile +0 -5
- data/RUBYGEM.md +0 -9
- data/codecov.yml +0 -22
- data/lib/minty/algorithm.rb +0 -7
- data/lib/minty/api/authentication_endpoints.rb +0 -30
- data/lib/minty/api/v2.rb +0 -8
- data/lib/minty/client.rb +0 -7
- data/lib/minty/exception.rb +0 -50
- data/lib/minty/mixins/api_token_struct.rb +0 -4
- data/lib/minty/mixins/headers.rb +0 -19
- data/lib/minty/mixins/httpproxy.rb +0 -125
- data/lib/minty/mixins/initializer.rb +0 -38
- data/lib/minty/mixins/validation.rb +0 -113
- data/lib/minty/mixins.rb +0 -23
- data/lib/minty_client.rb +0 -4
- data/spec/integration/lib/minty/api/api_authentication_spec.rb +0 -122
- data/spec/integration/lib/minty/minty_client_spec.rb +0 -92
- data/spec/lib/minty/client_spec.rb +0 -223
- data/spec/lib/minty/mixins/httpproxy_spec.rb +0 -658
- data/spec/lib/minty/mixins/initializer_spec.rb +0 -121
- data/spec/lib/minty/mixins/token_management_spec.rb +0 -129
- data/spec/lib/minty/mixins/validation_spec.rb +0 -559
- data/spec/support/credentials.rb +0 -14
- data/spec/support/dummy_class.rb +0 -20
- data/spec/support/dummy_class_for_proxy.rb +0 -6
- data/spec/support/dummy_class_for_restclient.rb +0 -4
- data/spec/support/dummy_class_for_tokens.rb +0 -18
- data/spec/support/import_users.json +0 -13
- data/spec/support/stub_response.rb +0 -3
data/docs/DefaultApi.md
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
# MintyApi::DefaultApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://[tenant].minty.page/api/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**api_v1_forgot_password_url_get**](DefaultApi.md#api_v1_forgot_password_url_get) | **GET** /api/v1/forgot_password_url | forgot_password_url |
|
8
|
+
| [**api_v1_sign_in_url_get**](DefaultApi.md#api_v1_sign_in_url_get) | **GET** /api/v1/sign_in_url | sign_in_url summary |
|
9
|
+
| [**api_v1_sign_up_url_get**](DefaultApi.md#api_v1_sign_up_url_get) | **GET** /api/v1/sign_up_url | sign_up_url |
|
10
|
+
|
11
|
+
|
12
|
+
## api_v1_forgot_password_url_get
|
13
|
+
|
14
|
+
> <RedirectUrl> api_v1_forgot_password_url_get(api_minty_application_id)
|
15
|
+
|
16
|
+
forgot_password_url
|
17
|
+
|
18
|
+
forgot_password_url
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'minty'
|
25
|
+
# setup authorization
|
26
|
+
MintyApi.configure do |config|
|
27
|
+
# Configure OAuth2 access token for authorization: accessCode
|
28
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = MintyApi::DefaultApi.new
|
32
|
+
api_minty_application_id = 'api_minty_application_id_example' # String |
|
33
|
+
|
34
|
+
begin
|
35
|
+
# forgot_password_url
|
36
|
+
result = api_instance.api_v1_forgot_password_url_get(api_minty_application_id)
|
37
|
+
p result
|
38
|
+
rescue MintyApi::ApiError => e
|
39
|
+
puts "Error when calling DefaultApi->api_v1_forgot_password_url_get: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the api_v1_forgot_password_url_get_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<RedirectUrl>, Integer, Hash)> api_v1_forgot_password_url_get_with_http_info(api_minty_application_id)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
# forgot_password_url
|
52
|
+
data, status_code, headers = api_instance.api_v1_forgot_password_url_get_with_http_info(api_minty_application_id)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <RedirectUrl>
|
56
|
+
rescue MintyApi::ApiError => e
|
57
|
+
puts "Error when calling DefaultApi->api_v1_forgot_password_url_get_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **api_minty_application_id** | **String** | | |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**RedirectUrl**](RedirectUrl.md)
|
70
|
+
|
71
|
+
### Authorization
|
72
|
+
|
73
|
+
[accessCode](../README.md#accessCode)
|
74
|
+
|
75
|
+
### HTTP request headers
|
76
|
+
|
77
|
+
- **Content-Type**: Not defined
|
78
|
+
- **Accept**: application/json
|
79
|
+
|
80
|
+
|
81
|
+
## api_v1_sign_in_url_get
|
82
|
+
|
83
|
+
> <RedirectUrl> api_v1_sign_in_url_get(api_minty_application_id)
|
84
|
+
|
85
|
+
sign_in_url summary
|
86
|
+
|
87
|
+
sign_in_url description
|
88
|
+
|
89
|
+
### Examples
|
90
|
+
|
91
|
+
```ruby
|
92
|
+
require 'time'
|
93
|
+
require 'minty'
|
94
|
+
# setup authorization
|
95
|
+
MintyApi.configure do |config|
|
96
|
+
# Configure OAuth2 access token for authorization: accessCode
|
97
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
98
|
+
end
|
99
|
+
|
100
|
+
api_instance = MintyApi::DefaultApi.new
|
101
|
+
api_minty_application_id = 'api_minty_application_id_example' # String |
|
102
|
+
|
103
|
+
begin
|
104
|
+
# sign_in_url summary
|
105
|
+
result = api_instance.api_v1_sign_in_url_get(api_minty_application_id)
|
106
|
+
p result
|
107
|
+
rescue MintyApi::ApiError => e
|
108
|
+
puts "Error when calling DefaultApi->api_v1_sign_in_url_get: #{e}"
|
109
|
+
end
|
110
|
+
```
|
111
|
+
|
112
|
+
#### Using the api_v1_sign_in_url_get_with_http_info variant
|
113
|
+
|
114
|
+
This returns an Array which contains the response data, status code and headers.
|
115
|
+
|
116
|
+
> <Array(<RedirectUrl>, Integer, Hash)> api_v1_sign_in_url_get_with_http_info(api_minty_application_id)
|
117
|
+
|
118
|
+
```ruby
|
119
|
+
begin
|
120
|
+
# sign_in_url summary
|
121
|
+
data, status_code, headers = api_instance.api_v1_sign_in_url_get_with_http_info(api_minty_application_id)
|
122
|
+
p status_code # => 2xx
|
123
|
+
p headers # => { ... }
|
124
|
+
p data # => <RedirectUrl>
|
125
|
+
rescue MintyApi::ApiError => e
|
126
|
+
puts "Error when calling DefaultApi->api_v1_sign_in_url_get_with_http_info: #{e}"
|
127
|
+
end
|
128
|
+
```
|
129
|
+
|
130
|
+
### Parameters
|
131
|
+
|
132
|
+
| Name | Type | Description | Notes |
|
133
|
+
| ---- | ---- | ----------- | ----- |
|
134
|
+
| **api_minty_application_id** | **String** | | |
|
135
|
+
|
136
|
+
### Return type
|
137
|
+
|
138
|
+
[**RedirectUrl**](RedirectUrl.md)
|
139
|
+
|
140
|
+
### Authorization
|
141
|
+
|
142
|
+
[accessCode](../README.md#accessCode)
|
143
|
+
|
144
|
+
### HTTP request headers
|
145
|
+
|
146
|
+
- **Content-Type**: Not defined
|
147
|
+
- **Accept**: application/json
|
148
|
+
|
149
|
+
|
150
|
+
## api_v1_sign_up_url_get
|
151
|
+
|
152
|
+
> <RedirectUrl> api_v1_sign_up_url_get(api_minty_application_id)
|
153
|
+
|
154
|
+
sign_up_url
|
155
|
+
|
156
|
+
sign_up_url
|
157
|
+
|
158
|
+
### Examples
|
159
|
+
|
160
|
+
```ruby
|
161
|
+
require 'time'
|
162
|
+
require 'minty'
|
163
|
+
# setup authorization
|
164
|
+
MintyApi.configure do |config|
|
165
|
+
# Configure OAuth2 access token for authorization: accessCode
|
166
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
167
|
+
end
|
168
|
+
|
169
|
+
api_instance = MintyApi::DefaultApi.new
|
170
|
+
api_minty_application_id = 'api_minty_application_id_example' # String |
|
171
|
+
|
172
|
+
begin
|
173
|
+
# sign_up_url
|
174
|
+
result = api_instance.api_v1_sign_up_url_get(api_minty_application_id)
|
175
|
+
p result
|
176
|
+
rescue MintyApi::ApiError => e
|
177
|
+
puts "Error when calling DefaultApi->api_v1_sign_up_url_get: #{e}"
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
#### Using the api_v1_sign_up_url_get_with_http_info variant
|
182
|
+
|
183
|
+
This returns an Array which contains the response data, status code and headers.
|
184
|
+
|
185
|
+
> <Array(<RedirectUrl>, Integer, Hash)> api_v1_sign_up_url_get_with_http_info(api_minty_application_id)
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
begin
|
189
|
+
# sign_up_url
|
190
|
+
data, status_code, headers = api_instance.api_v1_sign_up_url_get_with_http_info(api_minty_application_id)
|
191
|
+
p status_code # => 2xx
|
192
|
+
p headers # => { ... }
|
193
|
+
p data # => <RedirectUrl>
|
194
|
+
rescue MintyApi::ApiError => e
|
195
|
+
puts "Error when calling DefaultApi->api_v1_sign_up_url_get_with_http_info: #{e}"
|
196
|
+
end
|
197
|
+
```
|
198
|
+
|
199
|
+
### Parameters
|
200
|
+
|
201
|
+
| Name | Type | Description | Notes |
|
202
|
+
| ---- | ---- | ----------- | ----- |
|
203
|
+
| **api_minty_application_id** | **String** | | |
|
204
|
+
|
205
|
+
### Return type
|
206
|
+
|
207
|
+
[**RedirectUrl**](RedirectUrl.md)
|
208
|
+
|
209
|
+
### Authorization
|
210
|
+
|
211
|
+
[accessCode](../README.md#accessCode)
|
212
|
+
|
213
|
+
### HTTP request headers
|
214
|
+
|
215
|
+
- **Content-Type**: Not defined
|
216
|
+
- **Accept**: application/json
|
217
|
+
|
data/docs/RedirectUrl.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# MintyApi::RedirectUrl
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **redirect_url** | **String** | The redirection URI. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'minty'
|
13
|
+
|
14
|
+
instance = MintyApi::RedirectUrl.new(
|
15
|
+
redirect_url: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
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="github.com"
|
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="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="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="Minor update"
|
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'
|
@@ -0,0 +1,210 @@
|
|
1
|
+
=begin
|
2
|
+
#Minty API
|
3
|
+
|
4
|
+
#Minty API
|
5
|
+
|
6
|
+
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'cgi'
|
10
|
+
|
11
|
+
module MintyApi
|
12
|
+
class DefaultApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# forgot_password_url
|
19
|
+
# forgot_password_url
|
20
|
+
# @param api_minty_application_id [String]
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [RedirectUrl]
|
23
|
+
def api_v1_forgot_password_url_get(api_minty_application_id, opts = {})
|
24
|
+
data, _status_code, _headers = api_v1_forgot_password_url_get_with_http_info(api_minty_application_id, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# forgot_password_url
|
29
|
+
# forgot_password_url
|
30
|
+
# @param api_minty_application_id [String]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
|
33
|
+
def api_v1_forgot_password_url_get_with_http_info(api_minty_application_id, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_forgot_password_url_get ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'api_minty_application_id' is set
|
38
|
+
if @api_client.config.client_side_validation && api_minty_application_id.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_forgot_password_url_get"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/api/v1/forgot_password_url'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = opts[:form_params] || {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = opts[:debug_body]
|
58
|
+
|
59
|
+
# return_type
|
60
|
+
return_type = opts[:debug_return_type] || 'RedirectUrl'
|
61
|
+
|
62
|
+
# auth_names
|
63
|
+
auth_names = opts[:debug_auth_names] || ['accessCode']
|
64
|
+
|
65
|
+
new_options = opts.merge(
|
66
|
+
:operation => :"DefaultApi.api_v1_forgot_password_url_get",
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type
|
73
|
+
)
|
74
|
+
|
75
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
76
|
+
if @api_client.config.debugging
|
77
|
+
@api_client.config.logger.debug "API called: DefaultApi#api_v1_forgot_password_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
end
|
79
|
+
return data, status_code, headers
|
80
|
+
end
|
81
|
+
|
82
|
+
# sign_in_url summary
|
83
|
+
# sign_in_url description
|
84
|
+
# @param api_minty_application_id [String]
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [RedirectUrl]
|
87
|
+
def api_v1_sign_in_url_get(api_minty_application_id, opts = {})
|
88
|
+
data, _status_code, _headers = api_v1_sign_in_url_get_with_http_info(api_minty_application_id, opts)
|
89
|
+
data
|
90
|
+
end
|
91
|
+
|
92
|
+
# sign_in_url summary
|
93
|
+
# sign_in_url description
|
94
|
+
# @param api_minty_application_id [String]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
|
97
|
+
def api_v1_sign_in_url_get_with_http_info(api_minty_application_id, opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_sign_in_url_get ...'
|
100
|
+
end
|
101
|
+
# verify the required parameter 'api_minty_application_id' is set
|
102
|
+
if @api_client.config.client_side_validation && api_minty_application_id.nil?
|
103
|
+
fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_sign_in_url_get"
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/api/v1/sign_in_url'
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = opts[:header_params] || {}
|
113
|
+
# HTTP header 'Accept' (if needed)
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
115
|
+
header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = opts[:form_params] || {}
|
119
|
+
|
120
|
+
# http body (model)
|
121
|
+
post_body = opts[:debug_body]
|
122
|
+
|
123
|
+
# return_type
|
124
|
+
return_type = opts[:debug_return_type] || 'RedirectUrl'
|
125
|
+
|
126
|
+
# auth_names
|
127
|
+
auth_names = opts[:debug_auth_names] || ['accessCode']
|
128
|
+
|
129
|
+
new_options = opts.merge(
|
130
|
+
:operation => :"DefaultApi.api_v1_sign_in_url_get",
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: DefaultApi#api_v1_sign_in_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# sign_up_url
|
147
|
+
# sign_up_url
|
148
|
+
# @param api_minty_application_id [String]
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [RedirectUrl]
|
151
|
+
def api_v1_sign_up_url_get(api_minty_application_id, opts = {})
|
152
|
+
data, _status_code, _headers = api_v1_sign_up_url_get_with_http_info(api_minty_application_id, opts)
|
153
|
+
data
|
154
|
+
end
|
155
|
+
|
156
|
+
# sign_up_url
|
157
|
+
# sign_up_url
|
158
|
+
# @param api_minty_application_id [String]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
|
161
|
+
def api_v1_sign_up_url_get_with_http_info(api_minty_application_id, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_sign_up_url_get ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'api_minty_application_id' is set
|
166
|
+
if @api_client.config.client_side_validation && api_minty_application_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_sign_up_url_get"
|
168
|
+
end
|
169
|
+
# resource path
|
170
|
+
local_var_path = '/api/v1/sign_up_url'
|
171
|
+
|
172
|
+
# query parameters
|
173
|
+
query_params = opts[:query_params] || {}
|
174
|
+
|
175
|
+
# header parameters
|
176
|
+
header_params = opts[:header_params] || {}
|
177
|
+
# HTTP header 'Accept' (if needed)
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
|
+
header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = opts[:form_params] || {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = opts[:debug_body]
|
186
|
+
|
187
|
+
# return_type
|
188
|
+
return_type = opts[:debug_return_type] || 'RedirectUrl'
|
189
|
+
|
190
|
+
# auth_names
|
191
|
+
auth_names = opts[:debug_auth_names] || ['accessCode']
|
192
|
+
|
193
|
+
new_options = opts.merge(
|
194
|
+
:operation => :"DefaultApi.api_v1_sign_up_url_get",
|
195
|
+
:header_params => header_params,
|
196
|
+
:query_params => query_params,
|
197
|
+
:form_params => form_params,
|
198
|
+
:body => post_body,
|
199
|
+
:auth_names => auth_names,
|
200
|
+
:return_type => return_type
|
201
|
+
)
|
202
|
+
|
203
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
204
|
+
if @api_client.config.debugging
|
205
|
+
@api_client.config.logger.debug "API called: DefaultApi#api_v1_sign_up_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
|
+
end
|
207
|
+
return data, status_code, headers
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|