mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 19:36:09 +00:00
remove ref to SO (#6209)
This commit is contained in:
@@ -148,6 +148,12 @@ Class | Method | HTTP request | Description
|
||||
- **API key parameter name**: api_key
|
||||
- **Location**: HTTP header
|
||||
|
||||
## api_key_query
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: api_key_query
|
||||
- **Location**: URL query string
|
||||
|
||||
## http_basic_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
@@ -20,8 +20,14 @@ import petstore_api
|
||||
from petstore_api.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure API key authorization: api_key_query
|
||||
configuration = petstore_api.Configuration()
|
||||
configuration.api_key['api_key_query'] = 'YOUR_API_KEY'
|
||||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
# configuration.api_key_prefix['api_key_query'] = 'Bearer'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = petstore_api.FakeClassnameTags123Api()
|
||||
api_instance = petstore_api.FakeClassnameTags123Api(petstore_api.ApiClient(configuration))
|
||||
body = petstore_api.Client() # Client | client model
|
||||
|
||||
try:
|
||||
@@ -44,7 +50,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key_query](../README.md#api_key_query)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class FakeClassnameTags123Api(object):
|
||||
select_header_content_type(['application/json'])
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = []
|
||||
auth_settings = ['api_key_query']
|
||||
|
||||
return self.api_client.call_api('/fake_classname_test', 'PATCH',
|
||||
path_params,
|
||||
|
||||
@@ -204,6 +204,13 @@ class Configuration(object):
|
||||
'key': 'api_key',
|
||||
'value': self.get_api_key_with_prefix('api_key')
|
||||
},
|
||||
'api_key_query':
|
||||
{
|
||||
'type': 'api_key',
|
||||
'in': 'query',
|
||||
'key': 'api_key_query',
|
||||
'value': self.get_api_key_with_prefix('api_key_query')
|
||||
},
|
||||
'http_basic_test':
|
||||
{
|
||||
'type': 'basic',
|
||||
|
||||
@@ -61,8 +61,7 @@ class RESTClientObject(object):
|
||||
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75
|
||||
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680
|
||||
# maxsize is the number of requests to host that are allowed in parallel
|
||||
# ca_certs vs cert_file vs key_file
|
||||
# http://stackoverflow.com/a/23957365/2985775
|
||||
# Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html
|
||||
|
||||
# cert_reqs
|
||||
if configuration.verify_ssl:
|
||||
|
||||
Reference in New Issue
Block a user