An example implementation of REST api using node js