-
Notifications
You must be signed in to change notification settings - Fork 1
/
local.http
34 lines (28 loc) · 804 Bytes
/
local.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
@app-a-url=http://localhost:5045
@app-b-url=http://localhost:5047
### POST SocialProfileDetails
# @name serviceInvocationResponse
POST {{app-a-url}}/serviceinvocation
Content-Type: application/json
{
"id": "{{$guid}}",
"name": "Dapr",
"twitterHandle": "daprdev",
"githubHandle": "Dapr"
}
### GET SocialProfileDetails
@siProfileId={{serviceInvocationResponse.response.body.$}}
GET {{app-b-url}}/profile/{{siProfileId}}
### POST SocialProfileDetails via pubsub
# @name pubsubResponse
POST {{app-a-url}}/pubsub
Content-Type: application/json
{
"id" : "{{$guid}}",
"name": "Diagrid",
"twitterHandle": "diagridio",
"githubHandle": "diagridio"
}
### GET SocialProfileDetails
@pubsubProfileId={{pubsubResponse.response.body.$}}
GET {{app-b-url}}/profile/{{pubsubProfileId}}