aito.client.requests.query_api_request.QueryAPIRequest¶
-
class
aito.client.requests.query_api_request.
QueryAPIRequest
(query: Dict)¶ Bases:
aito.client.requests.aito_request._PostRequest
,aito.client.requests.aito_request._PatternEndpoint
,aito.client.requests.aito_request.AitoRequest
,abc.ABC
Request to a Query API
- Parameters
query (Dict) – 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
Attributes
method
the Query API path
response_cls
-
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
-
path
: str = None¶ the Query API path