diff --git a/affiliations-tools/examples.http b/affiliations-tools/examples.http index 58d2cfe..45f4e94 100644 --- a/affiliations-tools/examples.http +++ b/affiliations-tools/examples.http @@ -1,7 +1,11 @@ -# Ces exemples peuvent être exécutés direcement dans VSCode, en utilisant l'extension REST Client (humao.rest-client) +# Ces exemples peuvent être exécutés directement dans VSCode, en utilisant l'extension REST Client (humao.rest-client) + +# Décommenter/commenter les lignes voulues pour tester localement +# @baseUrl=http://localhost:31976 +@baseUrl=https://affiliations-tools.services.inist.fr ## Résolution de nom de ville par Netscity -POST https://affiliations-tools.services.inist.fr/v1/netscity/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/netscity/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -15,7 +19,7 @@ ### # Structurer une affiliation au format texte -POST https://affiliations-tools.services.inist.fr/v1/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -32,7 +36,7 @@ ### # Trouver le(s) identifiant(s) RNSR pour chaque adresse (format LODEX) -POST https://affiliations-tools.services.inist.fr/v1/rnsr/json?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/rnsr/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -46,8 +50,22 @@ ] ### +# Trouver les informations du RNSR pour chaque adresse (format LODEX) +POST {{baseUrl}}/v1/rnsr/info?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { "id":1, "value": { "year": "2021", "address": "CNRS UMR AMAP MONTPELLIER FRA" } }, + { "id":3, "value": { "year": "2021", "address": "University of Bordeaux, IMS, CNRS UMR5218, Talence, F-33405, France" } }, + { "id":4, "value": { "year": "2021", "address": "CENBG, CNRS/IN2P3, Chemin du Solarium B. P. 120, Gradignan, F-33175, France" } }, + { "id":5, "value": { "year": "2021", "address": "Nulle part" } }, + { "id":6, "value": { "address": "Intemporel" } }, + { "id":7, "value": { "address": "Inist-CNRS, UPS76, 2 rue Jean Zay, Vandoeuvre-lès-Nancy" } } +] +### + # Trouver le(s) identifiant(s) RNSR pour chaque année de publication / adresse (format CSV) -POST https://affiliations-tools.services.inist.fr/v1/rnsr/csv HTTP/1.1 +POST {{baseUrl}}/v1/rnsr/csv HTTP/1.1 Content-Type: text/csv Année,Adresse @@ -58,7 +76,7 @@ ### # Trouver le(s) identifiant(s) RNSR pour chaque affiliation de chaque notice Conditor. -POST https://affiliations-tools.services.inist.fr/v1/rnsr/conditor HTTP/1.1 +POST {{baseUrl}}/v1/rnsr/conditor HTTP/1.1 Content-Type: application/json [{ @@ -71,7 +89,7 @@ }] ### -POST https://affiliations-tools.services.inist.fr/v1/addresses/parse?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/addresses/parse?indent=true HTTP/1.1 Content-Type: application/json [