Added selection export to rest API