About automating the generation of API help documents for local testing
1. Install by NuGet Reference:
A: Search Web API test Client for installation
B: Install Install-package webapitestclient by code
2, after the installation of the project will automatically add areas folder and a bunch of files
3, App_Data folder in the new file: Xmldocument.xml, nothing to do, the new is good
4. Modify Project Properties
To the current location our help document is basically generated ()
Unfortunately, the description of the method is not displayed.
5, modify the Code display description information
Modify this file
Remove this line comment
Get it done!
Off Topic:
Of course, you can change the API's display by modifying the API routing rules (WebApiConfig.cs), for example, to show it this way (add action, although Microsoft says it doesn't fit the perception of webservices, but it's more convenient to test what it's like, For everyone's reference only):
WebAPI automatically generate help documents