Description of the ASP. NET Web API Help documentation

Source: Internet
Author: User

Fill in your own Help documentation for the ASP. NET MVC Web API

1. Add the area of help (can be added by command line or by other means)

Command line:install-package Microsoft.AspNet.WebApi.HelpPage

NuGet Search: Helppage, find the Microsoft ASP. NET Web API help page

2. Add gaze to API, etc.

3. Generate gaze as XML file

4. Assigning XML to help's configuration

In the config file for help Helppageconfig.register (httpconfiguration config):

Config. Setdocumentationprovider (New Xmldocumentationprovider (HttpContext.Current.Server.MapPath ("~/app_data/ Sfa.web.XML ")));


5. Debug View

6. Optional: Add a test tool to the help page

References: http://blogs.msdn.com/b/yaohuang1/archive/2012/12/02/adding-a-simple-test-client-to-asp-net-web-api-help-page.aspx



Description of the ASP. NET Web API Help documentation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.