-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateUsers.sh
More file actions
executable file
·70 lines (64 loc) · 1.56 KB
/
createUsers.sh
File metadata and controls
executable file
·70 lines (64 loc) · 1.56 KB
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
#!/usr/bin/env bash
echo 'Creating Sponsor User'
curl -X POST \
http://localhost:8080/v1/user \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"userId": "usr001",
"address": "0x895aE9efB156e388Bd324e466576285906d20827",
"userType": 0,
"deviceId": "",
"deviceType": 0
}'
echo ''
echo 'Creating Housing Complex User 1'
curl -X POST \
http://localhost:8080/v1/user \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"userId": "usr002",
"address": "0x9aeC04AEa530111F337f3D121488f22383098627",
"userType": 1,
"deviceId": "dev001",
"deviceType": 0
}'
echo ''
echo 'Creating Housing Complex User 2'
curl -X POST \
http://localhost:8080/v1/user \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"userId": "usr003",
"address": "0x263a5223a294C64b5E48Cab164e95131938C87ea",
"userType": 1,
"deviceId": "dev002",
"deviceType": 0
}'
echo ''
echo 'Creating Housing Complex User 3'
curl -X POST \
http://localhost:8080/v1/user \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"userId": "usr004",
"address": "0x628B31Bc31d04f425fb93209AFA332e893735184",
"userType": 1,
"deviceId": "dev003",
"deviceType": 0
}'
echo ''
#curl -X POST \
# http://localhost:8080/v1/auction/bid \
# -H 'Accept: application/json' \
# -H 'Content-Type: application/json' \
# -d '{
# "auctionId": "auction001",
# "bidId" : "bid001",
# "userId" : "0x9aeC04AEa530111F337f3D121488f22383098627",
# "bidAmount":160,
# "litreSaving" : 80
#}'