diff --git a/base-line/tests.hurl b/base-line/tests.hurl new file mode 100644 index 0000000..23c0a07 --- /dev/null +++ b/base-line/tests.hurl @@ -0,0 +1,78 @@ +POST https://base-line.services.istex.fr/v1/echo/json?indent=true +content-type: application/json +[ + { "id":"12345","value": "A" }, + { "id":"6789","value": "B" } +] + +HTTP 200 +[{ + "id": "12345", + "value": "A" +}, +{ + "id": "6789", + "value": "B" +}] + +POST https://base-line.services.istex.fr/v1/echo/csv +content-type: text/csv +``` +id,value +12345,A +6789,B +``` + +HTTP 200 +``` +id;value +12345;A +6789;B +``` + + + +POST https://base-line.services.istex.fr/v1/echo/raw +content-type: text/plain +``` +OK +``` + +HTTP 200 +``` +OK +``` + + + +POST https://base-line.services.istex.fr/v1/true/json?indent=true +content-type: application/json +[ + { "id":"12345","value": "A" }, + { "id":"6789","value": "B" } +] + +HTTP 200 +[{ + "id": "12345", + "value": true +}, +{ + "id": "6789", + "value": true +}] + +POST https://base-line.services.istex.fr/v1/true/csv +content-type: text/csv +``` +id,value +12345,A +6789,B +``` + +HTTP 200 +``` +id;value +12345;true +6789;true +```