start implementation to merge api to create rest.js