-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-data.example.json
More file actions
47 lines (47 loc) · 1.11 KB
/
test-data.example.json
File metadata and controls
47 lines (47 loc) · 1.11 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
{
"_comment": "複製此檔案為 test-data.json,填入你要測試的資料。此檔案為範本,不會被 git 追蹤。",
"get_params": {
"search": "hello world",
"page": "1",
"lang": "繁體中文"
},
"post_json": {
"id": "your-id-here",
"name": "your-name-here",
"tags": [
"test",
"http"
],
"nested": {
"key": "value",
"flag": true
}
},
"post_form": {
"username": "testuser",
"password": "p@ssw0rd!#$",
"memo": "test memo"
},
"multipart": {
"fields": {
"description": "test upload"
},
"file": {
"filename": "test.txt",
"content": "This is a test file for multipart upload.\n",
"content_type": "text/plain"
}
},
"custom_headers": {
"X-Custom-Header": "test-value",
"X-Request-Source": "http-request-lab",
"Accept-Language": "zh-TW,zh;q=0.9,en;q=0.8"
},
"endpoints": {
"get": "/api/test/get",
"post_json": "/api/test/post-json",
"post_form": "/api/test/post-form",
"post_multipart": "/api/test/post-multipart",
"custom_headers": "/api/test/custom-headers"
}
}