-
Notifications
You must be signed in to change notification settings - Fork 5
/
Book.postman_collection.json
65 lines (65 loc) · 1.49 KB
/
Book.postman_collection.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
{
"info": {
"_postman_id": "40dd17c0-207d-45fc-a659-ab99abb00c47",
"name": "Book",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Posts",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"operationName\": null,\n \"query\": \"{ posts { id text } }\", \n \"variables\": {} \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/graphql",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Add Post",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"operationName\": null, \n \"query\": \"mutation addPost($post : PostInput!, $user: UserInput!) { addPost(post : $post, user: $user) { id text user { username avatar } } }\",\n \"variables\": {\n \"post\": { \n \"text\": \"You just added a post.\"\n },\n \"user\": {\n \"avatar\": \"/uploads/avatar3.png\",\n \"username\": \"Fake User\"\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/graphql",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"graphql"
]
}
},
"response": []
}
]
}