class Swagger::HTTP::APIHandler
- Swagger::HTTP::APIHandler
- Reference
- Object
Included Modules
- HTTP::Handler
- Swagger::HTTP::Handler
Defined in:
swagger/http/handlers/api.crConstructors
Instance Method Summary
- #api_url
- #call(context)
- #match?(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(document : Document, endpoint : String, swagger_path : String | Nil = nil, debug_mode : Bool = false)
#