简体   繁体   English

ASP.NET Core Web API 的 ASP.NET 帮助页面

[英]ASP.NET help page for ASP.NET Core Web API

I'm new to C# and I just wanted to know if there is a way to integrate ASP.NET help page for my ASP.NET Core Web API.我是 C# 新手,我只是想知道是否有办法为我的 ASP.NET Core Web API 集成 ASP.NET 帮助页面。

I saw many tutorials where they have said that upon installing the Microsoft.AspNet.WebApi.HelpPage Nuget package, it'll automatically create an Area folder with a HelpPage folder, but upon installing that package the folder isn't created.我看到很多教程,他们说在安装Microsoft.AspNet.WebApi.HelpPage Nuget 包时,它会自动创建一个带有HelpPage文件夹的Area文件夹,但在安装该包时不会创建该文件夹。

I'm using Visual Studio 2019 Community Edition and the ASP.NET Core Web API project template where I already have a project running CRUD operations with Swagger Implementation but I wanted the documentation similar to ASP.NET HelpPage.我正在使用 Visual Studio 2019 社区版和 ASP.NET Core Web API 项目模板,其中我已经有一个使用 Swagger 实现运行 CRUD 操作的项目,但我想要类似于 ASP.NET HelpPage 的文档。

If anyone knows how to do this please do let me know.如果有人知道如何做到这一点,请告诉我。 Thank you in advance.先感谢您。

您可以使用SwashBuckleNSwag在 ASP Core 项目中生成 API 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM