aito.client.requests.data_api_request.DataAPIRequest

class aito.client.requests.data_api_request.DataAPIRequest(method: str, endpoint: str, query: Optional[Union[Dict, List]] = None)

Bases: aito.client.requests.aito_request.AitoRequest, abc.ABC

Request to manipulate the schema

Parameters
  • method (str) – the method of the request

  • endpoint (str) – the endpoint of the request

  • query (Optional[Union[Dict, List]]) – an Aito query if applicable, optional

Methods

make_request(method, endpoint, query)

factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest

path_matches(path_to_match)

Attributes

endpoint_prefix

response_cls

abstract classmethod make_request(method: str, endpoint: str, query: Optional[Union[Dict, List]])aito.client.requests.aito_request.AitoRequest

factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest