work on REST API