# swagger_to > Generate code based on swagger.json (v2) ## Install ```bash cargo install swagger_to ``` ## Usage ![image](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWEzNmUxYzI1OGUxMTM3YTc2ZTIzMTVjNmQwOTkxODllNjE2MWM5OSZlcD12MV9pbnRlcm5hbF9naWZzX2dpZklkJmN0PWc/1BBxH8dFT4LpWZtfcV/giphy.gif) ### Generate table columns for ant-design ```bash swagger_to columns path/to/swagger.json ``` ### Generate services for request data with axios ```bash swagger_to services path/to/swagger.json ``` ### Support Swagger doc url ```bash swagger_to services "http://username:password@api.example.com/v2/api-docs?group=xxx" ```