diff --git a/base-line/examples.http b/base-line/examples.http index c3ada2d..b60da00 100644 --- a/base-line/examples.http +++ b/base-line/examples.http @@ -1,65 +1,53 @@ # These examples can be used directly in VSCode, using REST Client extension (humao.rest-client) +### +# @name v1EchoJson # Parse un flux JSON, et le returne sans modification -POST https://base-line.services.inist.fr/v1/echo/json?indent=true HTTP/1.1 +POST https://base-line.services.istex.fr/v1/echo/json?indent=true HTTP/1.1 Content-Type: application/json [ { "id":"12345","value": "A" }, { "id":"6789","value": "B" } ] + ### - - - - +# @name v1EchoCsv # Parse un flux CSV, et le retourne sans modification -POST https://base-line.services.inist.fr/v1/echo/csv HTTP/1.1 +POST https://base-line.services.istex.fr/v1/echo/csv HTTP/1.1 Content-Type: text/csv id,value 12345,A 6789,B + ### - - - - - +# @name v1EchoRaw # Reçoit un flux, et le retourne sans modification et sans analsye -POST https://base-line.services.inist.fr/v1/echo/raw HTTP/1.1 +POST https://base-line.services.istex.fr/v1/echo/raw HTTP/1.1 Content-Type: text/plain OK + ### - - - - +# @name v1TrueJson # Parse un flux JSON, et donne la valeur true au champ value -POST https://base-line.services.inist.fr/v1/true/json?indent=true HTTP/1.1 +POST https://base-line.services.istex.fr/v1/true/json?indent=true HTTP/1.1 Content-Type: application/json [ { "id":"12345","value": "A" }, { "id":"6789","value": "B" } ] + ### - - - - +# @name v1TrueCsv # Parse un flux CSV, et donne la valeur true au champ value -POST https://base-line.services.inist.fr/v1/true/csv HTTP/1.1 +POST https://base-line.services.istex.fr/v1/true/csv HTTP/1.1 Content-Type: text/csv id,value 12345,A 6789,B + ### - - - - - -