Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 732 Bytes

Features-Mvc-Core-Swagger-UI.md

File metadata and controls

23 lines (15 loc) · 732 Bytes

Swagger UI

Swagger UI is integrated to ASP.NET Zero but disabled by default. Swagger UI configuration is located in Startup class in the .Web project. You can enable it by just uncommenting the related lines:

In Startup.ConfigureServices method, enable the following line:

services.AddSwaggerGen();

And in Startup.Configure method, enable the following lines:

app.UseSwagger();
app.UseSwaggerUi();

You can browse swagger ui with this URL: "/swagger/ui".

Swagger UI

Thus, anyone (or any application) can explore, test and use the API easily.