class

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)
Source

Instance methods

api_url
Source
call(context)
Source
match?(context)
Source
match_router?(context, path, method = "GET")
Source
not_found(context)
Source
redirect_to(context, uri, status_code = 301)
Source
response_with(context, body, headers : ::HTTP::Headers, status_code = 200)
Source
response_with(context, body, content_type = "application/json", status_code = 200)
Source