Newer
Older
web-services / mapping-tools / v1 / homogenize / publisher / 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-publisher-json
post.requestBody.content.application/json.example.0.id = 0
post.requestBody.content.application/json.example.0.value = Springer Verlag
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 = SPRINGER
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 l'éditeur homogénéisé.
post.description = Homogénéise la forme d'écriture de l'éditeur d une notice.
post.tags.0 = mapping
post.summary = Homogénéise l'éditeur dans une notice

[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-publisher-json-")

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

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

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