Adding Web API and API documentation to an existing MVC project

后端 未结 7 947
时光说笑
时光说笑 2021-02-14 03:01

I have successfully added a web api controller to an existing MVC4 application.

I would like to have the api documentation functionality as is

7条回答
  •  醉话见心
    2021-02-14 03:53

    1. In the NuGet package manager, search for "helppage" among the Online packages.
    2. Install it (it keeps getting updated and it does all you need even if you have the latest .net)
    3. In will add an Area and in that create all the necessary files you need. Build it and test it under [your_root]/Help
    4. Watch the video on Yao's blog here to get a quick overview on how you can customize it. The video is a bit old, it is still valid.

提交回复
热议问题