# Entrypoint output format
mimeType = application/json
# OpenAPI Documentation - JSON format (dot notation)
post.operationId = post-v1-mock-error-sync
post.description = Chargement et analyse d'un fichier corpus et simule une erreur direct d'analyse du fichier
post.summary = Simule une erreur synchrone, avant que le traitment soit lancé.
post.tags.0 = data-computer
post.requestBody.content.application/x-tar.schema.type = string
post.requestBody.content.application/x-tar.schema.format = binary
post.requestBody.required = true
post.responses.default.description = Informations permettant de récupérer les données le moment venu
post.parameters.0.description = Indenter le JSON résultant
post.parameters.0.in = query
post.parameters.0.name = indent
post.parameters.0.schema.type = boolean
post.parameters.1.description = URL pour signaler que le traitement est terminé
post.parameters.1.in = header
post.parameters.1.name = X-Webhook-Success
post.parameters.1.schema.type = string
post.parameters.1.schema.format = uri
post.parameters.1.required = false
post.parameters.2.description = URL pour signaler que le traitement a échoué
post.parameters.2.in = header
post.parameters.2.name = X-Webhook-Failure
post.parameters.2.schema.type = string
post.parameters.2.schema.format = uri
post.parameters.2.required = false
[use]
plugin = basics
plugin = analytics
# Step 1 (générique): Charger le fichier corpus
[delegate]
file = charger.cfg
# Step 2 (générique): Traiter de manière asynchnore les items reçus
[validate]
path = fake path
rule = required
# Step 3 : Renvoyer immédiatement un seul élément indiquant comment récupérer le résulat quand il sera prêt
[shift]
[replace]
path = id
value = env('generator')
path = value
value = env('identifier')
[JSONString]
indent = env('indent')