Skip to content

Commit

Permalink
Publishing site Wed Jul 3 16:09:52 CEST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
lbroudoux committed Jul 3, 2024
1 parent 1258112 commit e7c735f
Show file tree
Hide file tree
Showing 47 changed files with 474 additions and 19 deletions.
175 changes: 175 additions & 0 deletions documentation/tutorials/PetstoreGraph.postman.json
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}"
}
]
}
]
}
249 changes: 244 additions & 5 deletions documentation/tutorials/first-graphql-mock/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit e7c735f

Please sign in to comment.