working on rest client api