diff --git a/Makefile b/Makefile index 3523875..d163bf7 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,9 @@ version-patch: ## Create a patch version for a directory, e.g. make version-patch mapping-tools @./bin/version-patch.sh "$(filter-out $@,$(MAKECMDGOALS))" +publish: ## Publish all web services + @./bin/publish.sh + get-version: ## Get the last version of a directory (useful to deployment) @git tag | grep "$(filter-out $@,$(MAKECMDGOALS))" | sort -V | tail -1 diff --git a/address-kit/swagger.json b/address-kit/swagger.json index 17d5c5a..1ff883f 100644 --- a/address-kit/swagger.json +++ b/address-kit/swagger.json @@ -1,15 +1,24 @@ { "info": { - "version": "4.0.0" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "title": "address-kit - Informations sur des adresses d'affiliations", + "summary": "Cette instance propose des outils de traitement d'adresses", + "version": "4.0.0", + "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://192.168.128.151:49226/", + "description": "Latest version for production", + "x-profil": "Deprecated" + } + ], "tags": [ { "name": "cnrs address", diff --git a/affiliations-tools/swagger.json b/affiliations-tools/swagger.json index 67d34a9..664750f 100644 --- a/affiliations-tools/swagger.json +++ b/affiliations-tools/swagger.json @@ -1,191 +1,201 @@ { "info": { - "version": "1.1.2" + "title": "affiliations-tools - Structuration & enrichissements d'affiliations", + "summary": "Propose plusieurs services autour des affiliations présentes dans les notices bibliographiques", + "version": "1.1.2", + "termsOfService": "https://objectif-tdm.inist.fr/", + "contact": { + "name": "Inist-CNRS", + "url": "https://www.inist.fr/nous-contacter/" + } }, - - "servers": [ - { - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - } - ], - "tags": [ - { - "name": "affiliations", - "description": "Affiliations", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools" - } - }, { - "name": "rnsr", - "description": "RNSR", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2frnsr%2fcsv" - } - }, { - "name": "adresses", - "description": "Adresses", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2faddresses%2fparse" - } - } - ], - "components": { - "schemas": { - "NoticesRnsr": { - "type": "array", - "items": { - "$ref": "#/components/schemas/NoticeRnsr" - } - }, - "NoticeRnsr": { - "type": "object", - "properties": { - "xPublicationDate": { - "type": "array", - "items": { - "type": "string", - "format": "date" - } - }, - "authors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuthorRnsr" - } - } - } - }, - "Notices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Notice" - } - }, - "Notice": { - "type": "object", - "properties": { - "xPublicationDate": { - "type": "array", - "items": { - "type": "string", - "format": "date" - } - }, - "authors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Author" - } - } - } - }, - "Author": { - "type": "object", - "properties": { - "affiliations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Affiliation" - } - } - } - }, - "AuthorRnsr": { - "type": "object", - "properties": { - "affiliations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AffiliationRnsr" - } - } - } - }, - "Affiliation": { - "type": "object", - "properties": { - "address": { - "type": "string" - } - } - }, - "AffiliationRnsr": { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "conditorRnsr": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RNSR" - } - } - } - }, - "RNSR": { - "type": "string", - "pattern": "^[0-9]{9}[A-Z]$", - "example": "200919362L" - }, - "IdYearAddresses": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdYearAddress" - } - }, - "IdYearAddress": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "value": { - "$ref": "#/components/schemas/YearAddress" - } - } - }, - "YearAddress": { - "type": "object", - "properties": { - "year": { - "type": "string", - "format": "date" - }, - "address": { - "type": "string", - "example": "University of Bordeaux, IMS, CNRS UMR5218, Talence, F-33405, France" - } - } - }, - "IdRNSRs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdRNSR" - } - }, - "IdRNSR": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RNSR" - } - } - } - } - } - } + "servers": [ + { + "x-comment": "Will be automatically completed by the ezs server." + }, + { + "url": "http://192.168.128.151:49234/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49294/", + "description": "only for personal or local usage" + } + ], + "tags": [ + { + "name": "affiliations", + "description": "Affiliations", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools" + } + }, { + "name": "rnsr", + "description": "RNSR", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2frnsr%2fcsv" + } + }, { + "name": "adresses", + "description": "Adresses", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2faddresses%2fparse" + } + } + ], + "components": { + "schemas": { + "NoticesRnsr": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NoticeRnsr" + } + }, + "NoticeRnsr": { + "type": "object", + "properties": { + "xPublicationDate": { + "type": "array", + "items": { + "type": "string", + "format": "date" + } + }, + "authors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorRnsr" + } + } + } + }, + "Notices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notice" + } + }, + "Notice": { + "type": "object", + "properties": { + "xPublicationDate": { + "type": "array", + "items": { + "type": "string", + "format": "date" + } + }, + "authors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Author" + } + } + } + }, + "Author": { + "type": "object", + "properties": { + "affiliations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Affiliation" + } + } + } + }, + "AuthorRnsr": { + "type": "object", + "properties": { + "affiliations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AffiliationRnsr" + } + } + } + }, + "Affiliation": { + "type": "object", + "properties": { + "address": { + "type": "string" + } + } + }, + "AffiliationRnsr": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "conditorRnsr": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RNSR" + } + } + } + }, + "RNSR": { + "type": "string", + "pattern": "^[0-9]{9}[A-Z]$", + "example": "200919362L" + }, + "IdYearAddresses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdYearAddress" + } + }, + "IdYearAddress": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "value": { + "$ref": "#/components/schemas/YearAddress" + } + } + }, + "YearAddress": { + "type": "object", + "properties": { + "year": { + "type": "string", + "format": "date" + }, + "address": { + "type": "string", + "example": "University of Bordeaux, IMS, CNRS UMR5218, Talence, F-33405, France" + } + } + }, + "IdRNSRs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdRNSR" + } + }, + "IdRNSR": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RNSR" + } + } + } + } + } + } } diff --git a/ark-tools/swagger.json b/ark-tools/swagger.json new file mode 100644 index 0000000..d4aff88 --- /dev/null +++ b/ark-tools/swagger.json @@ -0,0 +1,32 @@ +{ + "info": { + "title": "ark-tools - Génération des identifiants ARK", + "summary": "Permet la génération d'identifiants ARK uniques et pérennes.", + "version": "1.0.0", + "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://192.168.128.151:49194/", + "description": "Latest version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "ark-tools", + "description": "Génération des identifiants ARK", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/ark-tools" + } + } + ] +} diff --git a/authors-tools/swagger.json b/authors-tools/swagger.json index 61a9786..be8747e 100644 --- a/authors-tools/swagger.json +++ b/authors-tools/swagger.json @@ -1,15 +1,28 @@ { - "info": { - "version": "2.4.0" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "info": { + "title": "authors-tools - Outils sur les auteurs", + "summary": "Cette instance propose des outils pour traiter les auteurs.", + "version": "2.4.0", + "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://192.168.128.151:49229/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49230/", + "description": "only for personal or local usage" + } + ], "tags": [ { "name": "authors-tools", @@ -20,4 +33,4 @@ } } ] -} \ No newline at end of file +} diff --git a/biblio-tools/swagger.json b/biblio-tools/swagger.json index e5c9e40..89b3eca 100755 --- a/biblio-tools/swagger.json +++ b/biblio-tools/swagger.json @@ -1,15 +1,36 @@ { "info": { - "version": "2.2.2" + "title": "biblio-tools - Outils pour références bibliographiques", + "summary": "Propose plusieurs services dédiés aux références bibliographiques", + "version": "2.2.2", + "termsOfService": "https://objectif-tdm.inist.fr/", + "contact": { + "name": "Inist-CNRS", + "url": "https://www.inist.fr/nous-contacter/" + } }, - "tags": [ - { - "name": "biblio-tools", - "description": "Bibliographie", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/biblio-tools" - } - } - ] + "servers": [ + { + "x-comment": "Will be automatically completed by the ezs server." + }, + { + "url": "http://192.168.128.151:49228/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49240/", + "description": "only for personal or local usage" + } + ], + "tags": [ + { + "name": "biblio-tools", + "description": "Bibliographie", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/biblio-tools" + } + } + ] } diff --git a/bin/publish.sh b/bin/publish.sh new file mode 100755 index 0000000..0d99f40 --- /dev/null +++ b/bin/publish.sh @@ -0,0 +1,136 @@ +#!/usr/bin/env bash + +ROOT="$(dirname $0)/.." +SCHEME="https:" +DOMAIN="services.inist.fr" + +allItems="" + +process () { + SWAGGER_FILE=$1 + LOGIN=$2 + PASSW=$3 + + if [ ! -e "${SWAGGER_FILE}" ]; then + echo "No swagger file !" + return 1 + fi + + SWAGGER_DIRECTORY=$(dirname "${SWAGGER_FILE}") + SWAGGER_CONTENT=$() + NAME=$(basename "${SWAGGER_DIRECTORY}") + TITLE=$(cat "${SWAGGER_FILE}"|jq .info.title) + if [ "${TITLE:-null}" = "null" ] + then + logger -s "${NAME} - ERROR: swagger has no title !" + return 2 + fi + SUMMARY=$(cat "${SWAGGER_FILE}"|jq .info.summary) + if [ "${SUMMARY:-null}" = "null" ] + then + logger -s "${NAME} - ERROR: swagger has no summary !" + return 3 + fi + SERVERS=$(cat "${SWAGGER_FILE}"|jq -r ".servers") + if [ "${SERVERS:-null}" = "null" ] + then + logger -s "${NAME} - ERROR: swagger has no servers!" + return 4 + fi + URL=$(cat "${SWAGGER_FILE}"|jq -r ".servers[] | select(.\"x-profil\").url"|sed -e "s/^/ - url: /") + if [ "${URL:-null}" = "null" ] + then + logger -s "${NAME} - ERROR: swagger has no url !" + return 5 + fi + # First profil will be used for all url + PROFIL=$(cat "${SWAGGER_FILE}"|jq -r ".servers[] | select(.\"x-profil\").\"x-profil\""|head -n 1) + case ${PROFIL} in + Standard | Deprecated | Reserved | Administrator ) + echo -n "${NAME} - ${PROFIL} - " + ;; + * ) + logger -s "${NAME} - ERROR: swagger has no valid x-profil !" + return 6 + ;; + esac + CURL_OUTFILE=$(tempfile) + cat < ${CURL_OUTFILE} +http: + routers: + Router-${NAME}: + entryPoints: + - "web" + middlewares: + - "Middleware-${PROFIL}" + service: "Service-${NAME}" + rule: "Host(\`${NAME}.${DOMAIN}\`) || HostRegexp(\`${NAME}-{id:[0-9]+}.${DOMAIN}\`)" + services: + Service-${NAME}: + loadBalancer: + servers: +${URL} + +EOF + HTTP_CODE=$(cat ${CURL_OUTFILE}; rm ${CURL_OUTFILE}) + echo "${HTTP_CODE}" + allItems+="{ url: \"${SCHEME}//${NAME}.${DOMAIN}\", name: ${TITLE} }," + return 0 +} + +FILES=$(ls ${ROOT}/*/swagger.json) + +echo -n "Login: " +read login +echo -n "Password: " +read -s passw +echo " " + +for swagger in ${FILES} +do + process $swagger $login $passw +done + + +echo -n "www-home-4 - Index - " +CURL_OUTFILE=$(tempfile) +cat < ${CURL_OUTFILE} + + + + + OpenAPI - Web Services Inist-CNRS + + + +
+ + + + + + +EOF +HTTP_CODE=$(cat ${CURL_OUTFILE}; rm ${CURL_OUTFILE}) +echo "${HTTP_CODE}" diff --git a/co-deduplicate/swagger.json b/co-deduplicate/swagger.json index 9bc4be2..413eac3 100755 --- a/co-deduplicate/swagger.json +++ b/co-deduplicate/swagger.json @@ -1,15 +1,19 @@ { "info": { - "version": "0.0.0" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "title": "co-deduplicate", + "summary": "", + "version": "0.0.0", + "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." + } + ], "tags": [ { "name": "NLP", diff --git a/data-computer/swagger.json b/data-computer/swagger.json new file mode 100644 index 0000000..9afbf45 --- /dev/null +++ b/data-computer/swagger.json @@ -0,0 +1,32 @@ +{ + "info": { + "title": "data-computer - Calculs sur fichier coprus compressé", + "summary": "Algorithmes de calculs sur un corpus compressé", + "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://192.168.31.147:49303/", + "description": "Next version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "data-computer", + "description": "Calculs sur fichier coprus compressé", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/data-computer" + } + } + ] +} diff --git a/data-wrapper/swagger.json b/data-wrapper/swagger.json new file mode 100644 index 0000000..9d8de04 --- /dev/null +++ b/data-wrapper/swagger.json @@ -0,0 +1,32 @@ +{ + "info": { + "title": "data-wrapper - Conversions en fichier corpus compressé", + "summary": "Les fichiers corpus compressés sont compatibles avec tous traitments TDM dédiés au corpus", + "version": "1.0.0", + "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://192.168.31.147:49301/", + "description": "Next version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "data-wrapper", + "description": "Conversions en fichier corpus compressé", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/data-wrapper" + } + } + ] +} diff --git a/geo-tagger/swagger.json b/geo-tagger/swagger.json index 0b954fd..3c502d2 100755 --- a/geo-tagger/swagger.json +++ b/geo-tagger/swagger.json @@ -1,13 +1,20 @@ { - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], - "tags": [ + "info": { + "title": "geo-tagger", + "summary": "Cette instance propose un outil de détéction d'entités géographiques dans des textes anglais.", + "version": "0.0.0", + "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." + } + ], + "tags": [ { "name": "geoTagger", "description": "Détection d'entités géographiques", @@ -17,4 +24,4 @@ } } ] -} \ No newline at end of file +} diff --git a/hal-classifier/swagger.json b/hal-classifier/swagger.json index 1eef45c..cce5092 100644 --- a/hal-classifier/swagger.json +++ b/hal-classifier/swagger.json @@ -1,15 +1,24 @@ { "info": { - "version": "4.0.1" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "title": "hal-classifier - Classification HAL", + "summary": "Cette instance propose des outils de classification pour HAL", + "version": "4.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://192.168.128.151:49220/", + "description": "Latest version for production", + "x-profil": "Standard" + } + ], "tags": [ { "name": "Classification supervisée", diff --git a/kos2vec/swagger.json b/kos2vec/swagger.json index 4da2f0d..ff02a7f 100644 --- a/kos2vec/swagger.json +++ b/kos2vec/swagger.json @@ -1,23 +1,27 @@ -{ - "info": { - "version": "1.5.0" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], - "tags": [ - { - "name": "Indexation Loterre", - "description": "indexation sur ressource Memoire Loterre", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/kos2vec" - } - } - ] -} +{ + "info": { + "title": "kos2vec", + "summary": "", + "version": "1.5.0", + "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." + } + ], + "tags": [ + { + "name": "Indexation Loterre", + "description": "indexation sur ressource Memoire Loterre", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/kos2vec" + } + } + ] +} diff --git a/loterre-resolvers/swagger.json b/loterre-resolvers/swagger.json index 15ea158..f988f19 100644 --- a/loterre-resolvers/swagger.json +++ b/loterre-resolvers/swagger.json @@ -1,7 +1,28 @@ { "info": { - "version": "6.1.0" - }, + "title": "loterre-resolvers - Résolveurs pour des terminologies Loterre", + "summary": "Propose plusieurs services pour Loterre", + "version": "6.1.0", + "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://192.168.128.151:49237/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.128.75:49160/", + "description": "Next version for production" + } + ], "tags": [ { "name": "loterre-resolvers", diff --git a/mapping-tools/swagger.json b/mapping-tools/swagger.json index b5d4c69..ae49d26 100644 --- a/mapping-tools/swagger.json +++ b/mapping-tools/swagger.json @@ -1,15 +1,28 @@ { "info": { - "version": "1.10.3" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "title": "mapping-tools - Utilisation de tables de correspondance", + "summary": "Ces services permettent de remplacer des valeurs selon une table de correspondance.", + "version": "1.10.3", + "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://192.168.128.151:49232/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49273/", + "description": "only for personal or local usage" + } + ], "tags": [ { "name": "mapping", diff --git a/nlp-tools/swagger.json b/nlp-tools/swagger.json index 690a924..6c79453 100644 --- a/nlp-tools/swagger.json +++ b/nlp-tools/swagger.json @@ -1,23 +1,36 @@ { - "info": { - "version": "1.9.0" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], - "tags": [ - { - "name": "nlp-tools", - "description": "bibliothèque de composants TALN", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/nlp-tools" - } - } - ] -} \ No newline at end of file + "info": { + "title": "nlp-tools - Bibliotheques de composants NLP", + "summary": "Service pour l'interrogation de la boite à outil **nlptools**.", + "version": "1.9.0", + "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://192.168.128.151:49212/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49288/", + "description": "only for personal or local usage" + } + ], + "tags": [ + { + "name": "nlp-tools", + "description": "bibliothèque de composants TALN", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/nlp-tools" + } + } + ] +} diff --git a/nlp-tools2/swagger.json b/nlp-tools2/swagger.json index 2000bb1..fb3dce1 100644 --- a/nlp-tools2/swagger.json +++ b/nlp-tools2/swagger.json @@ -1,15 +1,24 @@ { "info": { - "version": "2.0.3" - }, - "servers": [{ - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - }], + "title": "nlp-tools2 - Outils de NLP", + "summary": "Cette instance propose des outils de traitement de la langue", + "version": "2.0.3", + "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://192.168.128.151:49212/", + "description": "Latest version for production", + "x-profil": "Standard" + } + ], "tags": [ { "name": "NLP", diff --git a/pdf-tools/swagger.json b/pdf-tools/swagger.json new file mode 100644 index 0000000..c72722f --- /dev/null +++ b/pdf-tools/swagger.json @@ -0,0 +1,32 @@ +{ + "info": { + "title": "pdf-tools - Transformations sur des fichiers PDF", + "summary": "Transformations et convertions de fichiers PDF pour traitement TDM externes", + "version": "0.0.0", + "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://192.168.31.147:49290/", + "description": "Next version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "pdf-tools", + "description": "Transformations sur des fichiers PDF", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/pdf-tools" + } + } + ] +} diff --git a/terms-extraction/swagger.json b/terms-extraction/swagger.json index f85f1bf..d94f7fd 100644 --- a/terms-extraction/swagger.json +++ b/terms-extraction/swagger.json @@ -1,7 +1,28 @@ { - "info": { - "version": "1.5.1" - }, + "info": { + "title": "terms-extraction - Extraction de termes", + "summary": "Ce serveur propose des services d'extraction de termes dans des textes.", + "version": "1.5.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://192.168.128.151:49235/", + "description": "Latest version for production", + "x-profil": "Standard" + }, + { + "url": "http://192.168.31.147:49281/", + "description": "only for personal or local usage" + } + ], "tags": [ { "name": "terms-extraction", @@ -12,4 +33,4 @@ } } ] -} \ No newline at end of file +} diff --git a/www-home/index.html b/www-home/index.html index a24895a..001e87e 100644 --- a/www-home/index.html +++ b/www-home/index.html @@ -18,21 +18,7 @@ // Build a system const ui = SwaggerUIBundle({ urls: [ - { url: "https://address-kit.services.inist.fr", name: "address-kit - Informations sur des adresses d'affiliations" }, - { url: "https://affiliation-rnsr.services.inist.fr/", name: "affiliation-rnsr - Recherche d'identifiants RNSR" }, - { url: "https://affiliations-tools.services.inist.fr", name: "affiliations-tools - Structuration & enrichissements d'affiliations" }, - { url: "https://ark-tools.services.inist.fr/", name: "ark-tools - Services autour des identifiants ARK" }, - { url: "https://authors-tools.services.inist.fr", name: "authors-tools - Outils sur les auteurs" }, - { url: "https://biblio-tools.services.inist.fr/", name: "biblio-tools - Outils pour références bibliographiques" }, - { url: "https://domains-classifier.services.inist.fr/", name: "domains-classifier - Classification en domaines scientifiques" }, - { url: "https://hal-classifier.services.inist.fr", name: "hal-classifier - Classification HAL" }, - { url: "https://irc3-species.services.inist.fr", name: "irc3-species - IRC3 espèces animales" }, - { url: "https://loterre-resolvers.terminology.inist.fr", name: "loterre-resolvers - Résolveurs pour des terminologies Loterre" }, - { url: "https://mapping-tools.services.inist.fr/", name: "mapping-tools - Utilisation de tables de correspondance" }, - { url: "https://ner-tagger.services.inist.fr", name: "ner-tagger - Détection d'entités nommées" }, - { url: "https://nlp-tools.services.inist.fr", name: "nlp-tools - Bibliotheques de composants NLP" }, - { url: "https://nlp-tools2.services.inist.fr/", name: "nlp-tools2 - Outils de NLP" }, - { url: "https://terms-extraction.services.inist.fr", name: "terms-extraction - Extraction de termes" }, + // use make publish ], queryConfigEnabled: true, dom_id: '#swagger-ui',