-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publishing site Wed Jul 3 16:09:52 CEST 2024
- Loading branch information
Showing
47 changed files
with
474 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "ce5abe9a-2813-4673-8e61-8a6f2790dc21", | ||
"name": "Petstore Graph API", | ||
"description": "version=1.0 - This collection holds mocks data for GraphQL tutorial", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "1278651" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "allPets", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://allPets", | ||
"protocol": "http", | ||
"host": [ | ||
"allPets" | ||
] | ||
} | ||
}, | ||
"response": [ | ||
{ | ||
"name": "allPets", | ||
"originalRequest": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://allPets", | ||
"protocol": "http", | ||
"host": [ | ||
"allPets" | ||
] | ||
} | ||
}, | ||
"_postman_previewlanguage": "json", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json", | ||
"name": "Content-Type", | ||
"description": "", | ||
"type": "text" | ||
} | ||
], | ||
"cookie": [], | ||
"body": "{\n \"data\": {\n \"allPets\": [\n {\n \"id\": \"1\",\n \"name\": \"Zaza\",\n \"color\": \"blue\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Tigress\",\n \"color\": \"stripped\"\n },\n {\n \"id\": \"3\",\n \"name\": \"Maki\",\n \"color\": \"calico\"\n },\n {\n \"id\": \"4\",\n \"name\": \"Toufik\",\n \"color\": \"stripped\"\n }\n ]\n }\n}" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "searchPets", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://searchPets", | ||
"protocol": "http", | ||
"host": [ | ||
"searchPets" | ||
] | ||
} | ||
}, | ||
"response": [ | ||
{ | ||
"name": "k pets", | ||
"originalRequest": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "graphql", | ||
"graphql": { | ||
"query": "query searchPets ($name: String) {\n searchPets (name: $name) {\n id\n name\n color\n }\n}", | ||
"variables": "{\n \"name\": \"k\"\n}" | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://searchPets", | ||
"protocol": "http", | ||
"host": [ | ||
"searchPets" | ||
] | ||
} | ||
}, | ||
"_postman_previewlanguage": "json", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json", | ||
"name": "Content-Type", | ||
"description": "", | ||
"type": "text" | ||
} | ||
], | ||
"cookie": [], | ||
"body": "{\n \"data\": {\n \"searchPets\": [\n {\n \"id\": \"3\",\n \"name\": \"Maki\",\n \"color\": \"calico\"\n },\n {\n \"id\": \"4\",\n \"name\": \"Toufik\",\n \"color\": \"stripped\"\n }\n ]\n }\n}" | ||
}, | ||
{ | ||
"name": "i pets", | ||
"originalRequest": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "graphql", | ||
"graphql": { | ||
"query": "query searchPets ($name: String) {\n searchPets (name: $name) {\n id\n name\n color\n }\n}", | ||
"variables": "{\n \"name\": \"i\"\n}" | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://searchPets", | ||
"protocol": "http", | ||
"host": [ | ||
"searchPets" | ||
] | ||
} | ||
}, | ||
"_postman_previewlanguage": "json", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json", | ||
"description": "", | ||
"type": "text" | ||
} | ||
], | ||
"cookie": [], | ||
"body": "{\n \"data\": {\n \"searchPets\": [\n {\n \"id\":\"2\",\n \"name\":\"Tigress\",\n \"color\":\"stripped\"\n },\n {\n \"id\": \"3\",\n \"name\": \"Maki\",\n \"color\": \"calico\"\n },\n {\n \"id\": \"4\",\n \"name\": \"Toufik\",\n \"color\": \"stripped\"\n }\n ]\n }\n}" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "createPet", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://createPet", | ||
"protocol": "http", | ||
"host": [ | ||
"createPet" | ||
] | ||
} | ||
}, | ||
"response": [ | ||
{ | ||
"name": "new pet", | ||
"originalRequest": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "graphql", | ||
"graphql": { | ||
"query": "mutation createPet($newPet: NewPet) {\n createPet(review: $newPet) {\n id\n name\n color\n }\n}", | ||
"variables": "{\n \"newPet\": {\n \"name\": \"Jojo\",\n \"color\": \"tuxedo\"\n }\n}" | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://createPet", | ||
"protocol": "http", | ||
"host": [ | ||
"createPet" | ||
] | ||
} | ||
}, | ||
"_postman_previewlanguage": null, | ||
"header": null, | ||
"cookie": [], | ||
"body": "{\n \"data\":{\n \"createPet\":{\n \"id\":\"{{ randomInt(5, 10) }}\",\n \"name\":\"{{ request.body/variables/newPet/name }}\",\n \"color\":\"{{ request.body/variables/newPet/color }}\"\n }\n }\n}" | ||
} | ||
] | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.