diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index 5d86ef8..ec8a313 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -1,5 +1,9 @@ +# To test locally, replace with +# @baseUrl = http://localhost:31976 +@baseUrl = https://biblio-tools.services.inist.fr + # unpaywall/is_oa -POST https://biblio-tools.services.inist.fr/v1/unpaywall/is_oa?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/unpaywall/is_oa?indent=true HTTP/1.1 Content-Type: application/json [ @@ -14,7 +18,7 @@ # unpaywall/expand -POST https://biblio-tools.services.inist.fr/v1/unpaywall/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/unpaywall/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -28,7 +32,7 @@ ### # unpaywall/corhal -POST https://biblio-tools.services.inist.fr/v1/unpaywall/corhal?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/unpaywall/corhal?indent=true HTTP/1.1 Content-Type: application/json [ @@ -43,9 +47,7 @@ ### # unpaywall/works/expand -# POST http://localhost:31976/v1/unpaywall/works/expand?indent=true HTTP/1.1 - -POST https://biblio-tools.services.inist.fr/v1/unpaywall/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/unpaywall/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -60,7 +62,7 @@ ### # crossref/prefixes/1 -POST https://biblio-tools.services.inist.fr/v1/crossref/prefixes/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/crossref/prefixes/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -76,7 +78,7 @@ # crossref/works/2 -POST https://biblio-tools.services.inist.fr/v1/crossref/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/crossref/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -91,7 +93,7 @@ ### # inspirehep/works/expand -POST https://biblio-tools.services.inist.fr/v1/inspirehep/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/inspirehep/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -107,7 +109,7 @@ ### # openalex/works/expand -POST https://biblio-tools.services.inist.fr/v1/openalex/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/openalex/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -123,7 +125,7 @@ ### # istex/works/expand -POST https://biblio-tools.services.inist.fr/v1/istex/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/istex/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ @@ -135,7 +137,7 @@ ### # wos/fecth -POST http://localhost:31976/v1/wos/fetch?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/wos/fetch?indent=true HTTP/1.1 Content-Type: application/json [ @@ -165,7 +167,7 @@ ### # wos/works/expand -POST http://localhost:31976/v1/wos/works/expand?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/wos/works/expand?indent=true HTTP/1.1 Content-Type: application/json [ diff --git a/mapping-tools/examples.http b/mapping-tools/examples.http index 8be92b6..77cd228 100644 --- a/mapping-tools/examples.http +++ b/mapping-tools/examples.http @@ -1,8 +1,13 @@ # Ces exemples peuvent être exécutés directement dans VSCode, en utilisant # l'extension REST Client (humao.rest-client) +# To test locally, replace with +# @baseUrl = http://localhost:31976 +@baseUrl = https://mapping-tools.services.inist.fr + +# @name v1RnsrInstitutsCnrs # 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 +POST {{baseUrl}}/v1/rnsr/instituts-cnrs/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -12,8 +17,7 @@ ### # 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 +POST {{baseUrl}}/v1/halAuthorId/idRef/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -30,8 +34,7 @@ ### # 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 +POST {{baseUrl}}/v1/idRef/orcid/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -48,7 +51,7 @@ ### # 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 +POST {{baseUrl}}/v1/homogenize/source/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -61,7 +64,7 @@ ### # Homogénéiser la forme des éditeurs -POST https://mapping-tools.services.inist.fr/v1/homogenize/publisher/json?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/homogenize/publisher/json?indent=true HTTP/1.1 Content-Type: application/json [ @@ -75,7 +78,7 @@ ### # Homogénéiser les types de documents -POST https://mapping-tools.services.inist.fr/v1/homogenize/documentType/json?indent=true HTTP/1.1 +POST {{baseUrl}}/v1/homogenize/documentType/json?indent=true HTTP/1.1 Content-Type: application/json [