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() {
3434 }
3535 })
3636
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 ("" )
3840
3941 fmt .Println (`Get single todo:
4042curl \
4143-X POST \
4244-H "Content-Type: application/json" \
4345--data '{ "query": "{ todo(id:\"b\") { id text done } }" }' \
44- http://localhost:8080/graphql
45- ` )
46+ http://localhost:8080/graphql` )
47+
48+ fmt .Println ("" )
4649
4750 fmt .Println (`Create new todo:
4851curl \
4952-X POST \
5053-H "Content-Type: application/json" \
5154--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 ("" )
5458
5559 fmt .Println (`Update todo:
5660curl \
5761-X POST \
5862-H "Content-Type: application/json" \
5963--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 ("" )
6267
6368 fmt .Println (`Load todo list:
6469curl \
You can’t perform that action at this time.
0 commit comments