|
| 1 | +# ory_client.ElementsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://playground.projects.oryapis.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**get_configuration**](ElementsApi.md#get_configuration) | **GET** /elements/configuration | Get Ory Elements configuration |
| 8 | + |
| 9 | + |
| 10 | +# **get_configuration** |
| 11 | +> ElementsConfiguration get_configuration() |
| 12 | +
|
| 13 | +Get Ory Elements configuration |
| 14 | + |
| 15 | +Returns a subset of the project's configuration for the given host. |
| 16 | +The response only contains non-sensitive data that is used to customize the behavior of Ory Elements. |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | + |
| 21 | +```python |
| 22 | +import ory_client |
| 23 | +from ory_client.models.elements_configuration import ElementsConfiguration |
| 24 | +from ory_client.rest import ApiException |
| 25 | +from pprint import pprint |
| 26 | + |
| 27 | +# Defining the host is optional and defaults to https://playground.projects.oryapis.com |
| 28 | +# See configuration.py for a list of all supported configuration parameters. |
| 29 | +configuration = ory_client.Configuration( |
| 30 | + host = "https://playground.projects.oryapis.com" |
| 31 | +) |
| 32 | + |
| 33 | + |
| 34 | +# Enter a context with an instance of the API client |
| 35 | +with ory_client.ApiClient(configuration) as api_client: |
| 36 | + # Create an instance of the API class |
| 37 | + api_instance = ory_client.ElementsApi(api_client) |
| 38 | + |
| 39 | + try: |
| 40 | + # Get Ory Elements configuration |
| 41 | + api_response = api_instance.get_configuration() |
| 42 | + print("The response of ElementsApi->get_configuration:\n") |
| 43 | + pprint(api_response) |
| 44 | + except Exception as e: |
| 45 | + print("Exception when calling ElementsApi->get_configuration: %s\n" % e) |
| 46 | +``` |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +### Parameters |
| 51 | + |
| 52 | +This endpoint does not need any parameter. |
| 53 | + |
| 54 | +### Return type |
| 55 | + |
| 56 | +[**ElementsConfiguration**](ElementsConfiguration.md) |
| 57 | + |
| 58 | +### Authorization |
| 59 | + |
| 60 | +No authorization required |
| 61 | + |
| 62 | +### HTTP request headers |
| 63 | + |
| 64 | + - **Content-Type**: Not defined |
| 65 | + - **Accept**: application/json |
| 66 | + |
| 67 | +### HTTP response details |
| 68 | + |
| 69 | +| Status code | Description | Response headers | |
| 70 | +|-------------|-------------|------------------| |
| 71 | +**200** | elementsConfiguration | - | |
| 72 | +**400** | genericError | - | |
| 73 | +**401** | genericError | - | |
| 74 | +**403** | genericError | - | |
| 75 | +**0** | genericError | - | |
| 76 | + |
| 77 | +[[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) |
| 78 | + |
0 commit comments