Using REST api first