adding rest plugin