-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexamples.http
74 lines (61 loc) · 1.43 KB
/
examples.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# These examples can be used directly in VSCode, using REST Client extension (humao.rest-client)
# Décommenter/commenter les lignes voulues pour tester localement
@baseUrl=http://localhost:31976
# @baseUrl=https://base-line.services.istex.fr
###
# @name v1NoAccent
# Supprime les accents dans le champ value
POST {{baseUrl}}/v1/no-accent?indent=true HTTP/1.1
Content-Type: application/json
[
{ "value": "à l'école" },
{ "value": "où" }
]
###
# @name v1NoAccent2
# Supprime les accents dans le champ value
POST {{baseUrl}}/v1/no-accent2?indent=true HTTP/1.1
Content-Type: application/json
[
{ "value": "à l'école" },
{ "value": "où" }
]
###
# @name v1EchoJson
# Supprime les accents dans le champ value
POST {{baseUrl}}/v1/echo/json?indent=true HTTP/1.1
Content-Type: application/json
[
{ "value": "à l'école" },
{ "value": "où" }
]
###
# @name v1EchoCsv
# Interprète le CSV et le renvoie (avec un séparateur ;)
POST {{baseUrl}}/v1/echo/csv HTTP/1.1
Content-Type: text/csv
a,b
1,2
###
# @name v1EchoRaw
# Renvoie le texte envoyé
POST {{baseUrl}}/v1/echo/raw HTTP/1.1
Content-Type: text/plain
Ceci est le texte envoyé.
###
# @name v1TrueCsv
# Renvoie true pour le champ value
POST {{baseUrl}}/v1/true/csv HTTP/1.1
Content-Type: text/csv
a,value
1,2
###
# @name v1TrueJson
# Renvoie true pour le champ value
POST {{baseUrl}}/v1/true/json HTTP/1.1
Content-Type: application/json
[
{ "value": "à l'école" },
{ "value": "où" }
]
###