Newer
Older
web-services / mapping-tools / v1 / inspire-labos / in2p3-labos / json.ini
@Nicolas Thouvenin Nicolas Thouvenin on 24 May 2022 1 KB use expand to enbale the cache system
# OpenAPI Documentation - JSON format (dot notation)
mimeType = application/json

post.operationId = post-v1-inspire-labos-in2p3-labos-json
post.requestBody.content.application/json.example.0.id = 0
post.requestBody.content.application/json.example.0.value = 903453
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 = GANIL
post.responses.default.content.application/json.schema.$ref = #/components/schemas/IdChaines
post.description = Renvoie le nom du laboratoire IN2P3 correspondant au code labo Inspire_Hep envoyé.
post.responses.default.description = Renvoie un JSON, composé d `id`, `value`, avec `value` étant le nom du laboratoire IN2P3.
post.tags.0: mapping
post.summary: Trouve un labo IN2P3 associé à un code labo Inspire_Hep
post.parameters.0.description = Indenter le JSON résultant
post.parameters.0.in = query
post.parameters.0.name = indent
post.parameters.0.required = false
post.parameters.0.schema.type = boolean

[use]
plugin = basics
plugin = analytics

[JSONParse]

# Homogenize ID: url, string and number to an url
[expand]
path = value
cacheName = post-v1-inspire-labos-in2p3-labos-json

[expand/combine]
path = value
default = n/a
primer = ./regroupement-inspire-labos.tsv
file = ./regroupement-inspire-labos.ini

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

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