diff --git a/src/main/webapp/app/common/components/header/Header.js b/src/main/webapp/app/common/components/header/Header.js index 36db071e..bcfe64f5 100644 --- a/src/main/webapp/app/common/components/header/Header.js +++ b/src/main/webapp/app/common/components/header/Header.js @@ -8,7 +8,7 @@ import { import { connect } from "react-redux"; import { getAboutInfo, hideAboutModal, getUser, saveDownload } from "../../../common/actions/api"; import * as Constants from "../../../common/constants.js"; -import { openDocumentation, openApiDocs } from "../../../common/documentation/documentation"; +import { openDocumentation, openApiDocs, openAdaptorApiDocs } from "../../../common/documentation/documentation"; import { reCentreCanvas, reCentreModel, @@ -467,6 +467,15 @@ class Header extends React.Component { > Spyderisk REST API + + openAdaptorApiDocs(e) + } + > + Spyderisk Adaptor REST API +

Tutorials diff --git a/src/main/webapp/app/common/documentation/documentation.js b/src/main/webapp/app/common/documentation/documentation.js index 6cbd4291..97674a99 100644 --- a/src/main/webapp/app/common/documentation/documentation.js +++ b/src/main/webapp/app/common/documentation/documentation.js @@ -7,3 +7,8 @@ export function openApiDocs(e) { e.stopPropagation(); window.open("/system-modeller/swagger-ui.html", "openapi-docs"); } + +export function openAdaptorApiDocs(e) { + e.stopPropagation(); + window.open("/system-modeller/adaptor/docs#/", "adaptor-openapi-docs"); +}