Ask HN: When to do an API for my web app?