adding REST_API demo code