class Swagger::HTTP::WebHandler

Included Modules

Defined in:

swagger/http/handers/web.cr

Constant Summary

DEMO_API_URL = "https://petstore.swagger.io/v2/swagger.json"
SWAGGER_WEB_URI = "/swagger"

Constructors

Instance Method Summary

Constructor Detail

def self.new(route : String = SWAGGER_WEB_URI, api_url : String = DEMO_API_URL, asset_dir : String = assets_path) #

[View source]

Instance Method Detail

def assets_path #

[View source]
def call(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]