Newer
Older
web-services / mapping-tools / v1 / homogenize / source / json.ini
@Nicolas Thouvenin Nicolas Thouvenin on 19 Jul 1 KB avoid setting public URLs for resources
# OpenAPI Documentation - JSON format (dot notation)
mimeType = application/json

post.operationId = post-v1-homogenize-source-json
post.requestBody.content.application/json.example.0.id = 0
post.requestBody.content.application/json.example.0.value = « Gilets jaunes » Hypothèses sur un mouvement
post.requestBody.content.application/json.schema.$ref = #/components/schemas/IdChaines
post.requestBody.required = true
post.responses.default.content.application/json.example.0.id = 0
post.responses.default.content.application/json.example.0.value = \"GILETS JAUNES\" : HYPOTHESES SUR UN MOUVEMENT
post.responses.default.content.application/json.schema.$ref = #/components/schemas/IdChaines
post.responses.default.description = Renvoie un JSON, composé d `id`, `value`, avec `value` étant la source homogénéisée.
post.description = Homogénéise la source d'une notice (passe tout en majuscules, ...).
post.summary = Homogénéise la forme de la source d'une notice
post.tags.0 = mapping

[use]
plugin = basics
plugin = analytics

[env]
path = date
value = thru(d => (new Date()).toISOString().split("T")[0])

[JSONParse]

[expand]
path = value
cacheName = env("date").prepend("post-v1-homogenize-source-json-")

[expand/combine]
path = value
default = n/a
primer = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/") \
        .concat("homogenize-source-json.tsv").join("")
file = ./homogenize-source-json.ini

[assign]
path = value
value = get("value.value")

[JSONString]
indent = env('indent', true)