Skip to content

beachside-project/aspnet-core-openapi-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 ASP.NET Core x OpenAPI sandbox project

Projects Overview

  • 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)

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)

About

asp.net core and open-api investigation sandbox.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages