Swagger::HTTP::APIHandler
Inherits HTTP::Handler < Swagger::HTTP::Handler < Reference < Object
Constructors
new(document : Document, endpoint : String, swagger_path : String | Nil = nil, debug_mode : Bool = false)
SourceInstance methods
api_url
Sourcecall(context)
Sourcematch?(context)
Sourcematch_router?(context, path, method = "GET")
Sourcenot_found(context)
Sourceredirect_to(context, uri, status_code = 301)
Sourceresponse_with(context, body, headers : ::HTTP::Headers, status_code = 200)
Sourceresponse_with(context, body, content_type = "application/json", status_code = 200)
Source