Pure-HTML swagger-ui page, for OpenAPI descriptors of the Open Knowledge Brasil's projects.
Adapted from swagger-ui/dist after swagger-ui/issues good clues, thanks @tleyden.
At the final <script>
in index.htm, change the variables hash_URLs
and hash_default
. At HTML's body, change options of the headerSelect
.
Clone index.htm
and assets/
in a server folder, and use its URL:
-
default OpenAPI descriptor (as
hash_default
), example http://api.ok.org.br -
specific, by the project's label (as
hash_URLs
) as hash parameter, example http://api.ok.org.br#petstore