adding /api to connection url to avoid depending on user to add the /api