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

post.operationId = post-v1-rnsr-2022-json
post.description = Retrouve les informations concernant un établissement à partir de son identifiant RNSR.
post.responses.default.description = Renvoie un JSON, composé d'`id`, `value`, avec `value` étant les informations de l'établissement
post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.tags.0 = mapping
post.requestBody.content.application/json.example.0.id = 1
post.requestBody.content.application/json.example.0.value = 200711922H
post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.requestBody.required = true
post.summary = Trouve un ébalissement à partir de son identifiant
post.responses.default.content.application/json.example.0.id = 1
post.responses.default.content.application/json.example.0.value = { ... }
post.responses.default.content.application/json.schema.$ref =  #/components/schemas/JSONStream
post.responses.default.description = Les inforamtions de la structure correspondant au RNSR
post.parameters.0.description = Indenter le JSON résultant
post.parameters.0.in = query
post.parameters.0.name = indent
post.parameters.0.schema.type = boolean


[use]
plugin = basics

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

[JSONParse]

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

[expand/combine]
path = value
default = n/a
primer = ./RNSR-2021.jsonl

[expand/combine/FILELoad]
[expand/combine/unpack]

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

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