Rest API for selections