Creating the application API controller