@@ -0,0 +1,1662 @@
+/*%0A * Javalin - https://javalin.io%0A * Copyright 2017 David %C3%85se%0A * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE%0A */%0A%0Apackage io.javalin.examples;%0A%0Aimport com.fasterxml.jackson.annotation.JsonInclude;%0Aimport io.javalin.Javalin;%0Aimport io.javalin.http.Context;%0Aimport io.javalin.plugin.json.JavalinJackson;%0Aimport io.javalin.plugin.openapi.OpenApiOptions;%0Aimport io.javalin.plugin.openapi.annotations.OpenApi;%0Aimport io.javalin.plugin.openapi.annotations.OpenApiParam;%0Aimport io.javalin.plugin.openapi.annotations.OpenApiResponse;%0Aimport io.javalin.plugin.openapi.ui.ReDocOptions;%0Aimport io.javalin.plugin.openapi.ui.SwaggerOptions;%0Aimport io.swagger.v3.oas.models.info.Info;%0A%0Apublic class HelloWorldSwagger %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        JavalinJackson.getObjectMapper().setSerializationInclusion(JsonInclude.Include.NON_NULL);%0A%0A        OpenApiOptions openApiOptions = new OpenApiOptions(new Info().version(%221.0%22).description(%22My Application%22))%0A            .path(%22/swagger-docs%22)%0A            .swagger(new SwaggerOptions(%22/swagger%22).title(%22My Swagger Documentation%22))%0A            .reDoc(new ReDocOptions(%22/redoc%22).title(%22My ReDoc Documentation%22));%0A%0A        Javalin app = Javalin.create(config -%3E config.enableOpenApi(openApiOptions)).start(7070);%0A%0A        app.post(%22/users%22, ExampleController::create);%0A%0A    %7D%0A%0A%7D%0A%0Aclass ExampleController %7B%0A%0A    @OpenApi(%0A        queryParams = %7B%0A            @OpenApiParam(name = %22my-query-param%22)%0A        %7D,%0A        responses = %7B%0A            @OpenApiResponse(status = %22201%22, returnType = Void.class)%0A        %7D%0A    )%0A    public static void create(Context ctx) %7B%0A%0A    %7D%0A%0A%7D%0A

Add Java annotation example