add a common controller fora ll comman and generic REst methods