New example of restful api. Refactored code and updated libraries.