moonbitstack/moonapi/route does not have a README file
pub(all) struct Route {
verb : Method
path : String
run : async (Context) -> Reply
summary : String
description : String
tags : Array[String]
deprecated : Bool
operation_id : String
status_code : Int?
responses : Array[ResponseSpec]
name : String
openapi_extra : Json?
endpoint : Endpoint?
security : Array[SecurityRequirement]
dependencies : Array[String]
include_in_schema : Bool
validate : Bool
}fn Router::delete(self : Router, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::get(self : Router, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::patch(self : Router, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::post(self : Router, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::put(self : Router, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::route(self : Router, verb : Method, path : String, handler : async (Context) -> Response, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::route_stream(self : Router, verb : Method, path : String, handler : async (Context) -> Stream, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> Unitfn Router::stream(self : Router, path : String, handler : async (Context) -> Stream, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, operation_id? : String, status_code? : Int, responses? : Array[ResponseSpec], name? : String, endpoint? : Endpoint, security? : Array[SecurityRequirement], dependencies? : Array[String], include_in_schema? : Bool, validate? : Bool, openapi_extra? : Json) -> UnitInstall
Download zipmoonapi — a typed web framework for MoonBit (← FastAPI): async handlers, routing, typed extractors, descriptor-driven validation, multi-version OpenAPI/Swagger (2.0 / 3.0 / 3.1) with security schemes, dependency injection, OAuth2 password-bearer with scopes, per-operation security enforcement, multipart and urlencoded forms, response_model filtering, background tasks, sub-application mounting, ASGI layers and FastAPI-style middleware, exception and per-status handlers, streaming responses, Server-Sent Events and live WebSocket routes, as a native moonasgi application.