Back to Collection Items
var
begin
http.BasicAuth := 1;http.Login := '{{username}}';http.Password := '{{password}}';json.UpdateString('query','query GetCustomFieldGroups (' + #10 + ' $pageSizeGroups: Int, ' + #10 + ' $afterCursorGroups: String' + #10 + ' $pageSizeFields: Int,' + #10 + ' $afterCursorFields: String' + #10 + '){' + #10 + ' customFieldGroups (first: $pageSizeGroups after: $afterCursorGroups){' + #10 + ' nodes {' + #10 + ' id' + #10 + ' name' + #10 + ' description' + #10 + ' entity' + #10 + ' customFields (first: $pageSizeFields after: $afterCursorFields ) {' + #10 + ' nodes {' + #10 + ' id' + #10 + ' name' + #10 + ' description' + #10 + ' placeholder' + #10 + ' fieldType' + #10 + ' }' + #10 + ' }' + #10 + ' }' + #10 + ' pageInfo{' + #10 + ' ...PageInfoPartial' + #10 + ' }' + #10 + ' }' + #10 + '}' + #10 + #10 + 'fragment PageInfoPartial on PageInfo {' + #10 + ' hasNextPage' + #10 + ' endCursor' + #10 + '}');json.UpdateString('variables','{' + #10 + ' "pageSizeGroups": 50,' + #10 + ' "afterCursorGroups": "",' + #10 + ' "pageSizeFields": 10,' + #10 + ' "afterCursorFields": ""' + #10 + '}');
Curl Command
curl -X POST
-u '{{username}}:{{password}}'
-H "MARKETPLACER-API-KEY: {{api_key}}"
-H "Content-Type: application/json"
--data-raw '{"query":"query GetCustomFieldGroups (\n\t$pageSizeGroups: Int, \n\t$afterCursorGroups: String\n\t$pageSizeFields: Int,\n\t$afterCursorFields: String\n){\n\tcustomFieldGroups (first: $pageSizeGroups after: $afterCursorGroups){\n\t\tnodes {\n\t\t\tid\n\t\t\tname\n\t\t\tdescription\n\t\t\tentity\n\t\t\tcustomFields (first: $pageSizeFields after: $afterCursorFields ) {\n\t\t\t\tnodes {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tdescription\n\t\t\t\t\tplaceholder\n\t\t\t\t\tfieldType\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpageInfo{\n\t\t\t...PageInfoPartial\n\t\t}\n\t}\n}\n\nfragment PageInfoPartial on PageInfo {\n\thasNextPage\n\tendCursor\n}","variables":"{\n\t\"pageSizeGroups\": 50,\n\t\"afterCursorGroups\": \"\",\n\t\"pageSizeFields\": 10,\n\t\"afterCursorFields\": \"\"\n}"}'
https://bestfriendbazaar.com/graphql
Postman Collection Item JSON
{
"name": "Get Custom Field Groups",
"request": {
"method": "POST",
"header": [
{
"key": "MARKETPLACER-API-KEY",
"value": "{{api_key}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query GetCustomFieldGroups (\n\t$pageSizeGroups: Int, \n\t$afterCursorGroups: String\n\t$pageSizeFields: Int,\n\t$afterCursorFields: String\n){\n\tcustomFieldGroups (first: $pageSizeGroups after: $afterCursorGroups){\n\t\tnodes {\n\t\t\tid\n\t\t\tname\n\t\t\tdescription\n\t\t\tentity\n\t\t\tcustomFields (first: $pageSizeFields after: $afterCursorFields ) {\n\t\t\t\tnodes {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tdescription\n\t\t\t\t\tplaceholder\n\t\t\t\t\tfieldType\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpageInfo{\n\t\t\t...PageInfoPartial\n\t\t}\n\t}\n}\n\nfragment PageInfoPartial on PageInfo {\n\thasNextPage\n\tendCursor\n}",
"variables": "{\n\t\"pageSizeGroups\": 50,\n\t\"afterCursorGroups\": \"\",\n\t\"pageSizeFields\": 10,\n\t\"afterCursorFields\": \"\"\n}"
}
},
"url": {
"raw": "{{base_url}}",
"host": [
"{{base_url}}"
],
"path": null
},
"description": null
},
"response": [
]
}