All URIs are relative to http://localhost
Method | Description |
---|---|
create_action_type | Create Action Type |
get_action_types | Get Action Types |
get_recommendations | Get recommendations. |
query_executor | Query Executor |
update_action_type | Update Action Type |
CreateActionTypeResponse create_action_type(create_action_type_request)
Create Action Type
import onelens_backend_client
from onelens_backend_client.models.create_action_type_request import CreateActionTypeRequest
from onelens_backend_client.models.create_action_type_response import CreateActionTypeResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.RecommendationEngineServiceApi(api_client)
create_action_type_request = onelens_backend_client.CreateActionTypeRequest() # CreateActionTypeRequest |
try:
# Create Action Type
api_response = api_instance.create_action_type(create_action_type_request)
print("The response of RecommendationEngineServiceApi->create_action_type:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RecommendationEngineServiceApi->create_action_type: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_action_type_request | CreateActionTypeRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetActionTypeResponse get_action_types(get_action_type_request)
Get Action Types
import onelens_backend_client
from onelens_backend_client.models.get_action_type_request import GetActionTypeRequest
from onelens_backend_client.models.get_action_type_response import GetActionTypeResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.RecommendationEngineServiceApi(api_client)
get_action_type_request = onelens_backend_client.GetActionTypeRequest() # GetActionTypeRequest |
try:
# Get Action Types
api_response = api_instance.get_action_types(get_action_type_request)
print("The response of RecommendationEngineServiceApi->get_action_types:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RecommendationEngineServiceApi->get_action_types: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_action_type_request | GetActionTypeRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecommendationEngineResponse get_recommendations(recommendation_engine_request)
Get recommendations.
import onelens_backend_client
from onelens_backend_client.models.recommendation_engine_request import RecommendationEngineRequest
from onelens_backend_client.models.recommendation_engine_response import RecommendationEngineResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.RecommendationEngineServiceApi(api_client)
recommendation_engine_request = onelens_backend_client.RecommendationEngineRequest() # RecommendationEngineRequest |
try:
# Get recommendations.
api_response = api_instance.get_recommendations(recommendation_engine_request)
print("The response of RecommendationEngineServiceApi->get_recommendations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RecommendationEngineServiceApi->get_recommendations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
recommendation_engine_request | RecommendationEngineRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object query_executor(query_executor_request)
Query Executor
import onelens_backend_client
from onelens_backend_client.models.query_executor_request import QueryExecutorRequest
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.RecommendationEngineServiceApi(api_client)
query_executor_request = onelens_backend_client.QueryExecutorRequest() # QueryExecutorRequest |
try:
# Query Executor
api_response = api_instance.query_executor(query_executor_request)
print("The response of RecommendationEngineServiceApi->query_executor:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RecommendationEngineServiceApi->query_executor: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
query_executor_request | QueryExecutorRequest |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateActionTypeResponse update_action_type(update_action_type_request)
Update Action Type
import onelens_backend_client
from onelens_backend_client.models.update_action_type_request import UpdateActionTypeRequest
from onelens_backend_client.models.update_action_type_response import UpdateActionTypeResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.RecommendationEngineServiceApi(api_client)
update_action_type_request = onelens_backend_client.UpdateActionTypeRequest() # UpdateActionTypeRequest |
try:
# Update Action Type
api_response = api_instance.update_action_type(update_action_type_request)
print("The response of RecommendationEngineServiceApi->update_action_type:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RecommendationEngineServiceApi->update_action_type: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_action_type_request | UpdateActionTypeRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]