Added api for sails sample