restful api generator using XPath