diff --git a/loterre-resolvers/examples.http b/loterre-resolvers/examples.http index b878066..3309c7d 100644 --- a/loterre-resolvers/examples.http +++ b/loterre-resolvers/examples.http @@ -1,5 +1,7 @@ -# 9SD/expand -POST https://loterre-resolvers.services.inist.fr/v1/9SD/expand?indent=true HTTP/1.1 +@baseUrl = https://loterre-resolvers.services.inist.fr + +# @name 9SD_expand +POST {{baseUrl}}/v1/9SD/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -10,8 +12,8 @@ ] ### -# 9SD/identify -POST https://loterre-resolvers.services.inist.fr/v1/9SD/identify?indent=true HTTP/1.1 +# @name 9SD_identify +POST {{baseUrl}}/v1/9SD/identify?indent=true HTTP/1.1 Content-Type: application/json [ @@ -23,8 +25,8 @@ ### -# D63/expand -POST https://loterre-resolvers.services.inist.fr/v1/D63/expand?indent=true HTTP/1.1 +# @name D63_expand +POST {{baseUrl}}/v1/D63/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -35,8 +37,8 @@ ] ### -# D63/identify -POST https://loterre-resolvers.services.inist.fr/v1/D63/identify?indent=true HTTP/1.1 +# @name D63_identify +POST {{baseUrl}}/v1/D63/identify?indent=true HTTP/1.1 Content-Type: application/json [ @@ -47,8 +49,19 @@ ] ### -# P66/identify -POST https://loterre-resolvers.services.inist.fr/v1/P66/identify?indent=true HTTP/1.1 +# @name P66_identify +POST {{baseUrl}}/v1/P66/identify?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { "value": "Amygdala" }, + { "value": "Frontal lobe" }, + { "value": "metamemory" } +] +### + +# @name P66_expand +POST {{baseUrl}}/v1/P66/expand?indent=true HTTP/1.1 Content-Type: application/json [ diff --git a/loterre-resolvers/v1/P66/identify.ini b/loterre-resolvers/v1/P66/identify.ini index 5256e3e..25a2c2a 100644 --- a/loterre-resolvers/v1/P66/identify.ini +++ b/loterre-resolvers/v1/P66/identify.ini @@ -5,20 +5,27 @@ post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/P66/fr/ post.summary = verbalisation à partir d'un tableau d'objets avec à minima un champ value contenant des termes post.tags.0 = loterre-resolvers -post.requestBody.content.application/json.example.0.id = 1 post.requestBody.content.application/json.example.0.value = Amygdala -post.requestBody.content.application/json.example.1.id = 2 post.requestBody.content.application/json.example.1.value = Frontal lobe -post.requestBody.content.application/json.example.2.id = 3 post.requestBody.content.application/json.example.2.value = metamemory -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.requestBody.required = true -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.example.1.id = 2 -post.responses.default.content.application/json.example.1.value = {...} -post.responses.default.content.application/json.example.2.id = 3 -post.responses.default.content.application/json.example.2.value = {...} +post.responses.default.content.application/json.example.0.value.id = amygdala +post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/P66-W52CFWZ4-9 +post.responses.default.content.application/json.example.0.value.prefLabel@fr = amygdale +post.responses.default.content.application/json.example.0.value.prefLabel@en = amygdala +post.responses.default.content.application/json.example.0.value.localization@en.0 = medial temporal lobe +post.responses.default.content.application/json.example.0.value.localization@fr.0 = lobe temporal médian +post.responses.default.content.application/json.example.1.value.id = frontallobe +post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/P66-KHRWNS4W-Q +post.responses.default.content.application/json.example.1.value.prefLabel@fr = lobe frontal +post.responses.default.content.application/json.example.1.value.prefLabel@en = frontal lobe +post.responses.default.content.application/json.example.1.value.localization@en.0 = brain lobe +post.responses.default.content.application/json.example.1.value.localization@fr.0 = lobe cérébral +post.responses.default.content.application/json.example.2.value.id = metamemory +post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/P66-RGFWPLNW-K +post.responses.default.content.application/json.example.2.value.prefLabel@fr = métamémoire +post.responses.default.content.application/json.example.2.value.prefLabel@en = metamemory +post.responses.default.content.application/json.example.2.value.localization@en.0 = memory +post.responses.default.content.application/json.example.2.value.localization@fr.0 = mémoire post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream post.responses.default.description = Les concept SKOS en JSON post.parameters.0.description = Indenter le JSON résultant