๐ AspnetCore31
- ASP.NET Core 3.1 Web API
- Swashbuckle
- Xml comment
More detail: BEACHSIDE BLOG - ASP.NET Core ใง Open API (Swagger) ใฎ่จญๅฎใฎๅบ็ค (.NET Core 3.1 ใจ .NET 5)
๐ AspnetCore50
Same as "AspnetCore31".
- ASP.NET Core 5.0 Web API
- Swashbuckle
- Xml comment
More detail: BEACHSIDE BLOG - ASP.NET Core ใง Open API (Swagger) ใฎ่จญๅฎใฎๅบ็ค (.NET Core 3.1 ใจ .NET 5)
- ASP.NET Core 5.0 Web API
- Swashbuckle
- Route customize
More detail: Swagger UI ใฎ็ธๅฏพใในใใซในใฟใใคใบใใ ( ASP.NET Core, OpenAPI, Swashbuckle )
- ASP.NET Core 5.0 Web API (Azure AD Authorization)
- Swashbuckle
- Swagger UI Authorize (Azure AD authorization - Authorization Code Flow with PKCE)
Need to update appsettings.json as following:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AzureAd": {
"clientId": "! Set Azure AD application's client id",
"metadataAddress": "! Set Azure AD application's 'OpenID Connect metadata document' endpoint",
"AuthorizationUrl": "! Set Azure AD application's 'OAuth 2.0 authorization endpoint (v2)' endpoint",,
"tokenUrl": "! Set Azure AD application's 'OAuth 2.0 token endpoint (v2)' endpoint",,
"apiScope": "! Set Azure AD application's target API permission (e.g. 'api://....')",,
},
"AllowedHosts": "*"
}More detail: BEACHSIDE BLOG - Swagger UI ใง Azure AD ใฎ่ช่จผใใ (ASP.NET Core, Authorization Code Flow with PKCE)
- ASP.NET Core 5.0 Web API (Azure AD Authorization)
- Swashbuckle
- Swagger UI Authorization (Set Bearer token)
Need to update appsettings.json as following:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "InformatioPn"
}
},
"AzureAd": {
"clientId": "! Set Azure AD application's client id",
"metadataAddress": "! Set Azure AD application's 'OpenID Connect metadata document' endpoint",
},
"AllowedHosts": "*"
}More detail: BEACHSIDE BLOG - ASP.NET Core ใง Open API (Swagger) ใฎ่จญๅฎใฎๅบ็ค (.NET Core 3.1 ใจ .NET 5)