completing the restful api using node and express