Generating REST API docs by Swagger

What are the upsides of this?