Implemented galleries REST api