-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute.rest
69 lines (48 loc) · 1.19 KB
/
route.rest
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
GET http://localhost:3000/minimalist
###
GET http://localhost:3000/minimalist/665632e216303698d41680c6
###
POST http://localhost:3000/minimalist
Content-Type: application/json
{
"name" : "eric",
"email": "[email protected]",
"gender": "male",
"age": "from25to30",
"pregnancy": "pregnant",
"skinType": "normal",
"skinSensitivity": "sensitive",
"imageUri": "http://localhost:3000/images/me-1.jpg",
"haut": [{"redness": "123"}, {"uniformness": "123"}, {"pigmentation": "123"}, {"wrinkles": "123"}, {"perceivedAge": "123"}, {"eyeAge": "123"}]
}
####
DELETE http://localhost:3000/minimalist/665632e216303698d41680c6
###
GET http://localhost:3000/haut
###
GET http://localhost:3000/recommendation
###
POST http://localhost:3000/recommendation
Content-Type: application/json
{
"gender": "Male",
"pregnancy": "No",
"skin_type": "Dry",
"skin_sensitivity": "Yes",
"primary_concern": [
{
"uniformness": "43"
}
],
"secondary_concern": [
{
"skinTone": "-6"
}
]
}
###
POST http://localhost:3000/recommendation
Content-Type: application/json
{
"id": "6678dbeed821dc8195064af1"
}