Create the API controller