diff --git a/src/templates/APIPage/APIPage.jsx b/src/templates/APIPage/APIPage.jsx index 5489d288..e3c54c9b 100644 --- a/src/templates/APIPage/APIPage.jsx +++ b/src/templates/APIPage/APIPage.jsx @@ -1,20 +1,25 @@ import React from 'react'; +import qs from 'qs'; import SwaggerUI from 'swagger-ui-react'; import 'swagger-ui-react/swagger-ui.css'; -const APIPage = ({ hideAuth, additionalParams, rootUrl }) => ( -
+const APIPage = ({ hideAuth, additionalParams, rootUrl }) => { + const hasACA = additionalParams && additionalParams.ACA ? true : false; + let params = { + authentication: hideAuth ? false : undefined, + ACA: hasACA ? additionalParams.ACA : undefined, + redirect: hasACA ? false : undefined, + }; + return ( +
-); + ) +}; APIPage.defaultProps = { hideAuth: true,