class Swagger::HTTP::APIHandler

Included Modules

Defined in:

swagger/http/handlers/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(document : Document, endpoint : String, swagger_path : String? = nil, debug_mode = false) #

[View source]

Instance Method Detail

def api_url #

[View source]
def call(context) #

[View source]
def match?(context) #

[View source]
def match_router?(context, path, method = "GET") #

[View source]
def not_found(context) #

[View source]
def redirect_to(context, uri, status_code = 301) #

[View source]
def response_with(context, body, headers : ::HTTP::Headers, status_code = 200) #

[View source]
def response_with(context, body, content_type = "application/json", status_code = 200) #

[View source]