Implementing POST calls to REST API