-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexamples.http
60 lines (51 loc) · 1.51 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
# These examples can be used directly in VSCode, using HTTPYac extension (anweber.vscode-httpyac)
# They are important, because used to generate the tests.hurl file.
# Décommenter/commenter les lignes voulues pour tester localement
@host=http://localhost:31976
# @host=https://authors-tools.services.istex.fr
###
# @name v1OrcidDisambiguation
# Désambiguisation d'auteur orcid
POST {{host}}/v1/orcid-disambiguation/orcidDisambiguation?indent=true HTTP/1.1
Content-Type: application/json
[
{
"id":"1",
"value":[{"firstName" : "Rubén", "lastName" : "Vázquez-Cárdenas", "coAuthors" : ["Juan pablo Martínez-Pastor"]}]
}
]
###
# @name v1FirstNameGender
# Détection du genre d'un prénom
POST {{host}}/v1/first-name/gender?indent=true HTTP/1.1
Content-Type: application/json
[
{"id": "1", "value": "Valentyne, Dupont"},
{"id": "2", "value": "Amke"},
{"id": "3", "value": "Seong-Eun"},
{"id": "4", "value": "James A."}
]
###
# @name v1CorporatePrivatePublic
# Détection d'affiliation privé
POST {{host}}/v1/corporate/private-public?indent=true HTTP/1.1
Content-Type: application/json
[
{
"id": "1",
"value": "Abeeway, F-06903 Sophia Antipolis, France"
},
{
"id": "2",
"value": "AiryLab SARL, 34 Rue Jean Baptiste Malon, F-04800 Greoux Les Bains, France"
},
{
"id": "3",
"value": "4G TECHNOL, F-06370 Mouans Sartoux, France"
},
{
"id": "4",
"value": "Univ Cote dAzur, INRIA, Ansys, Nice, France"
}
]
###