Repository navigation
Expand file tree
/
Copy pathhttp.json
More file actions
104 lines (104 loc) · 2.96 KB
/
Copy pathhttp.json
File metadata and controls
104 lines (104 loc) · 2.96 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
{
"Get request block": {
"prefix": "get",
"body": [
"GET ${1:url} HTTP/1.1"
],
"description": "GET Request"
},
"Delete request block": {
"prefix": "delete",
"body": [
"DELETE ${1:url} HTTP/1.1"
],
"description": "DELETE Request"
},
"Post request block": {
"prefix": "post",
"body": [
"POST ${1:url} HTTP/1.1",
"${2:header name}: ${3:header value}",
"",
"${4:content}"
],
"description": "POST Request"
},
"Put request block": {
"prefix": "put",
"body": [
"PUT ${1:url} HTTP/1.1",
"${2:header name}: ${3:header value}",
"",
"${4:content}"
],
"description": "PUT Request"
},
"GraphQL request block": {
"prefix": "graphql",
"body": [
"POST ${1:url} HTTP/1.1",
"X-Request-Type: GraphQL",
"${2:header name}: ${3:header value}",
"",
"${4:body content}",
"",
"${5:variables content(optional)}"
]
},
"SOAP request block": {
"prefix": "soap",
"body": [
"POST ${1:url} HTTP/1.1",
"Content-Type: application/soap+xml",
"${2:header name}: ${3:header value}",
"",
"<soap:Envelope",
"\txmlns:soap=\"http://www.w3.org/2001/12/soap-envelope\"",
"\tsoap:encodingStyle=\"http://www.w3.org/2001/12/soap-encoding\">",
"\t<soap:Body>",
"\t\t${4:content}",
"\t</soap:Body>",
"</soap:Envelope>"
],
"description": "SOAP Request"
},
"multipart/form-data request block": {
"prefix": "mfr",
"body": [
"POST ${1:url} HTTP/1.1",
"Content-Type: multipart/form-data; boundary=WebAppBoundary",
"",
"--WebAppBoundary",
"Content-Disposition: form-data; name=\"${2:field-name}\"",
"",
"${3:field-value}",
"--WebAppBoundary",
"Content-Disposition: form-data; name=\"${4:field-name}\"; filename=\"${5:file-name.txt}\"",
"",
"< ${6:./relative/path/to/local_file.txt}",
"--WebAppBoundary--"
],
"description": "multipart/form-data request with text and file data "
},
"File level custom variable": {
"prefix": "fv",
"body": [
"@${1:Variable_Name} = ${2:Variable_Value}"
],
"description": "Define Custom File Variable"
},
"Request variable": {
"prefix": "rv",
"body": [
"# @name ${1:Request_Name}"
],
"description": "Define Request Variable"
},
"Request confirmation": {
"prefix": "note",
"body": [
"# @note"
],
"description": "Add sending request confirmation"
}
}