added the api part of the application