-
Notifications
You must be signed in to change notification settings - Fork 2
/
postman.json
135 lines (135 loc) · 3.56 KB
/
postman.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"variables": [],
"info": {
"name": "HYPERLEDGER LAB",
"_postman_id": "86534f68-ee0c-43e5-6997-3858de7bc2f4",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "CHAIN V0.6",
"request": {
"url": "http://localhost:7050/chain",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "DEPLOY V0.6",
"request": {
"url": "http://localhost:7050/chaincode",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"deploy\",\n \"params\": {\n \"type\": 4,\n \"chaincodeID\": {\n \"path\": \"/chaincode/JavaCDD\"\n },\n \"ctorMsg\": {\n \"args\": [\"init\",\"farmer\",\"10\", \"42\"]\n }\n },\n \"id\": 1\n }"
},
"description": ""
},
"response": []
},
{
"name": "QUERY V0.6",
"request": {
"url": "http://localhost:7050/chaincode",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"query\",\n \"params\": {\n \"type\": 1,\n \"chaincodeID\": {\n \"name\": \"c26e67892e532a7c25ef4431719e66652fd9eb33f824634c875c8cdd80453199\"\n },\n \"ctorMsg\": {\n \"args\":[\"query\",\"farmer\"]\n }\n },\n \"id\": 2\n }"
},
"description": ""
},
"response": []
},
{
"name": "INVOKE V0.6",
"request": {
"url": "http://localhost:7050/chaincode",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"invoke\",\n \"params\": {\n \"type\": 1,\n \"chaincodeID\": {\n \"name\": \"45df952046c231a1e2618ade6e3f55f13a3b5bbda39acf7354ce0059dffece439aeca48397b4957cbb5c8698cbc62d0a2f43e45d4d98452d4f0ebf1d797c2586\"\n },\n \"ctorMsg\": {\n \"args\":[\"executeContract\",\"farmer\",\"64.8378\", \"-147.7164\"]\n }\n },\n \"id\": 2\n }"
},
"description": ""
},
"response": []
},
{
"name": "QUERY CLIENT API 0.6",
"request": {
"url": "http://localhost:8080/query?clientName=farmer",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "INVOKE CLIENT V0.6",
"request": {
"url": {
"raw": "http://localhost:8080/executeContract?clientName=farmer&lon=64.8378&lat=-147.7164",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"executeContract"
],
"query": [
{
"key": "clientName",
"value": "farmer",
"equals": true,
"description": ""
},
{
"key": "lon",
"value": "64.8378",
"equals": true,
"description": ""
},
{
"key": "lat",
"value": "-147.7164",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
}
]
}