diff --git a/affiliation-rnsr/examples.http b/affiliation-rnsr/examples.http new file mode 100644 index 0000000..d65a70c --- /dev/null +++ b/affiliation-rnsr/examples.http @@ -0,0 +1,45 @@ +# 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=http://affiliation-rnsr.tdmservices.intra.inist.fr/ +@baseUrl=http://affiliation-rnsr.services.istex.fr/ + +### +# @name v2AffiliationRnsr +# WS Affiliation - RNSR - v2 +POST {{baseUrl}}/v2/affiliation/rnsr?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { + "id": 1, + "value": "UAR 76, Inist-CNRS, 2 rue Jean Zay 54500 Vandoeuvre-lès-Nancy" + }, + { + "id": 2, + "value": "Institut Charles Gerhardt, Université de Montpellier" + }, + { + "id":3, + "value": "UMR 7272 - CNRS, 06100 Nice" + } +] + +### +# @name v3AffiliationRnsr +# WS Affiliation - RNSR - v3 +POST {{baseUrl}}/v3/affiliation/rnsr?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { + "id": 1, + "value": "UAR 76, Inist-CNRS, 2 rue Jean Zay 54500 Vandoeuvre-lès-Nancy" + }, + { + "id": 2, + "value": "Institut Charles Gerhardt, Université de Montpellier ; UMR 7272 - CNRS, 06100 Nice" + } +] + +### \ No newline at end of file diff --git a/affiliation-rnsr/tests.hurl b/affiliation-rnsr/tests.hurl new file mode 100644 index 0000000..8c18339 --- /dev/null +++ b/affiliation-rnsr/tests.hurl @@ -0,0 +1,58 @@ +POST https://affiliation-rnsr.services.istex.fr/v2/affiliation/rnsr?indent=true +content-type: application/json +[ + { + "id": 1, + "value": "UAR 76, Inist-CNRS, 2 rue Jean Zay 54500 Vandoeuvre-lès-Nancy" + }, + { + "id": 2, + "value": "Institut Charles Gerhardt, Université de Montpellier" + }, + { + "id":3, + "value": "UMR 7272 - CNRS, 06100 Nice" + } +] + +HTTP 200 +[{ + "id": 1, + "value": "198822446E" +}, +{ + "id": 2, + "value": "200711918D" +}, +{ + "id": 3, + "value": "201220250N" +}] + +POST https://affiliation-rnsr.services.istex.fr/v3/affiliation/rnsr?indent=true +content-type: application/json +[ + { + "id": 1, + "value": "UAR 76, Inist-CNRS, 2 rue Jean Zay 54500 Vandoeuvre-lès-Nancy" + }, + { + "id": 2, + "value": "Institut Charles Gerhardt, Université de Montpellier ; UMR 7272 - CNRS, 06100 Nice" + } +] + +HTTP 200 +[{ + "id": 1, + "value": [ + "198822446E" + ] +}, +{ + "id": 2, + "value": [ + "200711918D", + "201220250N" + ] +}]