diff --git a/data-computer/examples.http b/data-computer/examples.http index 4d15444..877a2ef 100644 --- a/data-computer/examples.http +++ b/data-computer/examples.http @@ -4,14 +4,12 @@ ### # @name retrieve -# @save -# @extension tar.gz -POST {{baseUrl}}/v1/retrieve HTTP/1.1 +POST {{baseUrl}}/v1/retrieve?json=true&indent=true HTTP/1.1 Content-Type: application/json [ { - "value":"fRc6Mdcri" + "value":"x5p9p25zU" } ] ### diff --git a/data-computer/v1/retrieve.ini b/data-computer/v1/retrieve.ini index ef65d11..632a20a 100644 --- a/data-computer/v1/retrieve.ini +++ b/data-computer/v1/retrieve.ini @@ -1,6 +1,22 @@ +# Entrypoint output format +mimeType = application/x-tar + +# OpenAPI Documentation - JSON format (dot notation) +post.operationId = post-v1-retrieve +post.description = Récupération d'un résulatt produit +post.summary = Les traitments étant asynchrone le résulat uen fois créé doit-être récupéré par cette route +post.tags.0 = data-computer +post.responses.default.description = Fichier corpus au format tar +post.requestBody.content.application/json.example.0.value = xMkWJX7GU +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.requestBody.required = true +post.parameters.0.description = Flow the JSON +post.parameters.0.in = query +post.parameters.0.name = json +post.parameters.0.schema.type = boolean + [use] plugin = basics -plugin = analytics [JSONParse] separator = * @@ -11,8 +27,14 @@ [FILELoad] location = /tmp/retrieve -#[unpack] +[swing] +test = env('json').isEmpty() +reverse = true -#[TARDump] -#compress = true -#manifest = env('manifest') \ No newline at end of file +[swing/TARExtract] +compress = true +path = */*.json + +[swing/JSONString] +indent = env('indent') +