forked from loafle/openapi-generator-original
Merge pull request #2783 from GriffinSchneider/patch-1
Replace 'BEARER' with 'Bearer' everywhere for RFC6750 compliance.
This commit is contained in:
commit
1dd8faf8b7
@ -72,8 +72,8 @@ namespace Example
|
|||||||
Configuration.Default.Password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
Configuration.Default.Password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: {{{name}}}
|
// Configure API key authorization: {{{name}}}
|
||||||
Configuration.Default.ApiKey.Add('{{{keyParamName}}}', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('{{{keyParamName}}}', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('{{{keyParamName}}}', 'BEARER');{{/isApiKey}}{{#isOAuth}}
|
// Configuration.Default.ApiKeyPrefix.Add('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: {{{name}}}
|
// Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -37,8 +37,8 @@ namespace Example
|
|||||||
Configuration.Default.Password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
Configuration.Default.Password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: {{{name}}}
|
// Configure API key authorization: {{{name}}}
|
||||||
Configuration.Default.ApiKey.Add('{{{keyParamName}}}', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('{{{keyParamName}}}', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('{{{keyParamName}}}', 'BEARER');{{/isApiKey}}{{#isOAuth}}
|
// Configuration.Default.ApiKeyPrefix.Add('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: {{{name}}}
|
// Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
return @"";
|
return @"";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return [NSString stringWithFormat:@"BEARER %@", self.accessToken];
|
return [NSString stringWithFormat:@"Bearer %@", self.accessToken];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ Please follow the [installation procedure](#installation--usage) and then run th
|
|||||||
{{/isBasic}}{{#isApiKey}}
|
{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: (authentication scheme: {{{name}}})
|
// Configure API key authorization: (authentication scheme: {{{name}}})
|
||||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
//[apiConfig setApiKeyPrefix:@"BEARER" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
||||||
{{/isApiKey}}{{#isOAuth}}
|
{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: (authentication scheme: {{{name}}})
|
// Configure OAuth2 access token for authorization: (authentication scheme: {{{name}}})
|
||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
@ -31,8 +31,8 @@ Method | HTTP request | Description
|
|||||||
{{/isBasic}}{{#isApiKey}}
|
{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: (authentication scheme: {{{name}}})
|
// Configure API key authorization: (authentication scheme: {{{name}}})
|
||||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
//[apiConfig setApiKeyPrefix:@"BEARER" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"{{{keyParamName}}}"];
|
||||||
{{/isApiKey}}{{#isOAuth}}
|
{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: (authentication scheme: {{{name}}})
|
// Configure OAuth2 access token for authorization: (authentication scheme: {{{name}}})
|
||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
@ -257,8 +257,8 @@ ${{{moduleName}}}::Configuration::username = 'YOUR_USERNAME';
|
|||||||
${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY';
|
${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = 'BEARER';{{/isApiKey}}{{#isOAuth}}
|
#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = 'Bearer';{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -31,8 +31,8 @@ ${{{moduleName}}}::Configuration::username = 'YOUR_USERNAME';
|
|||||||
${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY';
|
${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = "BEARER";{{/isApiKey}}{{#isOAuth}}
|
#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = "Bearer";{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -68,8 +68,8 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: {{{name}}}
|
// Configure API key authorization: {{{name}}}
|
||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY');
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'BEARER');{{/isApiKey}}{{#isOAuth}}
|
// {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: {{{name}}}
|
// Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -27,8 +27,8 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
|
||||||
// Configure API key authorization: {{{name}}}
|
// Configure API key authorization: {{{name}}}
|
||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY');
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'BEARER');{{/isApiKey}}{{#isOAuth}}
|
// {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}}
|
||||||
// Configure OAuth2 access token for authorization: {{{name}}}
|
// Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -61,8 +61,8 @@ from pprint import pprint
|
|||||||
{{{packageName}}}.configuration.password = 'YOUR_PASSWORD'{{/isBasic}}{{#isApiKey}}
|
{{{packageName}}}.configuration.password = 'YOUR_PASSWORD'{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
{{{packageName}}}.configuration.api_key['{{{keyParamName}}}'] = 'YOUR_API_KEY'
|
{{{packageName}}}.configuration.api_key['{{{keyParamName}}}'] = 'YOUR_API_KEY'
|
||||||
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
# {{{packageName}}}.configuration.api_key_prefix['{{{keyParamName}}}'] = 'BEARER'{{/isApiKey}}{{#isOAuth}}
|
# {{{packageName}}}.configuration.api_key_prefix['{{{keyParamName}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
{{{packageName}}}.configuration.access_token = 'YOUR_ACCESS_TOKEN'{{/isOAuth}}{{/authMethods}}
|
{{{packageName}}}.configuration.access_token = 'YOUR_ACCESS_TOKEN'{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -29,8 +29,8 @@ from pprint import pprint
|
|||||||
{{{packageName}}}.configuration.password = 'YOUR_PASSWORD'{{/isBasic}}{{#isApiKey}}
|
{{{packageName}}}.configuration.password = 'YOUR_PASSWORD'{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
{{{packageName}}}.configuration.api_key['{{{keyParamName}}}'] = 'YOUR_API_KEY'
|
{{{packageName}}}.configuration.api_key['{{{keyParamName}}}'] = 'YOUR_API_KEY'
|
||||||
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
# {{{packageName}}}.configuration.api_key_prefix['{{{keyParamName}}}'] = 'BEARER'{{/isApiKey}}{{#isOAuth}}
|
# {{{packageName}}}.configuration.api_key_prefix['{{{keyParamName}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
|
||||||
# Configure OAuth2 access token for authorization: {{{name}}}
|
# Configure OAuth2 access token for authorization: {{{name}}}
|
||||||
{{{packageName}}}.configuration.access_token = 'YOUR_ACCESS_TOKEN'{{/isOAuth}}{{/authMethods}}
|
{{{packageName}}}.configuration.access_token = 'YOUR_ACCESS_TOKEN'{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
@ -67,8 +67,8 @@ require '{{{gemName}}}'
|
|||||||
config.password = 'YOUR PASSWORD'{{/isBasic}}{{#isApiKey}}
|
config.password = 'YOUR PASSWORD'{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
config.api_key['{{{keyParamName}}}'] = '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['{{{keyParamName}}}'] = '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
|
||||||
|
@ -29,8 +29,8 @@ require '{{{gemName}}}'
|
|||||||
config.password = 'YOUR PASSWORD'{{/isBasic}}{{#isApiKey}}
|
config.password = 'YOUR PASSWORD'{{/isBasic}}{{#isApiKey}}
|
||||||
# Configure API key authorization: {{{name}}}
|
# Configure API key authorization: {{{name}}}
|
||||||
config.api_key['{{{keyParamName}}}'] = '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['{{{keyParamName}}}'] = '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
|
||||||
|
@ -50,27 +50,27 @@ public void main(){
|
|||||||
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';
|
Configuration.Default.AccessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
// Configure API key authorization: test_api_client_id
|
// Configure API key authorization: test_api_client_id
|
||||||
Configuration.Default.ApiKey.Add('x-test_api_client_id', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('x-test_api_client_id', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('x-test_api_client_id', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('x-test_api_client_id', 'Bearer');
|
||||||
// Configure API key authorization: test_api_client_secret
|
// Configure API key authorization: test_api_client_secret
|
||||||
Configuration.Default.ApiKey.Add('x-test_api_client_secret', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('x-test_api_client_secret', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('x-test_api_client_secret', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('x-test_api_client_secret', 'Bearer');
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'Bearer');
|
||||||
// Configure HTTP basic authorization: test_http_basic
|
// Configure HTTP basic authorization: test_http_basic
|
||||||
Configuration.Default.Username = 'YOUR_USERNAME';
|
Configuration.Default.Username = 'YOUR_USERNAME';
|
||||||
Configuration.Default.Password = 'YOUR_PASSWORD';
|
Configuration.Default.Password = 'YOUR_PASSWORD';
|
||||||
// Configure API key authorization: test_api_key_query
|
// Configure API key authorization: test_api_key_query
|
||||||
Configuration.Default.ApiKey.Add('test_api_key_query', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('test_api_key_query', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('test_api_key_query', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('test_api_key_query', 'Bearer');
|
||||||
// Configure API key authorization: test_api_key_header
|
// Configure API key authorization: test_api_key_header
|
||||||
Configuration.Default.ApiKey.Add('test_api_key_header', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('test_api_key_header', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('test_api_key_header', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('test_api_key_header', 'Bearer');
|
||||||
|
|
||||||
var apiInstance = new ();
|
var apiInstance = new ();
|
||||||
|
|
||||||
|
@ -294,8 +294,8 @@ namespace Example
|
|||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'Bearer');
|
||||||
|
|
||||||
var apiInstance = new PetApi();
|
var apiInstance = new PetApi();
|
||||||
var petId = 789; // long? | ID of pet to return
|
var petId = 789; // long? | ID of pet to return
|
||||||
|
@ -94,8 +94,8 @@ namespace Example
|
|||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
Configuration.Default.ApiKey.Add('api_key', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'BEARER');
|
// Configuration.Default.ApiKeyPrefix.Add('api_key', 'Bearer');
|
||||||
|
|
||||||
var apiInstance = new StoreApi();
|
var apiInstance = new StoreApi();
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
return @"";
|
return @"";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return [NSString stringWithFormat:@"BEARER %@", self.accessToken];
|
return [NSString stringWithFormat:@"Bearer %@", self.accessToken];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,8 +283,8 @@ SWGConfiguration *apiConfig = [SWGConfiguration sharedConfig];
|
|||||||
|
|
||||||
// Configure API key authorization: (authentication scheme: api_key)
|
// Configure API key authorization: (authentication scheme: api_key)
|
||||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
//[apiConfig setApiKeyPrefix:@"BEARER" forApiKeyIdentifier:@"api_key"];
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||||
|
|
||||||
|
|
||||||
NSNumber* petId = @789; // ID of pet that needs to be fetched
|
NSNumber* petId = @789; // ID of pet that needs to be fetched
|
||||||
|
@ -81,8 +81,8 @@ SWGConfiguration *apiConfig = [SWGConfiguration sharedConfig];
|
|||||||
|
|
||||||
// Configure API key authorization: (authentication scheme: api_key)
|
// Configure API key authorization: (authentication scheme: api_key)
|
||||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
//[apiConfig setApiKeyPrefix:@"BEARER" forApiKeyIdentifier:@"api_key"];
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -269,8 +269,8 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
|
||||||
# Configure OAuth2 access token for authorization: petstore_auth
|
# Configure OAuth2 access token for authorization: petstore_auth
|
||||||
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -320,8 +320,8 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
|
||||||
# Configure OAuth2 access token for authorization: petstore_auth
|
# Configure OAuth2 access token for authorization: petstore_auth
|
||||||
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -371,8 +371,8 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
|
||||||
# Configure OAuth2 access token for authorization: petstore_auth
|
# Configure OAuth2 access token for authorization: petstore_auth
|
||||||
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
|
@ -73,12 +73,12 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: test_api_client_id
|
# Configure API key authorization: test_api_client_id
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "Bearer";
|
||||||
# Configure API key authorization: test_api_client_secret
|
# Configure API key authorization: test_api_client_secret
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "Bearer";
|
||||||
|
|
||||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||||
my $status = 'status_example'; # string | Status value that needs to be considered for query
|
my $status = 'status_example'; # string | Status value that needs to be considered for query
|
||||||
@ -126,8 +126,8 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
|
||||||
|
|
||||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||||
|
|
||||||
@ -171,8 +171,8 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
|
||||||
|
|
||||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||||
|
|
||||||
@ -216,12 +216,12 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: test_api_key_header
|
# Configure API key authorization: test_api_key_header
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_header'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_header'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_header'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_header'} = "Bearer";
|
||||||
# Configure API key authorization: test_api_key_query
|
# Configure API key authorization: test_api_key_query
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_query'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_query'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_query'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_query'} = "Bearer";
|
||||||
|
|
||||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||||
my $order_id = 'order_id_example'; # string | ID of pet that needs to be fetched
|
my $order_id = 'order_id_example'; # string | ID of pet that needs to be fetched
|
||||||
@ -269,12 +269,12 @@ use Data::Dumper;
|
|||||||
|
|
||||||
# Configure API key authorization: test_api_client_id
|
# Configure API key authorization: test_api_client_id
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "Bearer";
|
||||||
# Configure API key authorization: test_api_client_secret
|
# Configure API key authorization: test_api_client_secret
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY';
|
$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY';
|
||||||
# uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER";
|
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "Bearer";
|
||||||
|
|
||||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||||
my $body = WWW::SwaggerClient::Object::Order->new(); # Order | order placed for purchasing the pet
|
my $body = WWW::SwaggerClient::Object::Order->new(); # Order | order placed for purchasing the pet
|
||||||
|
@ -17,7 +17,7 @@ use DateTime;
|
|||||||
|
|
||||||
$WWW::SwaggerClient::Configuration::http_user_agent = 'Perl-Swagger-Test';
|
$WWW::SwaggerClient::Configuration::http_user_agent = 'Perl-Swagger-Test';
|
||||||
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'ZZZZZZZZZZZZZZ';
|
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'ZZZZZZZZZZZZZZ';
|
||||||
$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = 'BEARER';
|
$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = 'Bearer';
|
||||||
|
|
||||||
$WWW::SwaggerClient::Configuration::username = 'username';
|
$WWW::SwaggerClient::Configuration::username = 'username';
|
||||||
$WWW::SwaggerClient::Configuration::password = 'password';
|
$WWW::SwaggerClient::Configuration::password = 'password';
|
||||||
|
@ -220,8 +220,8 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'BEARER');
|
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
|
||||||
|
|
||||||
$api_instance = new Swagger\Client\Api\PetApi();
|
$api_instance = new Swagger\Client\Api\PetApi();
|
||||||
$pet_id = 789; // int | ID of pet to return
|
$pet_id = 789; // int | ID of pet to return
|
||||||
|
@ -68,8 +68,8 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
||||||
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'BEARER');
|
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
|
||||||
|
|
||||||
$api_instance = new Swagger\Client\Api\StoreApi();
|
$api_instance = new Swagger\Client\Api\StoreApi();
|
||||||
|
|
||||||
|
@ -230,8 +230,8 @@ from pprint import pprint
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
|
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
|
||||||
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
# swagger_client.configuration.api_key_prefix['api_key'] = 'BEARER'
|
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
|
||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = swagger_client.PetApi()
|
api_instance = swagger_client.PetApi()
|
||||||
|
@ -72,8 +72,8 @@ from pprint import pprint
|
|||||||
|
|
||||||
# Configure API key authorization: api_key
|
# Configure API key authorization: api_key
|
||||||
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
|
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
|
||||||
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
# swagger_client.configuration.api_key_prefix['api_key'] = 'BEARER'
|
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
|
||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = swagger_client.StoreApi()
|
api_instance = swagger_client.StoreApi()
|
||||||
|
@ -239,8 +239,8 @@ require 'petstore'
|
|||||||
Petstore.configure do |config|
|
Petstore.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['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'
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = Petstore::PetApi.new
|
api_instance = Petstore::PetApi.new
|
||||||
|
@ -71,8 +71,8 @@ require 'petstore'
|
|||||||
Petstore.configure do |config|
|
Petstore.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['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'
|
||||||
end
|
end
|
||||||
|
|
||||||
api_instance = Petstore::StoreApi.new
|
api_instance = Petstore::StoreApi.new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user