implement MetadataService rest interface