forked from madebycodera/graphql-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·11 lines (6 loc) · 2.42 KB
/
test.sh
File metadata and controls
executable file
·11 lines (6 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nquery Query($filters:AllFilters){\n allTodos(filters:$filters){\n id,description,completed\n }\n}","variables":{"filters":{"completed":false,"sort_by":"id","desc":true}}}' --compressed
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nquery Query($id:ID!){\n todo(id:$id){\n id,description,completed\n }\n}","variables":{"id":2}}' --compressed
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nmutation Mutation($todo: AddTodo!){\n addTodo(todo:$todo){\n id\n }\n}","variables":{"todo":{"description":"Test test 4"}}}' --compressed
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nmutation Mutation($todo: AddTodo, $id:ID!){\n editTodo(todo:$todo, id:$id){\n id\n }\n}","variables":{"todo":{"description":"Test test edited"},"id":1}}' --compressed
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nmutation Mutation($id: ID!){\n completeTodo(id:$id){\n id\n }\n}","variables":{"id":2}}' --compressed
curl 'http://localhost:4000/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4000' --data-binary '{"query":"# Write your query or mutation here\nmutation Mutation($id: ID!){\n deleteTodo(id:$id){\n id\n }\n}","variables":{"id":4}}' --compressed