-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostman.json
84 lines (84 loc) · 1.72 KB
/
postman.json
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
{
"info": {
"_postman_id": "d6dffaeb-4bb7-4fd3-b092-ebbacb9f5564",
"name": "apollo-server-lambda-postman-test",
"description": "apollo-server-lambda-postman-test",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "query files",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"query\": \"{files{id \\n name }}\"\n}"
},
"url": {
"raw": "localhost:4000/graphql",
"host": [
"localhost"
],
"port": "4000",
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "file upload",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "multipart/form-data; boundary=----WebKitFormBoundarySB8nXnvX1NUKKwPB"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "operations",
"value": "{\"operationName\":\"uploadFiles\",\"variables\":{\"files\":[null]},\"query\":\"mutation uploadFiles($files: [Upload!]!) {\\n uploadFiles(files: $files)\\n}\\n\"}",
"type": "text"
},
{
"key": "map",
"value": "{\"1\":[\"variables.files.0\"]}",
"type": "text"
},
{
"key": "1",
"type": "file",
"src": "package.json"
}
]
},
"url": {
"raw": "localhost:4000/graphql",
"host": [
"localhost"
],
"port": "4000",
"path": [
"graphql"
]
}
},
"response": []
}
]
}