diff --git a/address-kit/examples.http b/address-kit/examples.http index 2a10e69..352d3d5 100644 --- a/address-kit/examples.http +++ b/address-kit/examples.http @@ -1,7 +1,15 @@ -# These examples can be used directly in VSCode, using REST Client extension (humao.rest-client) +# These examples can be used directly in VSCode, using REST Client extension +# (humao.rest-client) or httpYac (anweber.vscode-httpyac) -# Informations sur une adresse cnrs -POST https://address-kit.services.inist.fr/v1/cnrsunit/cnrsunit?indent=true HTTP/1.1 +# To test locally, replace with +#@host = http://localhost:31976 +@host = https://address-kit.services.inist.fr +#@host = http://address-kit.tdmservices.intra.inist.fr + +### +# @name v1Cnrsunit +# @description Informations sur une adresse cnrs +POST {{host}}/v1/cnrsunit/cnrsunit?indent=true HTTP/1.1 Content-Type: application/json [ @@ -11,9 +19,10 @@ {"id":4,"value":"umr_d161 institut de recherche pour le développement ird um34 aix marseille université amu umr7330 collège de france cdf institution institut national des sciences de l'univers insu cnrs umr7330 centre national de la recherche scientifique cnrs umr1410 institut national de recherche pour l'agriculture l'alimentation et l'environnement inrae centre européen de recherche et d'enseignement des géosciences de l'environnement cerege europôle méditerranéen de l'arbois"} ] - -# détection d'un pays -POST https://address-kit.services.inist.fr/v1/affiliationcountry/detect_country?indent=true HTTP/1.1 +### +# @name v1Affiliationcountry +# @description détection d'un pays +POST {{host}}/v1/affiliationcountry/affilcountry?indent=true HTTP/1.1 Content-Type: application/json [ @@ -26,3 +35,5 @@ {"id":7,"value":"campus romanus de maron"} , {"id":8,"value":"Inist-CNRS, vandoeuvre les Nancy, France"} ] + +### \ No newline at end of file