commented collectionapi from server/api.js