# 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 post.parameters.2.in = query post.parameters.2.name = deep post.parameters.2.schema.type = integer post.parameters.2.description = profondeur [0...3] [use] plugin = @ezs/local plugin = @ezs/basics plugin = @ezs/storage plugin = @ezs/analytics [JSONParse] separator = * [expand] path = value size = 100 # in production mode, uncomment the following line # cache = boost #------------------------ pretraitement nlptools ----------------- [expand/URLConnect] #url = https://nlp-tools-1.services.inist.fr/v1/en/postagger/analyze?output=doc timeout = 100000 url = http://nlptools-02.tdmservices.intra.inist.fr/v1/en/postagger/analyze?output=doc¶m=%7B%22POStagger%22%3A%20%7B%22POS_whitelist%22%3A%5B%22ADJ%22%2C%22NOUN%22%2C%20%22PROPN%22%5D%7D%7D #------------------------ prediction du code de classement ------- [expand/exec] #command should be executable ! command = ./classify.py args = fix('-p') args = env('deep',3) [expand/exploding] # WARNING: [exploding] generates an object {id, value}, where the key value contains the original data [expand/combine] path = value.code primer = ./code-classement.json [expand/combine/files] [expand/combine/JSONParse] separator = * [expand/combine/replace] path = id value = get('code') path = value value = get('verbalisation') [expand/combine/validate] path = id rule = required path = value rule = required [expand/aggregate] #------------------------ prediction du code de classement ---------- [dump] indent = true