rest web api on servlets implemented