rest api document, and routing in front page