Implementing some rest requests