"""
The manifest pages of an ApiConnection and of an SqlConnection, which the single-page console serves (ADR-035).
The pages are ``/connection/connections/api-connection/<hashed id>/`` and
``/connection/connections/sql-connection/<hashed id>/``. The console shows the resource's manifest in the
manifest editor, from the dashboard's resource api, :mod:`smarter.apps.dashboard.resource_detail`, which finds it by
its record locator if the user may read it. The pages keep their view classes and url names, which
:func:`smarter.lib.manifest.record_locator.console_paths` reverses.
"""
from smarter.apps.dashboard.views.console_app import ConsoleAppView
[docs]
class ApiConnectionDetailView(ConsoleAppView):
"""An ApiConnection's manifest page: the single-page console's, at the path that Django served it at."""
[docs]
class SqlConnectionDetailView(ConsoleAppView):
"""An SqlConnection's manifest page: the single-page console's, at the path that Django served it at."""