170 lines
3.9 KiB
JSON
170 lines
3.9 KiB
JSON
|
{
|
||
|
"info": {
|
||
|
"_postman_id": "910d9690-f629-4491-bbbd-adb30982a386",
|
||
|
"name": "GraphQL collection",
|
||
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||
|
},
|
||
|
"item": [
|
||
|
{
|
||
|
"name": "mutations",
|
||
|
"item": [
|
||
|
{
|
||
|
"name": "writePost",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [],
|
||
|
"body": {
|
||
|
"mode": "graphql",
|
||
|
"graphql": {
|
||
|
"query": "mutation writePost ($title: String!, $text: String!, $category: String) {\n writePost (title: $title, text: $text, category: $category) {\n id\n title\n text\n category\n }\n}",
|
||
|
"variables": "{\n \"title\": \"\",\n \"text\": \"\",\n \"category\": \"\"\n}"
|
||
|
},
|
||
|
"options": {
|
||
|
"graphql": {}
|
||
|
}
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "http://localhost:9090/springbootapp/graphql",
|
||
|
"protocol": "http",
|
||
|
"host": [
|
||
|
"localhost"
|
||
|
],
|
||
|
"port": "9090",
|
||
|
"path": [
|
||
|
"springbootapp",
|
||
|
"graphql"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
}
|
||
|
],
|
||
|
"protocolProfileBehavior": {}
|
||
|
},
|
||
|
{
|
||
|
"name": "queries",
|
||
|
"item": [
|
||
|
{
|
||
|
"name": "get recent posts",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [],
|
||
|
"body": {
|
||
|
"mode": "graphql",
|
||
|
"graphql": {
|
||
|
"query": "{\r\n recentPosts(count: 10, offset: 0) {\r\n id\r\n title\r\n category\r\n text\r\n author {\r\n id\r\n name\r\n thumbnail\r\n }\r\n }\r\n}",
|
||
|
"variables": ""
|
||
|
}
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "http://localhost:9090/springbootapp/graphql",
|
||
|
"protocol": "http",
|
||
|
"host": [
|
||
|
"localhost"
|
||
|
],
|
||
|
"port": "9090",
|
||
|
"path": [
|
||
|
"springbootapp",
|
||
|
"graphql"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
},
|
||
|
{
|
||
|
"name": "recentPosts - variables",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [],
|
||
|
"body": {
|
||
|
"mode": "graphql",
|
||
|
"graphql": {
|
||
|
"query": "query recentPosts ($count: Int, $offset: Int) {\n recentPosts (count: $count, offset: $offset) {\n id\n title\n text\n category\n }\n}",
|
||
|
"variables": "{\n \"count\": 1,\n \"offset\": 0\n}"
|
||
|
},
|
||
|
"options": {
|
||
|
"graphql": {}
|
||
|
}
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "http://localhost:9090/springbootapp/graphql",
|
||
|
"protocol": "http",
|
||
|
"host": [
|
||
|
"localhost"
|
||
|
],
|
||
|
"port": "9090",
|
||
|
"path": [
|
||
|
"springbootapp",
|
||
|
"graphql"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
},
|
||
|
{
|
||
|
"name": "get recent posts - raw",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [
|
||
|
{
|
||
|
"key": "Content-Type",
|
||
|
"value": "application/graphql",
|
||
|
"type": "text"
|
||
|
}
|
||
|
],
|
||
|
"body": {
|
||
|
"mode": "raw",
|
||
|
"raw": "query {\r\n recentPosts(count: 10, offset: 0) {\r\n id\r\n title\r\n category\r\n author {\r\n id\r\n name\r\n thumbnail\r\n }\r\n }\r\n}"
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "http://localhost:9090/springbootapp/graphql",
|
||
|
"protocol": "http",
|
||
|
"host": [
|
||
|
"localhost"
|
||
|
],
|
||
|
"port": "9090",
|
||
|
"path": [
|
||
|
"springbootapp",
|
||
|
"graphql"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
}
|
||
|
],
|
||
|
"protocolProfileBehavior": {}
|
||
|
}
|
||
|
],
|
||
|
"event": [
|
||
|
{
|
||
|
"listen": "prerequest",
|
||
|
"script": {
|
||
|
"id": "b54f267b-c450-4f2d-8105-2f23bab4c922",
|
||
|
"type": "text/javascript",
|
||
|
"exec": [
|
||
|
""
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"listen": "test",
|
||
|
"script": {
|
||
|
"id": "00b575be-03d4-4b29-b137-733ead139638",
|
||
|
"type": "text/javascript",
|
||
|
"exec": [
|
||
|
""
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"variable": [
|
||
|
{
|
||
|
"id": "20a274e5-6d51-40d6-81cb-af9eb115b21b",
|
||
|
"key": "url",
|
||
|
"value": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"protocolProfileBehavior": {}
|
||
|
}
|