def cornice_enable_openapi_explorer(<EOL>config,<EOL>api_explorer_path='<STR_LIT>',<EOL>permission=NO_PERMISSION_REQUIRED,<EOL>route_factory=None,<EOL>**kwargs):
config.add_route('<STR_LIT>', api_explorer_path,<EOL>factory=route_factory)<EOL>config.add_view('<STR_LIT>',<EOL>permission=permission,<EOL>route_name='<STR_LIT>')<EOL>
:param config:
    Pyramid configurator object
:param api_explorer_path:
    where to expose Swagger UI interface view
:param permission:
    pyramid permission for those views
:param route_factory:
    factory for context object for those routes

This registers and configures the view that serves api explorer