Mountable engine. In the host app's routes:
mount Minitest::OpenAPI::Api::Engine => "/api-docs"
The document is then served at GET /api-docs.