Best of OpenAPIOctober 2024

  1. 1
    Video
    Avatar of nickchapsasNick Chapsas·2y

    Swagger is Gone in .NET 9! Replace It With This.

    Swagger has been removed in .NET 9 and replaced with Microsoft's built-in OpenAPI functionalities. To adapt to this change, developers can use the 'app.mapOpenAPI' call for API documentation without a UI. Alternatively, they can integrate third-party tools such as Swashbuckle to restore the Swagger UI, or use Scaler, which offers a modern and customizable API documentation UI. Scaler provides various themes and integration options, including dark mode and authentication schemes, making it a versatile alternative.

  2. 2
    Article
    Avatar of baeldungBaeldung·2y

    Spring Boot 3 – Configure Spring Security to Allow Swagger UI

    Learn how to configure Spring Security to allow access to Swagger UI in a Spring Boot 3 application. This guide covers setting up the necessary dependencies, creating a simple controller, and configuring security using WebSecurityCustomizer and SecurityFilterChain to permit unauthenticated access to Swagger UI endpoints.

  3. 3
    Article
    Avatar of itnextITNEXT·2y

    Swagger UI Generation from Existing Express Code

    This guide covers the process of generating Swagger UI for an existing Express codebase. It discusses the usage of the swagger-autogen package to create an OpenAPI V3 (or swagger.json) file by scanning the Express routes. Additionally, the post explains how to render the generated JSON file on a specific route using the swagger-ui-express library, and how to set up OAuth2 implicit flow for secure API testing.