use swagger to generate api documentation