Description of problem: It has an HREF to a stylesheet @ https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700 Steps to Reproduce: 1. Look at the source code of the /api/model page.
and /apidocs seems to have also https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css
Do we need/want a completely independent HTML? With no external references?
(In reply to Juan Hernández from comment #2) > Do we need/want a completely independent HTML? With no external references? Yes, for more than one reason: 1. In internal networks without Internet, how will it look like? 2. Performance - it takes quite some time, for some reason, to bring those. 3. Reliability - what if they change something? Remove something? inaccessible? have been infected with some malicious JS code? etc....
OK
The following changes modify the 'ovirt-engine-api-explorer' application so that it doesn't require access to external resources: Bundle JavaScript libraries https://gerrit.ovirt.org/82103 Bundle styles and images https://gerrit.ovirt.org/82111 A preview of the modified application is available here: https://jhernand.fedorapeople.org/ovirt-api-explorer The next step is, in my opinion, to modify the engine so that it includes this application in the /ovirt-engine/apidoc URL, instead of the current static document.
The fix for this issue isn't complete, we still need to modify the engine so that it uses the API explorer instead of the plain HTML documentation.
The following two patches complete the integration of the API explorer into the engine: restapi: Integrate API explorer https://gerrit.ovirt.org/82401 Require ovirt-js-dependencies https://gerrit.ovirt.org/82402 The API explorer doesn't use external fonts, or styles. It only uses what it bundles and what the "ovirt-js-dependencies" package provides. The existing "model.html" file, which requires external fonts, styles and scripts, is still available, but only if explicitly requested. The default page shown when accessing /ovirt-engine/apidoc will be the API explorer. If we consider it convenient that "model.html" can be removed.
Verified on 4.2.0-0.0.master.20171013142622.git15e767c.el7.centos
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.