diff --git a/bin/publish.sh b/bin/publish.sh index 86c6828..5516a19 100755 --- a/bin/publish.sh +++ b/bin/publish.sh @@ -102,45 +102,31 @@ done -echo -n "open-api - Index - " +echo -n "open-api - Swagger - " CURL_OUTFILE=$(tempfile) -cat < ${CURL_OUTFILE} - - - - - OpenAPI - Web Services Inist-CNRS - - - -
- - - - - +cat < ${CURL_OUTFILE} +window.onload = function() { + // + // the following lines will be replaced by docker/configurator, when it runs in a docker-container + window.ui = SwaggerUIBundle({ + urls: [ + ${allItems} + ], + dom_id: '#swagger-ui', + deepLinking: true, + presets: [ + SwaggerUIBundle.presets.apis, + SwaggerUIStandalonePreset + ], + plugins: [ + SwaggerUIBundle.plugins.DownloadUrl + ], + layout: "StandaloneLayout" + }); + + // +}; EOF HTTP_CODE=$(cat ${CURL_OUTFILE}; rm ${CURL_OUTFILE}) echo "${HTTP_CODE}"