add automatic api-doc for rest api documentation.