Http://www.2cto.com/kf/201607/522971.html
========== the final ==========
==========, start working under the ==========.
First, create the WEBAPI project
Ii. find HelpPageConfig.cs and uncomment the code
?
1 |
1 config.SetDocumentationProvider( new XmlDocumentationProvider ( HttpContext.Current.Server.MapPath( "~/App_Data/XmlDocument.xml" ))); |
Third, right-click on the project, select Properties, action by figure
Iv. start the project and enter the url:localhost:{port number}/help
Note: The Description is not displayed because we did not comment on the corresponding method in the form////
========== below is the way to create a split line for a simple test tool ==========
First, right-click on the project, select "Manage NuGet packages" and search for "apitest"
Second, after loading and then start to check the method, you will find a button in the lower right corner "Test API"
WEBAPI build Help documentation and create simple test tools by the way