created api controller, new file models