modify implementation and test code of the API
change library location of restful