diff --git a/base-line/swagger.json b/base-line/swagger.json new file mode 100644 index 0000000..65ff59f --- /dev/null +++ b/base-line/swagger.json @@ -0,0 +1,32 @@ +{ + "info": { + "title": "base-line - Services dédiés aux tests", + "summary": "Propose plusieurs services proposant aucun traitement ce qui permet de vérfier ou mesuer les connexions ou les temps de réponse", + "version": "1.0.1", + "termsOfService": "https://objectif-tdm.inist.fr/", + "contact": { + "name": "Inist-CNRS", + "url": "https://www.inist.fr/nous-contacter/" + } + }, + "servers": [ + { + "x-comment": "Will be automatically completed by the ezs server." + }, + { + "url": "http://vptdmservices.intra.inist.fr:49225/", + "description": "Latest version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "base-line", + "description": "Services dédiés aux tests", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/base-line" + } + } + ] +} diff --git a/bin/publish.sh b/bin/publish.sh index 3dec297..c18d1c4 100755 --- a/bin/publish.sh +++ b/bin/publish.sh @@ -54,7 +54,7 @@ ;; esac CURL_OUTFILE=$(tempfile) - cat < ${CURL_OUTFILE} + cat < ${CURL_OUTFILE} http: routers: Router-${NAME}: @@ -63,7 +63,7 @@ middlewares: - "Middleware-${PROFIL}" service: "Service-${NAME}" - rule: "Host(\`${NAME}.services.istex.fr\`) || Host(\`${NAME}.services.inist.fr\`)" + rule: "Host(\`${NAME}.services.istex.fr\`, \`${NAME}.services.inist.fr\`)" services: Service-${NAME}: loadBalancer: @@ -83,17 +83,17 @@ read login echo -n "Password: " read -s passw -echo " " +echo " $login:$passw" for swagger in ${FILES} do - process $swagger $login $passw + process "$swagger" "$login" "$passw" done echo -n "www-home-4 - Index - " CURL_OUTFILE=$(tempfile) -cat < ${CURL_OUTFILE} +cat < ${CURL_OUTFILE}