diff --git a/co-deduplicate/deduplicate.ini b/co-deduplicate/deduplicate.ini new file mode 100644 index 0000000..f79bc08 --- /dev/null +++ b/co-deduplicate/deduplicate.ini @@ -0,0 +1,48 @@ +# OpenAPI Documentation - JSON format (dot notation) +post.responses.default.description = Return all objects with enrich fields +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.summary = Enrich one field of each Object with a Python function +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 enrich with an Python script +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 + + +[use] +plugin = @ezs/local +plugin = @ezs/basics +plugin = @ezs/storage +plugin = @ezs/analytics + +[JSONParse] +separator = * + +[expand] +path = env('path', 'value') +size = 100 + +# in production mode, uncomment the following line +# cache = boost + +[expand/exec] +# command should be executable ! +command = ./expand.py +args = fix('--url') +args = env('--url',"http://vp-conditor-es.intra.inist.fr:9200") +args = fix('--index') +args = env('--index','records-202012') +args = fix('--size') +args = env('--size','100') +; args = fix('--http_proxy') +; args = env('--http_proxy','') +; args = fix('--https_proxy') +; args = env('--https_proxy','') + +[dump] +indent = env('indent', false)