Added rest plugin and a test file