Newer
Older
web-services / data-wrapper / v1 / tar-tei2json.ini
@Nicolas Thouvenin Nicolas Thouvenin on 20 Oct 1 KB doc: add openapi documentation
# Entrypoint output format
mimeType = application/x-tar

# 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 coprus exploitable par un web service asynchrone, chaque document TEI est préalablement transformé en JSON
post.tags.0 = data-wrapper
post.requestBody.content.text/xml.schema.type = string
post.requestBody.content.text/xml.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'})