Skip to content

Support OpenApiBuilder flow #146

@Averios

Description

@Averios

The old plugin allows us to define OpenAPI documentation on runtime.
Example:

OpenApiDocumentation getPriceByProductId =
            OpenApiBuilder.document()
                    .queryParam("productId", String.class)
                    .json("200", Price.class);

ApiBuilder.get(
                "/products/{productId}/price",
                OpenApiBuilder.documented(
                        getPriceByProductId, priceByProductIdHandler());

It would be nice to also have this option on Javalin 5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions