Newer
Older
web-services / mapping-tools / v1 / rnsr / instituts-cnrs / 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-rnsr-instituts-cnrs-json
post.description = Retrouve un institut du CNRS dans lequel se trouve la structure de recherche française dont l'identifiant RNSR est fourni.
post.responses.default.description = Renvoie un JSON, composé de `id`, `value`, avec `value` étant un Institut du CNRS
post.responses.default.content.application/json.schema.$ref = #/components/schemas/IdInstitutes
post.tags.0: mapping
post.summary: Trouve l'Institut du CNRS dans lequel se trouve une structure de recherche
post.requestBody.required = true
post.requestBody.content.application/json.schema.$ref = #/components/schemas/IdRNSRs1

[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-rnsr-instituts-cnrs-json-")

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

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

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