# Ces exemples peuvent être exécutés directement dans VSCode, en utilisant
# l'extension REST Client (humao.rest-client)
# Pour pouvoir les tester, lancez le serveur, à partir du répertoire
# mapping-tools:
# npx ezs -v -d .
# Pour chauffer le cache rapidement, utiliser un seul cœur:
# EZS_CONCURRENCY=1 npx ezs -v -d .
# Trouver l'Institut du CNRS associé à une structure de recherche
POST http://localhost:31976/v1/rnsr/instituts-cnrs/json?indent=true HTTP/1.1
Content-Type: application/json
[
{"id":1, "value": "200919362L"},
{"id":2, "value": "200112440X"}
]
###
# Trouver l'idRef associé au halAuthorId (format LODEX)
POST http://localhost:31976/v1/halAuthorId/idRef/json?indent=true HTTP/1.1
Content-Type: application/json
[
{ "id":1, "value": "https://data.archives-ouvertes.fr/author/1458607" },
{ "id":2, "value": "https://data.archives-ouvertes.fr/author/1358616" },
{ "id":3, "value": "https://data.archives-ouvertes.fr/author/11165563" }
]
###
# Trouver l'ORCID associé à l'IdRef (format LODEX)
POST http://localhost:31976/v1/idRef/orcid/json?indent=true HTTP/1.1
Content-Type: application/json
[
{ "id":1, "value": "http://www.idref.fr/190260483/id" },
{ "id":2, "value": "http://www.idref.fr/165835257/id" },
{ "id":3, "value": "http://www.idref.fr/182222918/id" }
]
###