-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.http
More file actions
45 lines (38 loc) · 1.02 KB
/
test.http
File metadata and controls
45 lines (38 loc) · 1.02 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
### hello world: run node hello.js --utBus.serviceBus.jsonrpc.port=8090
POST http://localhost:8090/rpc/ports/subject/request
Content-Type: application/json
{
"id": 1,
"jsonrpc": "2.0",
"method": "subject.object.predicate",
"params": [{}, {}]
}
### top level functions: run node toplevel.js --utBus.serviceBus.jsonrpc.port=8090
POST http://localhost:8090/rpc/ports/dns/request
Content-Type: application/json
{
"id": 1,
"jsonrpc": "2.0",
"method": "dns.lookup",
"params": ["npmjs.com", {}]
}
### api: run node api.js --utBus.serviceBus.jsonrpc.port=8090
POST http://localhost:8090/rpc/subject/object/predicate
Content-Type: application/json
{
"id": 1,
"jsonrpc": "2.0",
"timeout": 1000,
"method": "subject.object.predicate",
"params": {}
}
### api gateway: run node gateway.js
POST http://localhost:8080/rpc/subject/object/predicate
Content-Type: application/json
{
"id": 1,
"jsonrpc": "2.0",
"timeout": 1000,
"method": "subject.object.predicate",
"params": {}
}