adding rest api plugin