-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
35 lines (30 loc) · 902 Bytes
/
test.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
35
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection).
#
# Following HTTP Request Live Templates are available:
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
### 正常流程测试
POST http://localhost:8104/business/dubbo/buy
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{
"userId":1,
"commodityCode":"C201901140001",
"name":"fan",
"count":50,
"amount":"100"
}
### 异常流程测试
POST http://localhost:8104/business/dubbo/buy2
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{
"userId":1,
"commodityCode":"C201901140001",
"name":"fan",
"count":50,
"amount":"100"
}