Skip to content

Commit 66cca46

Browse files
authored
Merge pull request #12171 from eugenp/lor6-patch-1
Create GraphQL collection.postman_collection.json
2 parents cd49cc0 + 67db916 commit 66cca46

1 file changed

Lines changed: 169 additions & 0 deletions

File tree

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
{
2+
"info": {
3+
"_postman_id": "910d9690-f629-4491-bbbd-adb30982a386",
4+
"name": "GraphQL collection",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "mutations",
10+
"item": [
11+
{
12+
"name": "writePost",
13+
"request": {
14+
"method": "POST",
15+
"header": [],
16+
"body": {
17+
"mode": "graphql",
18+
"graphql": {
19+
"query": "mutation writePost ($title: String!, $text: String!, $category: String) {\n writePost (title: $title, text: $text, category: $category) {\n id\n title\n text\n category\n }\n}",
20+
"variables": "{\n \"title\": \"\",\n \"text\": \"\",\n \"category\": \"\"\n}"
21+
},
22+
"options": {
23+
"graphql": {}
24+
}
25+
},
26+
"url": {
27+
"raw": "http://localhost:9090/springbootapp/graphql",
28+
"protocol": "http",
29+
"host": [
30+
"localhost"
31+
],
32+
"port": "9090",
33+
"path": [
34+
"springbootapp",
35+
"graphql"
36+
]
37+
}
38+
},
39+
"response": []
40+
}
41+
],
42+
"protocolProfileBehavior": {}
43+
},
44+
{
45+
"name": "queries",
46+
"item": [
47+
{
48+
"name": "get recent posts",
49+
"request": {
50+
"method": "POST",
51+
"header": [],
52+
"body": {
53+
"mode": "graphql",
54+
"graphql": {
55+
"query": "{\r\n recentPosts(count: 10, offset: 0) {\r\n id\r\n title\r\n category\r\n text\r\n author {\r\n id\r\n name\r\n thumbnail\r\n }\r\n }\r\n}",
56+
"variables": ""
57+
}
58+
},
59+
"url": {
60+
"raw": "http://localhost:9090/springbootapp/graphql",
61+
"protocol": "http",
62+
"host": [
63+
"localhost"
64+
],
65+
"port": "9090",
66+
"path": [
67+
"springbootapp",
68+
"graphql"
69+
]
70+
}
71+
},
72+
"response": []
73+
},
74+
{
75+
"name": "recentPosts - variables",
76+
"request": {
77+
"method": "POST",
78+
"header": [],
79+
"body": {
80+
"mode": "graphql",
81+
"graphql": {
82+
"query": "query recentPosts ($count: Int, $offset: Int) {\n recentPosts (count: $count, offset: $offset) {\n id\n title\n text\n category\n }\n}",
83+
"variables": "{\n \"count\": 1,\n \"offset\": 0\n}"
84+
},
85+
"options": {
86+
"graphql": {}
87+
}
88+
},
89+
"url": {
90+
"raw": "http://localhost:9090/springbootapp/graphql",
91+
"protocol": "http",
92+
"host": [
93+
"localhost"
94+
],
95+
"port": "9090",
96+
"path": [
97+
"springbootapp",
98+
"graphql"
99+
]
100+
}
101+
},
102+
"response": []
103+
},
104+
{
105+
"name": "get recent posts - raw",
106+
"request": {
107+
"method": "POST",
108+
"header": [
109+
{
110+
"key": "Content-Type",
111+
"value": "application/graphql",
112+
"type": "text"
113+
}
114+
],
115+
"body": {
116+
"mode": "raw",
117+
"raw": "query {\r\n recentPosts(count: 10, offset: 0) {\r\n id\r\n title\r\n category\r\n author {\r\n id\r\n name\r\n thumbnail\r\n }\r\n }\r\n}"
118+
},
119+
"url": {
120+
"raw": "http://localhost:9090/springbootapp/graphql",
121+
"protocol": "http",
122+
"host": [
123+
"localhost"
124+
],
125+
"port": "9090",
126+
"path": [
127+
"springbootapp",
128+
"graphql"
129+
]
130+
}
131+
},
132+
"response": []
133+
}
134+
],
135+
"protocolProfileBehavior": {}
136+
}
137+
],
138+
"event": [
139+
{
140+
"listen": "prerequest",
141+
"script": {
142+
"id": "b54f267b-c450-4f2d-8105-2f23bab4c922",
143+
"type": "text/javascript",
144+
"exec": [
145+
""
146+
]
147+
}
148+
},
149+
{
150+
"listen": "test",
151+
"script": {
152+
"id": "00b575be-03d4-4b29-b137-733ead139638",
153+
"type": "text/javascript",
154+
"exec": [
155+
""
156+
]
157+
}
158+
}
159+
],
160+
"variable": [
161+
{
162+
"id": "20a274e5-6d51-40d6-81cb-af9eb115b21b",
163+
"key": "url",
164+
"value": "",
165+
"type": "string"
166+
}
167+
],
168+
"protocolProfileBehavior": {}
169+
}

0 commit comments

Comments
 (0)