diff --git a/web-app/src/components/RegistryItem.vue b/web-app/src/components/RegistryItem.vue index 628898d..19d1395 100644 --- a/web-app/src/components/RegistryItem.vue +++ b/web-app/src/components/RegistryItem.vue @@ -11,7 +11,7 @@ >
- OAS3 + OAS3 {{ api?.openapi.includes('.') ? " " + api?.openapi.split('.', 2).join('.') : " " + api?.openapi }} Swagger2 { const HideEmptyTagsPlugin = () => { return { @@ -141,6 +143,8 @@ export default { '
warning Your connection is secure (HTTPS) and the selected server utilizes an insecure communication (HTTP).
This will likely result in errors, please select a matching protocol server or change your connection.
' ); } + document.querySelector('.swagger-ui .info .title small.version-stamp pre.version') + .insertAdjacentHTML('beforeend', data?.openapi.includes('.') ? " " + data?.openapi.split('.', 2).join('.') : " " + data?.openapi) } } }); @@ -152,6 +156,7 @@ export default { .get(url) .then((res) => { data.api = res.data; + data.openapi = res.data?.openapi }) .catch((err) => { throw err;