-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.http
73 lines (56 loc) · 1.2 KB
/
post.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
post http://localhost:5050/users/register HTTP/1.1
content-type: application/json
{
"name":"martin"
}
###
post http://localhost:5050/u/login HTTP/1.1
content-type: application/json
{
"email":"wwwdewreeewww3wwweeeree3wee@gmail.com",
"password":"1234567"
}
###
post http://localhost:5050/u/Products HTTP/1.1s
content-type: application/json
{
"name":"Food",
"nutritions":{
"Oats":{
"protein":8.5,
"carbs":70,
"fats":6,
"cc":37.5
},
"Meal":{
"protein":24,
"carbs":33,
"fats":3,
"cc":10.5
},
"Rise":{
"protein":8,
"carbs":75,
"fats":1,
"cc":35.3
},
"Crannberyes":{
"protein":1,
"carbs":1,
"fats":1,
"cc":1
},
"Iceberg":{
"protein":3,
"carbs":5,
"fats":6,
"cc":1
}
}
}
###
get http://localhost:5050/u/gProduct HTTP/1.1s
Content-Type: 'application/json'
###
get http://localhost:5050 HTTP/1.1s
Content-Type: 'application/json'