rest services implementation