Integrating web app and API engine