diff --git a/biblio-tools/v1/datacite/works/expand.ini b/biblio-tools/v1/datacite/works/expand.ini new file mode 100644 index 0000000..5c4e1de --- /dev/null +++ b/biblio-tools/v1/datacite/works/expand.ini @@ -0,0 +1,61 @@ +# OpenAPI Documentation - JSON format (dot notation) +mimeType = application/json + +post.operationId = post-v1-datacite-works-expand +post.description = Récupération des métadonnées associées à un DOI dans Recherche Data Gouv +post.summary = Récupération à partir d'un tableau d'objets avec à minima un champ value contenant le DOI +post.tags.0 = biblio-tools +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = 10.4000/edc.9014 +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.requestBody.required = true +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = { ... } +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.responses.default.description = Les prefixes DOI en version textuel +post.parameters.0.description = Indenter le JSON résultant +post.parameters.0.in = query +post.parameters.0.name = indent +post.parameters.0.schema.type = boolean + +# Necessary plugins +[use] +plugin = basics +plugin = analytics +plugin = storage + +# Flow configuration +[JSONParse] + +[expand] +path = value +cacheName = post-v1-datacite-works-expand + +[expand/URLFetch] + +url = get('value').prepend('https://api.datacite.org/dois/') +json = true +target = fix('value') +timeout = 30000 +retries = 5 +; évite l'arret du traitement, en cas d'erreur, on retourne la valeur non traitée +noerror = true + +; Prendre uniquement data +[expand/replace] +path = id +value = get('id') +path = value +value = get('value.data') + +# On marque les réponses qui n'ont pas abouties +[swing] +test = has('value.id') +reverse = true + +[swing/assign] +path = value +value = fix('n/a') + +[dump] +indent = env('indent', false) diff --git a/biblio-tools/v2/datacite/works/expand.ini b/biblio-tools/v2/datacite/works/expand.ini new file mode 100644 index 0000000..bccd71c --- /dev/null +++ b/biblio-tools/v2/datacite/works/expand.ini @@ -0,0 +1,61 @@ +# OpenAPI Documentation - JSON format (dot notation) +mimeType = application/json + +post.operationId = post-v2-datacite-works-expand +post.description = Récupération des métadonnées associées à un DOI dans Recherche Data Gouv +post.summary = Récupération à partir d'un tableau d'objets avec à minima un champ value contenant le DOI +post.tags.0 = biblio-tools +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = 10.4000/edc.9014 +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.requestBody.required = true +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = { ... } +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.responses.default.description = Les prefixes DOI en version textuel +post.parameters.0.description = Indenter le JSON résultant +post.parameters.0.in = query +post.parameters.0.name = indent +post.parameters.0.schema.type = boolean + +# Necessary plugins +[use] +plugin = basics +plugin = analytics +plugin = storage + +# Flow configuration +[JSONParse] + +[expand] +path = value +cacheName = post-v2-datacite-works-expand + +[expand/URLFetch] + +url = get('value').prepend('https://api.datacite.org/dois/') +json = true +target = fix('value') +timeout = 30000 +retries = 5 +; évite l'arret du traitement, en cas d'erreur, on retourne la valeur non traitée +noerror = true + +; Prendre uniquement data +[expand/replace] +path = id +value = get('id') +path = value +value = get('value.data') + +# On marque les réponses qui n'ont pas abouties +[swing] +test = has('value.id') +reverse = true + +[swing/assign] +path = value +value = fix('n/a') + +[dump] +indent = env('indent', false) diff --git a/biblio-tools/v2/rdg/works/expand.ini b/biblio-tools/v2/rdg/works/expand.ini index 24fbbed..e177a65 100644 --- a/biblio-tools/v2/rdg/works/expand.ini +++ b/biblio-tools/v2/rdg/works/expand.ini @@ -1,7 +1,7 @@ # OpenAPI Documentation - JSON format (dot notation) mimeType = application/json -post.operationId = post-v1-rdg-works-expand +post.operationId = post-v2-rdg-works-expand post.description = Récupération des métadonnées associées à un DOI dans Recherche Data Gouv post.summary = Récupération à partir d'un tableau d'objets avec à minima un champ value contenant le DOI post.tags.0 = biblio-tools @@ -29,7 +29,7 @@ [expand] path = value -cacheName = post-v1-rdg-works-expand +cacheName = post-v2-rdg-works-expand [expand/URLFetch] diff --git a/terms-extraction/swagger.json b/terms-extraction/swagger.json index 67f52c1..ba3c094 100644 --- a/terms-extraction/swagger.json +++ b/terms-extraction/swagger.json @@ -2,8 +2,8 @@ "openapi": "3.1.0", "info": { "title": "terms-extraction - Extraction de termes", - "summary": "Ce serveur propose des services d'extraction de termes dans des textes.", - "version": "1.5.1", + "summary": "Extraction de termes à partir de textes en anglais ou en français.", + "version": "1.6.0", "termsOfService": "https://services.istex.fr/", "contact": { "name": "Inist-CNRS", @@ -15,13 +15,9 @@ "x-comment": "Will be automatically completed by the ezs server." }, { - "url": "http://vptdmservices.intra.inist.fr:49245/", + "url": "http://vptdmservices.intra.inist.fr:49253/", "description": "Latest version for production", "x-profil": "Standard" - }, - { - "url": "http://vitdmservices.intra.inist.fr:49281/", - "description": "only for personal or local usage" } ], "tags": [ @@ -30,8 +26,8 @@ "description": "Extraction de termes", "externalDocs": { "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/terms-extraction" + "url": "https://github.com/inist-cnrs/web-services/tree/main/services/terms-extraction" } } ] -} \ No newline at end of file +}