class Swagger::HTTP::WebHandler
- Swagger::HTTP::WebHandler
- Reference
- Object
Included Modules
- HTTP::Handler
- Swagger::HTTP::Handler
Defined in:
swagger/http/handlers/web.crConstant Summary
-
DEMO_API_URL =
"https://petstore.swagger.io/v2/swagger.json"
-
SWAGGER_WEB_URI =
"/swagger"
Constructors
Instance Method Summary
- #assets_path
- #call(context)
- #match_router?(context, path, method = "GET")
- #not_found(context)
- #redirect_to(context, uri, status_code = 301)
- #response_with(context, body, headers : ::HTTP::Headers, status_code = 200)
- #response_with(context, body, content_type = "application/json", status_code = 200)
Constructor Detail
def self.new(route : String = SWAGGER_WEB_URI, api_url : String = DEMO_API_URL, asset_dir : String = assets_path)
#