Endpoints

class restfly.endpoint.APIEndpoint(api)[source]

APIEndpoint is the base model for which all API endpoint classes are sired from. The main benefit is the addition of the _check() function from which it’s possible to check the type & content of a variable to ensure that we are passing good data to the API.

Parameters:api (APISession) – The APISession (or sired child) instance that the endpoint will be using to perform calls to the API.