-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.http
More file actions
108 lines (99 loc) · 3.38 KB
/
request.http
File metadata and controls
108 lines (99 loc) · 3.38 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
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
# group: Header validator test
# @name Hello [GET]
@baseUrl = http://localhost:8080
@callbackUrl = https://jsonplaceholder.org/posts
GET {{baseUrl}}/api/hello
X-FeatureName: FN
X-ServiceCode: SC
X-ServiceName: SN
X-ChannelCode: CC
X-ChannelName: CN
X-ChannelCategory: CC
X-MinorServiceVersion: v1.0
X-FeatureCode: FC # [optional] - default configuration
X-RouteCode: RC # [optional] - default configuration
X-TimeStamp: {{$isoTimestamp}} # [optional] - default configuration
X-ServiceMode: SM # [optional] - default configuration
X-SubscriberEvents: SE # [optional] - default configuration
X-ServiceSubCategory: SSC # [optional] - default configuration
X-CallBackURL: {{callbackUrl}} # [optional] - default configuration
X-Additional-Required: v # uses default validator; should be non-blank
X-Additional-Optional: x # uses default validator; should be non-blank
X-Additional-Custom-Validator: X-Additional-Custom-Validator
X-Custom-Allowed-Values: Z
>>! {{$historyFolder}}/hello.json
###
# group: Header validator test
# @name Hello [POST]
POST {{baseUrl}}/api/hello
X-FeatureName: FN
X-ServiceCode: SC
X-ServiceName: SN
X-ChannelCode: CC
X-ChannelName: CN
X-ChannelCategory: CC
X-MinorServiceVersion: v1.0
X-FeatureCode: FC # [optional] - default configuration
X-RouteCode: RC # [optional] - default configuration
X-TimeStamp: {{$isoTimestamp}} # [optional] - default configuration
X-ServiceMode: SM # [optional] - default configuration
X-SubscriberEvents: SE # [optional] - default configuration
X-ServiceSubCategory: SSC # [optional] - default configuration
X-CallBackURL: {{callbackUrl}} # [optional] - default configuration
X-Additional-Required: v # uses default validator; should be non-blank
X-Additional-Optional: x # uses default validator; should be non-blank
X-Additional-Custom-Validator: X-Additional-Custom-Validator
X-Custom-Allowed-Values: Z
Content-Type: application/json
{
"messageID": "{{$random.alphanumeric(32)}}",
"primaryData": "John Doe",
"additionalData": [
{
"key": "",
"value": ""
}
]
}
>>! {{$historyFolder}}/hello-post.json
###
# group: Header validator test
# @name Hello [POST - Mutlipart]
POST {{baseUrl}}/api/hello/multipart
X-FeatureName: FN
X-ServiceCode: SC
X-ServiceName: SN
X-ChannelCode: CC
X-ChannelName: CN
X-ChannelCategory: CC
X-MinorServiceVersion: v1.0
X-FeatureCode: FC # [optional] - default configuration
X-RouteCode: RC # [optional] - default configuration
X-TimeStamp: {{$isoTimestamp}} # [optional] - default configuration
X-ServiceMode: SM # [optional] - default configuration
X-SubscriberEvents: SE # [optional] - default configuration
X-ServiceSubCategory: SSC # [optional] - default configuration
X-CallBackURL: {{callbackUrl}} # [optional] - default configuration
X-Additional-Required: v # uses default validator; should be non-blank
X-Additional-Optional: x # uses default validator; should be non-blank
X-Additional-Custom-Validator: X-Additional-Custom-Validator
X-Custom-Allowed-Values: Z
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="payload"
Content-Type: application/json
{
"messageID": "{{$random.alphanumeric(32)}}",
"primaryData": "John Doe",
"additionalData": [
{
"key": "",
"value": ""
}
]
}
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="README.md"
< ./README.md
--WebAppBoundary
>>! {{$historyFolder}}/hello-post-multipart.json