Removed extra log. made API GET/POST agnostic