initiates api controller