Base Controller

class sevdeskapi.controller.base.BaseController(model)

This class manages the datastructures and URLs for a Model

create(*args, **kwargs)

Creates a new Object at API by default it uses the linked model for informations. Yo can overwrite the request parameters it via kwargs

Parameters

kwargs – Arguments which should be overwritten

Return request

The orginal requests response

find(**kwargs)

Find a Object which matches by given kwargs

Parameters

kwargs – Search Query (names defined at Model.Structure

Return BaseModel

Model object from the found object

get_apimodel_name()

Returns the name of API Endpoint (model) BaseURL + Controller + Version + Model: https://my.sevdesk.de/api/v1/Contact/

Return str

Mmodel-name

Return type

str

get_or_create(**kwargs)

Searches a Value, if no result creates a new one with the same Values

Return tuple(object

BaseModel, created: bool): object contains the (existing) api object, created is a boolean if the data

was new created or already exist

get_sevdesk_client()

Getter for deliver the SevDeskClient object

Return SevDeskClient

Return type

SevDeskClient