Существует два типа аутентификации: Basic Authentication и JWT Bearer Authentication; Существует атрибут SwaggerUnauthorize (SwaggerUnauthorize используется на методе или контроллере, его задача обеспечивает не требование API аутентификации, в методе или методов в контроллере); Используйте атрибут SwaggerTag для описания и путь к документации контроллера. Атрибут указан над именами контроллеров; Существует SwaggerIgnore игнорирует свойства из swagger для запроса Существует SwaggerAuthorize. Действует при использования методов AddSwaggerAllSecurityDefinitions и UseSwaggerAuthorizeUI; Существует SwaggerDefaultValue, установить значения на свойству для swagger-запроса; ------------------------------------------------------------------------------- There are two types of authentication: Basic Authentication and JWT Bearer Authentication; There is a SwaggerUnauthorize attribute (SwaggerUnauthorize is used on a method or controller, its task does not require an authentication API, in a method or methods in the controller); Use the SwaggerTag attribute to describe and the path to the controller documentation. The attribute is indicated above the controller names; There is a SwaggerIgnore ignores the properties from swagger to request; There is a SwaggerAuthorize. Effective when using AddSwaggerAllSecurityDefinitions and UseSwaggerAuthorizeUI methods; There is SwaggerDefaultValue set value to property for swagger request;
License
—
Deps
7
Install Size
—
Vulns
✓ 0
Published
Dec 24, 2020
$ dotnet add package EM.UsingSwaggerNo README available.