diff --git a/data-calculation/v1/tree-segment.ini b/data-calculation/v1/tree-segment.ini index 95d0cda..7e3c02d 100644 --- a/data-calculation/v1/tree-segment.ini +++ b/data-calculation/v1/tree-segment.ini @@ -12,11 +12,11 @@ path = identifier value = get('uri').replace('uid:/', '') -# Traitement asynchnrone de tous les items du corpus +# Traitement asynchrone de tous les items du corpus [fork] standalone = true -# Calcul sur le coprus +# Calcul sur le corpus [fork/replace] path = id value = get('id') @@ -30,7 +30,7 @@ identifier = env('identifier') jsonl = true -# Signal le fin du traitment via un appel à un webhook (si il a été précisé) +# Signal le fin du traitement via un appel à un webhook (si il a été précisé) [fork/swing] test = env('headers.x-hook').startsWith('http') [fork/swing/replace] @@ -50,7 +50,7 @@ text = process completed -# Retour immédiat d'un seul élement indiquant command récupére le corpus quand il sera pret +# Retour immédiat d'un seul élément indiquant comment récupérer le corpus quand il sera prêt [shift] [replace] path = id diff --git a/data-wrapper/examples.http b/data-wrapper/examples.http index 5a77c24..67436b2 100644 --- a/data-wrapper/examples.http +++ b/data-wrapper/examples.http @@ -1,9 +1,10 @@ # File Global Variables: Variables defined in Region without name or request -@baseUrl = http://localhost:31976 -#@baseUrl = https://data-wrapper.services.inist.fr +#@baseUrl = http://localhost:31976 +@baseUrl = http://data-wrapper-2.tdmservices.intra.inist.fr/ ### # @name csv +# @save POST {{baseUrl}}/v1/csv?compress=false HTTP/1.1 Content-Type: text/csv diff --git a/data-wrapper/v1/csv.ini b/data-wrapper/v1/csv.ini index 42661bb..926fbe0 100644 --- a/data-wrapper/v1/csv.ini +++ b/data-wrapper/v1/csv.ini @@ -7,6 +7,12 @@ [CSVObject] +[replace] +path = id +value = get('title') +path = value +value = get('title') + [TARDump] compress = true manifest = fix({version: '1'})