forked from loafle/openapi-generator-original
fix_ruby_documentation_apikey_name (#19742)
This commit is contained in:
parent
2544fa2928
commit
c6eb9e0e09
@ -75,9 +75,9 @@ require '{{{gemName}}}'
|
|||||||
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
||||||
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } {{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
|
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } {{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
config.api_key['{{{name}}}'] = 'YOUR API KEY'
|
config.api_key['{{{keyParamName}}}'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['{{{name}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
# config.api_key_prefix['{{{keyParamName}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
config.access_token = 'YOUR ACCESS TOKEN'
|
config.access_token = 'YOUR ACCESS TOKEN'
|
||||||
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
||||||
|
@ -37,9 +37,9 @@ require '{{{gemName}}}'
|
|||||||
# Configure Bearer authorization{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}: {{{name}}}
|
# Configure Bearer authorization{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}: {{{name}}}
|
||||||
config.access_token = 'YOUR_BEARER_TOKEN'{{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
|
config.access_token = 'YOUR_BEARER_TOKEN'{{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
config.api_key['{{{name}}}'] = 'YOUR API KEY'
|
config.api_key['{{{keyParamName}}}'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['{{{name}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
# config.api_key_prefix['{{{keyParamName}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
config.access_token = 'YOUR ACCESS TOKEN'{{/isOAuth}}
|
config.access_token = 'YOUR ACCESS TOKEN'{{/isOAuth}}
|
||||||
{{/authMethods}}end
|
{{/authMethods}}end
|
||||||
|
@ -60,14 +60,14 @@ require 'x_auth_id_alias'
|
|||||||
# Setup authorization
|
# Setup authorization
|
||||||
XAuthIDAlias.configure do |config|
|
XAuthIDAlias.configure do |config|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
|
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
||||||
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
|
# config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Configure API key authorization: api_key_query
|
||||||
config.api_key['api_key'] = 'YOUR API KEY'
|
config.api_key['api_key'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['api_key'] = 'Bearer'
|
# config.api_key_prefix['api_key'] = 'Bearer'
|
||||||
|
|
||||||
# Configure API key authorization: api_key_query
|
|
||||||
config.api_key['api_key_query'] = 'YOUR API KEY'
|
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
||||||
# config.api_key_prefix['api_key_query'] = 'Bearer'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = XAuthIDAlias::UsageApi.new
|
api_instance = XAuthIDAlias::UsageApi.new
|
||||||
|
@ -26,14 +26,14 @@ require 'x_auth_id_alias'
|
|||||||
# setup authorization
|
# setup authorization
|
||||||
XAuthIDAlias.configure do |config|
|
XAuthIDAlias.configure do |config|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
|
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
||||||
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
|
# config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Configure API key authorization: api_key_query
|
||||||
config.api_key['api_key'] = 'YOUR API KEY'
|
config.api_key['api_key'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['api_key'] = 'Bearer'
|
# config.api_key_prefix['api_key'] = 'Bearer'
|
||||||
|
|
||||||
# Configure API key authorization: api_key_query
|
|
||||||
config.api_key['api_key_query'] = 'YOUR API KEY'
|
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
||||||
# config.api_key_prefix['api_key_query'] = 'Bearer'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = XAuthIDAlias::UsageApi.new
|
api_instance = XAuthIDAlias::UsageApi.new
|
||||||
@ -99,14 +99,14 @@ require 'x_auth_id_alias'
|
|||||||
# setup authorization
|
# setup authorization
|
||||||
XAuthIDAlias.configure do |config|
|
XAuthIDAlias.configure do |config|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
|
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
||||||
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
|
# config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Configure API key authorization: api_key_query
|
||||||
config.api_key['api_key'] = 'YOUR API KEY'
|
config.api_key['api_key'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['api_key'] = 'Bearer'
|
# config.api_key_prefix['api_key'] = 'Bearer'
|
||||||
|
|
||||||
# Configure API key authorization: api_key_query
|
|
||||||
config.api_key['api_key_query'] = 'YOUR API KEY'
|
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
||||||
# config.api_key_prefix['api_key_query'] = 'Bearer'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = XAuthIDAlias::UsageApi.new
|
api_instance = XAuthIDAlias::UsageApi.new
|
||||||
@ -172,9 +172,9 @@ require 'x_auth_id_alias'
|
|||||||
# setup authorization
|
# setup authorization
|
||||||
XAuthIDAlias.configure do |config|
|
XAuthIDAlias.configure do |config|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
config.api_key['api_key'] = 'YOUR API KEY'
|
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['api_key'] = 'Bearer'
|
# config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = XAuthIDAlias::UsageApi.new
|
api_instance = XAuthIDAlias::UsageApi.new
|
||||||
@ -240,9 +240,9 @@ require 'x_auth_id_alias'
|
|||||||
# setup authorization
|
# setup authorization
|
||||||
XAuthIDAlias.configure do |config|
|
XAuthIDAlias.configure do |config|
|
||||||
# Configure API key authorization: api_key_query
|
# Configure API key authorization: api_key_query
|
||||||
config.api_key['api_key_query'] = 'YOUR API KEY'
|
config.api_key['api_key'] = 'YOUR API KEY'
|
||||||
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
||||||
# config.api_key_prefix['api_key_query'] = 'Bearer'
|
# config.api_key_prefix['api_key'] = 'Bearer'
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = XAuthIDAlias::UsageApi.new
|
api_instance = XAuthIDAlias::UsageApi.new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user