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
6565require '{ {{gemName} }}'
6666{ {#apiInfo} }{ {#apis} }{ {#-first} }{ {#operations} }{ {#operation} }{ {#-first} }{ {#hasAuthMethods} }
6767# Setup authorization
68- { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {^isBasicBearer } }
68+ { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {#isBasicBasic } }
6969 # Configure HTTP basic authorization: { {{name} }}
7070 config.username = 'YOUR_USERNAME'
71- config.password = 'YOUR_PASSWORD'{ {/isBasicBearer } }{ {#isBasicBearer} }
71+ config.password = 'YOUR_PASSWORD'{ {/isBasicBasic } }{ {#isBasicBearer} }
7272 # Configure Bearer authorization{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }: { {{name} }}
7373 config.access_token = 'YOUR_BEARER_TOKEN'{ {/isBasicBearer} }{ {/isBasic} }{ {#isApiKey} }
7474 # Configure API key authorization: { {{name} }}
@@ -131,8 +131,8 @@ Class | Method | HTTP request | Description
131131- **Location**: { {#isKeyInQuery} }URL query string{ {/isKeyInQuery} }{ {#isKeyInHeader} }HTTP header{ {/isKeyInHeader} }
132132{ {/isApiKey} }
133133{ {#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} }
136136{ {/isBasicBearer} }
137137{ {/isBasic} }
138138{ {#isOAuth} }
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ Method | HTTP request | Description
2727require '{ {{gemName} }}'
2828{ {#hasAuthMethods} }
2929# setup authorization
30- { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {^isBasicBearer } }
30+ { {{moduleName} }}.configure do |config|{ {#authMethods} }{ {#isBasic} }{ {#isBasicBasic } }
3131 # Configure HTTP basic authorization: { {{name} }}
3232 config.username = 'YOUR USERNAME'
33- config.password = 'YOUR PASSWORD'{ {/isBasicBearer } }{ {#isBasicBearer} }
33+ config.password = 'YOUR PASSWORD'{ {/isBasicBasic } }{ {#isBasicBearer} }
3434 # Configure Bearer authorization{ {#bearerFormat} } ({ {{.} }}){ {/bearerFormat} }: { {{name} }}
3535 config.access_token = 'YOUR_BEARER_TOKEN'{ {/isBasicBearer} }{ {/isBasic} }{ {#isApiKey} }
3636 # Configure API key authorization: { {{name} }}
Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ module {{moduleName}}
176176 },
177177{ {/isApiKey} }
178178{ {#isBasic} }
179- { {^isBasicBearer } }
179+ { {#isBasicBasic } }
180180 '{ {name} }' =>
181181 {
182182 type: ' basic' ,
183183 in: ' header' ,
184184 key: ' Authorization' ,
185185 value: basic_auth_token
186186 } ,
187- { {/isBasicBearer } }
187+ { {/isBasicBasic } }
188188{ {#isBasicBearer} }
189189 '{ {name} }' =>
190190 {
You can’t perform that action at this time.
0 commit comments