Newer
Older
web-services / mapping-tools / v1 / rnsr-year / instituts-cnrs.ini
# OpenAPI Documentation - JSON format (dot notation)
mimeType = application/json

post.operationId = post-v1-rnsr-year-instituts-cnrs
post.description = Retrouve le ou les institut(s) du CNRS dans lequel se trouve la structure de recherche française dont l'identifiant RNSR et l'année sont fournis.
post.responses.default.description = Renvoie un JSON, composé de `id`, `value`, avec `value` étant un ou plusieurs institut(s) du CNRS
post.responses.default.content.application/json.schema.$ref = #/components/schemas/IdInstitutes
post.tags.0: mapping
post.summary: Trouve le ou les institut(s) du CNRS dans lequel se trouve une structure de recherche
post.requestBody.required = true
post.requestBody.content.application/json.schema.$ref = #/components/schemas/IdRNSRs1
post.requestBody.content.application/json.example.0.id = 1
post.requestBody.content.application/json.example.0.value = 200919362L|2020
post.requestBody.content.application/json.example.1.id = 2
post.requestBody.content.application/json.example.1.value = 200112440X|2022
post.responses.default.content.application/json.example.0.id = 1
post.responses.default.content.application/json.example.0.value = INEE (P)
post.responses.default.content.application/json.example.1.id = 2
post.responses.default.content.application/json.example.1.value = INS2I (P);INSIS (S)

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

[expand/combine]
path = value
default = n/a
primer = env("TABLE_SERVER_URL", "https://inist-wsdata.dboard.inist.fr/") \
        .concat("rnsr-year-instituts-cnrs.tsv").join("")
file = ./rnsr-year-instituts-cnrs.ini

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

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