diff --git a/affiliations-tools/v1/expand.ini b/affiliations-tools/v1/expand.ini index b5f3619..f3f57c3 100644 --- a/affiliations-tools/v1/expand.ini +++ b/affiliations-tools/v1/expand.ini @@ -5,18 +5,13 @@ post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query -post.parameters.0.name = path -post.parameters.0.schema.type = string -post.parameters.0.description = The path in each object to struture -post.parameters.1.in = query -post.parameters.1.name = indent -post.parameters.1.schema.type = boolean -post.parameters.1.description = Indent or not the JSON Result +post.parameters.0.name = indent +post.parameters.0.schema.type = boolean +post.parameters.0.description = Indent or not the JSON Result # Necessary plugins [use] plugin = basics -plugin = storage plugin = analytics # Flow configuration @@ -26,16 +21,17 @@ # --------- Découpage du champ avec libpostal (decoupage en champs) [expand] path = value -cacheName = step1 +size = 10 +cacheName = libpostal [expand/URLConnect] url = https://affiliations-libpostal.services.inist.fr/v1/parse -timeout = 10000 +timeout = 5000 # --------- Enrichissement du resultat libpostal [expand] -size = 1 -cacheName = step2 path = value +# size = 1 est obligatoire pour traiter séparement chaque élement du tableau +size = 1 [expand/assign] path = value.value.id @@ -67,7 +63,7 @@ [expand/expand/URLConnect] url = https://affiliations-tools.services.inist.fr/v1/netscity/expand -timeout = 10000 +timeout = 5000 # --------- Selection des informations netscity à conserver [expand/expand/replace] @@ -98,7 +94,7 @@ [expand/expand/URLConnect] url = https://loterre-resolvers.services.inist.fr/v1/9SD/expand -timeout = 10000 +timeout = 5000 # --------- Selection des informations loterre à conserver [expand/expand/replace]