add basic example code for rest client