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.

Adding summary and XML Documentation

Now uncomment the line that tells Swasbuckle to include XML comments in the Swagger.cs file.

Adding summary and XML Documentation

You now need to implement the function GetXMLCommentsPath() that would return the XMLComment file for the API.

Adding summary and XML Documentation

Now if you run the project, you can see the following in the Swagger UI. Now you can see the summary ...

Get Robust Cloud Integration with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.