Class: Minitest::OpenAPI::UI::PageEndpoint
- Inherits:
-
Object
- Object
- Minitest::OpenAPI::UI::PageEndpoint
- Defined in:
- lib/minitest/openapi/ui/page_endpoint.rb
Overview
Rack endpoint rendering a Swagger UI page. swagger-ui-dist is loaded from the jsDelivr CDN so the gem ships no vendored assets.
Constant Summary collapse
- HTML_HEADERS =
{"content-type" => "text/html; charset=utf-8"}.freeze
Instance Method Summary collapse
Instance Method Details
#call(_env) ⇒ Object
13 14 15 |
# File 'lib/minitest/openapi/ui/page_endpoint.rb', line 13 def call(_env) [200, HTML_HEADERS.dup, [render]] end |