added SampleMetadata to REST api