Newer
Older
web-services / loterre-resolvers / v1 / D63 / expand.ini
@Nicolas Thouvenin Nicolas Thouvenin on 7 Feb 2023 1 KB refactor: use commun process script
# OpenAPI Documentation - JSON format (dot notation)
post.operationId = post-v1-D63-expand
post.responses.default.description = Return all objects with enrich fields
post.responses.default.content.application/json.schema.$ref =  #/components/schemas/JSONStream
post.summary = Enrich on field of each Object with a SKOS concept
post.requestBody.required = true
post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.parameters.0.in = query
post.parameters.0.name = path
post.parameters.0.schema.type = string
post.parameters.0.description = The path in each object to enrcih with a SKOS Cocnept
post.parameters.1.in = query
post.parameters.1.name = indent
post.parameters.1.schema.type = boolean
post.parameters.1.description = Indent or not the JSON Result

[env]
path = primer
value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-communes.xml").join("")

path = weekNumber
value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7))

path = loterreID
value = fix('D63')

[delegate]
file = ./v1/process.ini

[dump]
indent = env('indent', false)