Newer
Older
web-services / affiliations-rnsr / v1 / json.ini
# OpenAPI Documentation - JSON format (dot notation)
post.responses.default.description = Return a JSON, composed of `id`, `value`, where value is found `RNSR`(s)
post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.summary = Find RNSR to address given in `value`, when possible
post.requestBody.required = true
post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream

[use]
plugin = basics
plugin = conditor

[JSONParse]
[replace]
path = id
value = get("id")

path = authors
value = get("value").toArray("Chaîne").reduce((s,c) => [{affiliations:[{address:s[0].affiliations[0].address+c}]}], [{affiliations:[{address:""}]}])

[affAlign]

[replace]
path = id
value = get("id")

path = value
value = get("authors.0.affiliations.0.conditorRnsr")

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