# Entrypoint output format
mimeType = application/x-tar
extension = tar.gz
# OpenAPI Documentation - JSON format (dot notation)
post.operationId = post-v1-tei2json
post.description = Transformation d'un fichier TEI en fichier corpus
post.summary = Le fichier est transformé en fichier corpus exploitable par un web service asynchrone, chaque document TEI est préalablement transformé en JSON
post.tags.0 = data-wrapper
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 = Fichier corpus au format tar.gz
post.responses.default.content.application/x-tar.schema.type = string
post.responses.default.content.application/x-tar.schema.format = binary
[use]
plugin = basics
[TARExtract]
path = **/*.xml
compress = true
json = false
[map]
path = value
[map/XMLParse]
separator = /tei:TEI
separator = /tei
[replace]
path = fileName
value = get('id')
path = fileContent
value = get('value.0')
[TARDump]
compress = true
manifest = fix({version: '1'})
manifest = fix({generator: 'v1/tar-tei2json'})