Skip to content

Latest commit

 

History

History
146 lines (96 loc) · 4.88 KB

File metadata and controls

146 lines (96 loc) · 4.88 KB

RecommendationServiceApi

All URIs are relative to http://localhost

Method Description
bulk_create Creates bulk recommendations.
get_recommendation_by_ticket_id Get recommendations by ticket id.

bulk_create

RecommendationTicketResponse bulk_create(recommendation_ticket_request)

Creates bulk recommendations.

Example

import onelens_backend_client
from onelens_backend_client.models.recommendation_ticket_request import RecommendationTicketRequest
from onelens_backend_client.models.recommendation_ticket_response import RecommendationTicketResponse
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.RecommendationServiceApi(api_client)
    recommendation_ticket_request = onelens_backend_client.RecommendationTicketRequest() # RecommendationTicketRequest | 

    try:
        # Creates bulk recommendations.
        api_response = api_instance.bulk_create(recommendation_ticket_request)
        print("The response of RecommendationServiceApi->bulk_create:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling RecommendationServiceApi->bulk_create: %s\n" % e)

Parameters

Name Type Description Notes
recommendation_ticket_request RecommendationTicketRequest

Return type

RecommendationTicketResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

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]

get_recommendation_by_ticket_id

GetRecommendationTicketResponse get_recommendation_by_ticket_id(get_recommendation_ticket_request)

Get recommendations by ticket id.

Example

import onelens_backend_client
from onelens_backend_client.models.get_recommendation_ticket_request import GetRecommendationTicketRequest
from onelens_backend_client.models.get_recommendation_ticket_response import GetRecommendationTicketResponse
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.RecommendationServiceApi(api_client)
    get_recommendation_ticket_request = onelens_backend_client.GetRecommendationTicketRequest() # GetRecommendationTicketRequest | 

    try:
        # Get recommendations by ticket id.
        api_response = api_instance.get_recommendation_by_ticket_id(get_recommendation_ticket_request)
        print("The response of RecommendationServiceApi->get_recommendation_by_ticket_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling RecommendationServiceApi->get_recommendation_by_ticket_id: %s\n" % e)

Parameters

Name Type Description Notes
get_recommendation_ticket_request GetRecommendationTicketRequest

Return type

GetRecommendationTicketResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

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]