Adding summary and XML Documentation
First, we need to turn on the generation of XML documentation in the Build properties page of API App project.
![](https://static.packt-cdn.com/products/9781786465573/graphics/image_06_031.jpg)
Now uncomment the line that tells Swasbuckle to include XML comments in the Swagger.cs
file.
![](https://static.packt-cdn.com/products/9781786465573/graphics/image_06_032.jpg)
You now need to implement the function GetXMLCommentsPath()
that would return the XMLComment file for the API.
![](https://static.packt-cdn.com/products/9781786465573/graphics/image_06_033.jpg)
Now if you run the project, you can see the following in the Swagger UI. Now you can see the summary for API and description for parameters as shown here:
![](https://static.packt-cdn.com/products/9781786465573/graphics/image_06_034.jpg)