Rewrote rest api with cyclone web.