File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -34,31 +34,36 @@ func main() {
34
34
}
35
35
})
36
36
37
- fmt .Println ("Now server is running on port 8080\n " )
37
+ fmt .Println ("Now server is running on port 8080" )
38
+
39
+ fmt .Println ("" )
38
40
39
41
fmt .Println (`Get single todo:
40
42
curl \
41
43
-X POST \
42
44
-H "Content-Type: application/json" \
43
45
--data '{ "query": "{ todo(id:\"b\") { id text done } }" }' \
44
- http://localhost:8080/graphql
45
- ` )
46
+ http://localhost:8080/graphql` )
47
+
48
+ fmt .Println ("" )
46
49
47
50
fmt .Println (`Create new todo:
48
51
curl \
49
52
-X POST \
50
53
-H "Content-Type: application/json" \
51
54
--data '{ "query": "mutation { createTodo(text:\"My New todo\") { id text done } }" }' \
52
- http://localhost:8080/graphql
53
- ` )
55
+ http://localhost:8080/graphql` )
56
+
57
+ fmt .Println ("" )
54
58
55
59
fmt .Println (`Update todo:
56
60
curl \
57
61
-X POST \
58
62
-H "Content-Type: application/json" \
59
63
--data '{ "query": "mutation { updateTodo(id:\"a\", done: true) { id text done } }" }' \
60
- http://localhost:8080/graphql
61
- ` )
64
+ http://localhost:8080/graphql` )
65
+
66
+ fmt .Println ("" )
62
67
63
68
fmt .Println (`Load todo list:
64
69
curl \
You can’t perform that action at this time.
0 commit comments