module

Pika::OpenAPI

Class methods

emit_doc(routes : Array(RouteSpec), title : String = "API", version : String = "1.0.0", description : String = "") : String

Emit a full OpenAPI 3.1 document.

Source
emit_paths(routes : Array(RouteSpec)) : String

Emit just the paths object (retained for backward compat).

Source
oa_path(path : String) : String

Convert Vine-style path params (:id) to OpenAPI-style ({id}).

Source

Nested types