File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ Please follow the [installation](#installation) procedure and then run the follo
65
65
require '{ {{gemName} }}'
66
66
{ {#apiInfo} }{ {#apis} }{ {#-first} }{ {#operations} }{ {#operation} }{ {#-first} }{ {#hasAuthMethods} }
67
67
# Setup authorization
68
- { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {^isBasicBearer } }
68
+ { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {#isBasicBasic } }
69
69
# Configure HTTP basic authorization: { {{name} }}
70
70
config.username = 'YOUR_USERNAME'
71
- config.password = 'YOUR_PASSWORD'{ {/isBasicBearer } }{ {#isBasicBearer} }
71
+ config.password = 'YOUR_PASSWORD'{ {/isBasicBasic } }{ {#isBasicBearer} }
72
72
# Configure Bearer authorization{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }: { {{name} }}
73
73
config.access_token = 'YOUR_BEARER_TOKEN'{ {/isBasicBearer} }{ {/isBasic} }{ {#isApiKey} }
74
74
# Configure API key authorization: { {{name} }}
@@ -131,8 +131,8 @@ Class | Method | HTTP request | Description
131
131
- **Location**: { {#isKeyInQuery} }URL query string{ {/isKeyInQuery} }{ {#isKeyInHeader} }HTTP header{ {/isKeyInHeader} }
132
132
{ {/isApiKey} }
133
133
{ {#isBasic} }
134
- { {^isBasicBearer } }- **Type**: HTTP basic authentication
135
- { {/isBasicBearer } }{ {#isBasicBearer} }- **Type**: Bearer authentication{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }
134
+ { {#isBasicBasic } }- **Type**: HTTP basic authentication
135
+ { {/isBasicBasic } }{ {#isBasicBearer} }- **Type**: Bearer authentication{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }
136
136
{ {/isBasicBearer} }
137
137
{ {/isBasic} }
138
138
{ {#isOAuth} }
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ Method | HTTP request | Description
27
27
require '{ {{gemName} }}'
28
28
{ {#hasAuthMethods} }
29
29
# setup authorization
30
- { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {^isBasicBearer } }
30
+ { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {#isBasicBasic } }
31
31
# Configure HTTP basic authorization: { {{name} }}
32
32
config.username = 'YOUR USERNAME'
33
- config.password = 'YOUR PASSWORD'{ {/isBasicBearer } }{ {#isBasicBearer} }
33
+ config.password = 'YOUR PASSWORD'{ {/isBasicBasic } }{ {#isBasicBearer} }
34
34
# Configure Bearer authorization{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }: { {{name} }}
35
35
config.access_token = 'YOUR_BEARER_TOKEN'{ {/isBasicBearer} }{ {/isBasic} }{ {#isApiKey} }
36
36
# Configure API key authorization: { {{name} }}
Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ module {{moduleName}}
176
176
},
177
177
{ {/isApiKey} }
178
178
{ {#isBasic} }
179
- { {^isBasicBearer } }
179
+ { {#isBasicBasic } }
180
180
'{ {name} }' =>
181
181
{
182
182
type: ' basic' ,
183
183
in: ' header' ,
184
184
key: ' Authorization' ,
185
185
value: basic_auth_token
186
186
} ,
187
- { {/isBasicBearer } }
187
+ { {/isBasicBasic } }
188
188
{ {#isBasicBearer} }
189
189
'{ {name} }' =>
190
190
{
You can’t perform that action at this time.
0 commit comments