added restfull functionality support, with small code example