-
Notifications
You must be signed in to change notification settings - Fork 1
Swagger
Furkan Güngör edited this page Apr 24, 2022
·
1 revision
The EasyWeb.AspNetCore.Swagger
library provides easy configuration. Just set the Name and Description.
Step 1 : Install Package
Install EasyWeb.AspNetCore.Swagger
from Nuget
Step 2 : Configuration
builder.Services.ConfigureSwagger(options =>
{
options.Title = "Demo Service Title";
options.Description = "Demo Service Description";
});
and
app.ApplySwaggerConfiguration();
Step 3 : Api Version
using EasyWeb.AspNetCore.Controllers;
[ApiVersion("1.0")] // or 2.0, 2.1 ...
public class YourController : BaseApiController
{
// Rest of your stuffs.
}
Result
Welcome to the EasyWeb
wiki!
Topics:
- Getting Started