Newer
Older
web-services / mapping-tools / examples.http
# Ces exemples peuvent être exécutés directement dans VSCode, en utilisant
# l'extension REST Client (humao.rest-client)

# Trouver l'Institut du CNRS associé à une structure de recherche
POST https://mapping-tools.services.inist.fr/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 https://mapping-tools.services.inist.fr/v1/halAuthorId/idRef/json?indent=true HTTP/1.1
#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" },
    { "id":4, "value": "1458607" },
    { "id":5, "value": "1358616" },
    { "id":6, "value": "11165563" },
    { "id":7, "value": 1458607 },
    { "id":8, "value": 1358616 },
    { "id":9, "value": 11165563 }
]
###

# Trouver l'ORCID associé à l'IdRef (format LODEX)
POST https://mapping-tools.services.inist.fr/v1/idRef/orcid/json?indent=true HTTP/1.1
# 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" },
    { "id":4, "value": "190260483" },
    { "id":5, "value": "165835257" },
    { "id":6, "value": "182222918" },
    { "id":7, "value": 190260483 },
    { "id":8, "value": 165835257 },
    { "id":9, "value": 182222918 }
]
###

# Homogénéiser la forme d'une source de notice
POST https://mapping-tools.services.inist.fr/v1/homogenize/source/json?indent=true HTTP/1.1
Content-Type: application/json

[
    { "id":1, "value": "101 secrets de l'ADN" },
    { "id":2, "value": "101 secrets de l’ADN." },
    { "id":3, "value": "101 secrets de l’ADN. CNRS Éditions, Paris, pp 114-116" },
    { "id":4, "value": "« Gilets jaunes » Hypothèses sur un mouvement" },
    { "id":5, "value": "Bon sang!" }
]
###

# Homogénéiser la forme des éditeurs
POST https://mapping-tools.services.inist.fr/v1/homogenize/publisher/json?indent=true HTTP/1.1
Content-Type: application/json

[
    { "id":1, "value": "Springer" },
    { "id":2, "value": "Springer Verlag" },
    { "id":3, "value": "John Wiley and Sons" },
    { "id":4, "value": "Wiley-Blackwell: No OnlineOpen" },
    { "id":5, "value": "Elsevier Science inc" },
    { "id":6, "value": "A&M Editions 17" }
]
###

# Homogénéiser les types de documents
POST https://mapping-tools.services.inist.fr/v1/homogenize/documentType/json?indent=true HTTP/1.1
Content-Type: application/json

[
    { "id":1, "value": "ART" },
    { "id":2, "value": "Biography" },
    { "id":3, "value": "Congress" },
    { "id":4, "value": "News" },
    { "id":5, "value": "Technical Report" }
]
###