|
| 1 | +# revengai.DefaultApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.reveng.ai* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**get_config_v2_config_get**](DefaultApi.md#get_config_v2_config_get) | **GET** /v2/config | Get Config |
| 8 | + |
| 9 | + |
| 10 | +# **get_config_v2_config_get** |
| 11 | +> BaseResponseConfigResponse get_config_v2_config_get() |
| 12 | +
|
| 13 | +Get Config |
| 14 | + |
| 15 | +General configuration endpoint |
| 16 | + |
| 17 | +### Example |
| 18 | + |
| 19 | +* Api Key Authentication (APIKey): |
| 20 | + |
| 21 | +```python |
| 22 | +import revengai |
| 23 | +from revengai.models.base_response_config_response import BaseResponseConfigResponse |
| 24 | +from revengai.rest import ApiException |
| 25 | +from pprint import pprint |
| 26 | + |
| 27 | +# Defining the host is optional and defaults to https://api.reveng.ai |
| 28 | +# See configuration.py for a list of all supported configuration parameters. |
| 29 | +configuration = revengai.Configuration( |
| 30 | + host = "https://api.reveng.ai" |
| 31 | +) |
| 32 | + |
| 33 | +# The client must configure the authentication and authorization parameters |
| 34 | +# in accordance with the API server security policy. |
| 35 | +# Examples for each auth method are provided below, use the example that |
| 36 | +# satisfies your auth use case. |
| 37 | + |
| 38 | +# Configure API key authorization: APIKey |
| 39 | +configuration.api_key['APIKey'] = os.environ["API_KEY"] |
| 40 | + |
| 41 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 42 | +# configuration.api_key_prefix['APIKey'] = 'Bearer' |
| 43 | + |
| 44 | +# Enter a context with an instance of the API client |
| 45 | +with revengai.ApiClient(configuration) as api_client: |
| 46 | + # Create an instance of the API class |
| 47 | + api_instance = revengai.DefaultApi(api_client) |
| 48 | + |
| 49 | + try: |
| 50 | + # Get Config |
| 51 | + api_response = api_instance.get_config_v2_config_get() |
| 52 | + print("The response of DefaultApi->get_config_v2_config_get:\n") |
| 53 | + pprint(api_response) |
| 54 | + except Exception as e: |
| 55 | + print("Exception when calling DefaultApi->get_config_v2_config_get: %s\n" % e) |
| 56 | +``` |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +### Parameters |
| 61 | + |
| 62 | +This endpoint does not need any parameter. |
| 63 | + |
| 64 | +### Return type |
| 65 | + |
| 66 | +[**BaseResponseConfigResponse**](BaseResponseConfigResponse.md) |
| 67 | + |
| 68 | +### Authorization |
| 69 | + |
| 70 | +[APIKey](../README.md#APIKey) |
| 71 | + |
| 72 | +### HTTP request headers |
| 73 | + |
| 74 | + - **Content-Type**: Not defined |
| 75 | + - **Accept**: application/json |
| 76 | + |
| 77 | +### HTTP response details |
| 78 | + |
| 79 | +| Status code | Description | Response headers | |
| 80 | +|-------------|-------------|------------------| |
| 81 | +**200** | Successful Response | - | |
| 82 | +**422** | Invalid request parameters | - | |
| 83 | + |
| 84 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 85 | + |
0 commit comments