add simple APIs and a simple angular service