Spring based REST apis for Potlatch Application