{"info":{"_postman_id":"6f626e83-10b5-4b75-8bda-65cb55e106ba","name":"SimpleUserCMS","description":"<html><head></head><body><p>Add, Remove, Get a user or list of users from a cloud database</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1592722","collectionId":"6f626e83-10b5-4b75-8bda-65cb55e106ba","publishedId":"SzezcXcj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-13T12:40:59.000Z"},"item":[{"name":"graphql","item":[{"name":"local dev","item":[{"name":"graphql - user","id":"80eb5447-694e-4f4a-93c5-908ab83dea02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"Maddison\"\n}"}},"url":"localhost:3000/graphql","urlObject":{"port":"3000","path":["graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"80eb5447-694e-4f4a-93c5-908ab83dea02"},{"name":"graphql - user invalid","id":"438f768a-bf27-4c0a-afa3-e53fff4a0073","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($name:String!, $email:String!, $address:String!, $role:Boolean!){\n\tcreateUser(name: $name, email: $email, address: $address, role: $role) {\n\t\tsuccess\n\t\tmsg\n\t\tuser {\n\t\t\tid\n\t\t\tname\n\t\t\taddress\n\t\t\temail\n\t\t\trole\n\t\t}\n\t}\n}","variables":"{\n\t\n}"}},"url":"localhost:3000/api/graphql","urlObject":{"port":"3000","path":["api","graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"438f768a-bf27-4c0a-afa3-e53fff4a0073"},{"name":"graphql - userList","id":"789f6c0c-df1a-450d-9435-844dbcd2fcaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ($name: String, $first: Int) {\n\tuserList(name: $name, first: $first) {\n\t\tid\n\t\tname\n\t\temail\n\t\taddress\n\t\trole\n\t}\n}","variables":"{\n\t\"name\": \"Patrick\",\n    \"first\": 2\n}"}},"url":"localhost:3000/api/graphql","urlObject":{"port":"3000","path":["api","graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"789f6c0c-df1a-450d-9435-844dbcd2fcaa"},{"name":"graphql - Create a user","id":"4d3da356-bc22-4db6-a696-04e2197266a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($name:String!, $email:String!, $address:String!, $role:Boolean!){\n\tcreateUser(name: $name, email: $email, address: $address, role: $role) {\n\t\tsuccess\n\t\tmsg\n\t\tuser {\n\t\t\tid\n\t\t\tname\n\t\t\taddress\n\t\t\temail\n\t\t\trole\n\t\t}\n\t}\n}","variables":"{\n\t\"name\": \"Alverta Lang\",\n\t\"address\": \"51405 Zemlak Viaduct, Lake Alex 08214\",\n\t\"email\": \"Tillman.Rice@yahoo.com\",\n\t\"role\": true\n}"}},"url":"localhost:3000/graphql","urlObject":{"port":"3000","path":["graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d3da356-bc22-4db6-a696-04e2197266a9"},{"name":"graphql - Remove a user","id":"c4deab70-8d3f-4bc4-8170-fdf65e030e2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($id:ID!) {\n    removeUser(id: $id) {\n      success\n      msg\n      id\n    }\n}","variables":"{\n\t\"id\": \"user:504\"\n}"}},"url":"localhost:3000/graphql","urlObject":{"port":"3000","path":["graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4deab70-8d3f-4bc4-8170-fdf65e030e2b"}],"id":"ce627e95-0985-4bd6-b583-16fab6168120","_postman_id":"ce627e95-0985-4bd6-b583-16fab6168120","description":""},{"name":"vercel","item":[{"name":"now live graphql - user","id":"eebc7dfe-6fed-4945-86b9-a8f258b9e7c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://simple-user-cms.now.sh/api/graphql?query=query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}&variables={\"name\":\"william\"}","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[{"key":"query","value":"query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}"},{"key":"variables","value":"{\"name\":\"william\"}"}],"variable":[]}},"response":[{"id":"6f0781f0-b293-4fe7-b175-55bc30d8653e","name":"now live graphql - GET user - unsuccessful","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://simple-user-cms.now.sh/api/graphql?query=query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}&variables={\"name\":\"bad user name\"}","protocol":"https","host":["simple-user-cms","now","sh"],"path":["api","graphql"],"query":[{"key":"query","value":"query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}"},{"key":"variables","value":"{\"name\":\"bad user name\"}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"public, max-age=60"},{"key":"date","value":"Sat, 23 May 2020 02:08:59 GMT"},{"key":"etag","value":"W/\"a9-XBsHpqYyKP+nl7av0/M6XZ2lEfI\""},{"key":"content-length","value":"169"},{"key":"x-vercel-cache","value":"MISS"},{"key":"age","value":"0"},{"key":"x-vercel-trace","value":"syd1"},{"key":"server","value":"Vercel"},{"key":"x-vercel-id","value":"syd1::sfo1::zjh2g-1590199739257-5f80b12a59bb"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User \\\"bad user name\\\" was not found.\",\n            \"locations\": [\n                {\n                    \"line\": 1,\n                    \"column\": 26\n                }\n            ],\n            \"path\": [\n                \"user\"\n            ],\n            \"extensions\": {\n                \"code\": \"BAD_USER_INPUT\"\n            }\n        }\n    ],\n    \"data\": null\n}"},{"id":"7e720b8b-f5ef-48b9-a3c1-5c870c8b201d","name":"now live graphql - user - unsuccessful","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"unknown\"\n}"},"options":{"raw":{"language":"json"}}},"url":"https://simple-user-cms.now.sh/api/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"etag","value":"W/\"a1-GdZiMzJYK2T6Z7PewVvInM41BW4\""},{"key":"content-length","value":"161"},{"key":"date","value":"Wed, 13 May 2020 10:13:32 GMT"},{"key":"x-now-trace","value":"syd1"},{"key":"server","value":"now"},{"key":"x-vercel-id","value":"syd1::sfo1::hnnqj-1589364811869-065233754f5a"},{"key":"x-now-id","value":"syd1::sfo1::hnnqj-1589364811869-065233754f5a"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"s-maxage=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User \\\"unknown\\\" was not found.\",\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3\n                }\n            ],\n            \"path\": [\n                \"user\"\n            ],\n            \"extensions\": {\n                \"code\": \"BAD_USER_INPUT\"\n            }\n        }\n    ],\n    \"data\": null\n}"},{"id":"88deedd2-f044-44b4-8ea0-17bf2264184f","name":"now live graphql - user - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"Maddison\"\n}"},"options":{"raw":{"language":"json"}}},"url":"https://simple-user-cms.now.sh/api/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"etag","value":"W/\"97-TvqvyyCGxLFB6wAchJkXiGhhBf0\""},{"key":"content-length","value":"151"},{"key":"date","value":"Wed, 13 May 2020 10:12:03 GMT"},{"key":"x-now-trace","value":"syd1"},{"key":"server","value":"now"},{"key":"x-vercel-id","value":"syd1::sfo1::hnnqj-1589364723439-ca361c2215e6"},{"key":"x-now-id","value":"syd1::sfo1::hnnqj-1589364723439-ca361c2215e6"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"s-maxage=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"id\": \"user:6\",\n            \"name\": \"Maddison Kirlin\",\n            \"address\": \"983 Eli Ridge, Port Archieville 0135\",\n            \"email\": \"Eli.Sauer@example.org\",\n            \"role\": true\n        }\n    }\n}"},{"id":"bd2f0cba-7ced-4fa7-be38-6c307cfc4a9b","name":"now live graphql - GET user - success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://simple-user-cms.now.sh/api/graphql?query=query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}&variables={\"name\":\"maddison rice\"}","protocol":"https","host":["simple-user-cms","now","sh"],"path":["api","graphql"],"query":[{"key":"query","value":"query ($name: String) {\t\tuser(name: $name) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}"},{"key":"variables","value":"{\"name\":\"maddison rice\"}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"public, max-age=60"},{"key":"date","value":"Sat, 23 May 2020 02:07:05 GMT"},{"key":"etag","value":"W/\"9b-LDtqhpiH2gTiA6ErkPQ/YfNgGfg\""},{"key":"content-length","value":"155"},{"key":"x-vercel-cache","value":"MISS"},{"key":"age","value":"0"},{"key":"x-vercel-trace","value":"syd1"},{"key":"server","value":"Vercel"},{"key":"x-vercel-id","value":"syd1::sfo1::zjh2g-1590199625278-ab5b95f10f09"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"id\": \"user:4245\",\n            \"name\": \"Dr. Maddison Rice\",\n            \"address\": \"505 Adam Estate Dr, Grantchester 5253\",\n            \"email\": \"Isla51@example.net\",\n            \"role\": true\n        }\n    }\n}"}],"_postman_id":"eebc7dfe-6fed-4945-86b9-a8f258b9e7c6"},{"name":"now live graphql - user","event":[{"listen":"test","script":{"id":"dd8e63a3-650c-4e2f-bf11-74507fb31f33","exec":["pm.test(\"Get a user\", function () {","    var jsonData = pm.response.json();","    pm.expect(!!jsonData.data.user.id).to.be.true;","});"],"type":"text/javascript"}}],"id":"22c109ae-4fbf-4e01-8823-3ee840a214c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"Maddison\"\n}"}},"url":"https://simple-user-cms.now.sh/api/graphql","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[],"variable":[]}},"response":[{"id":"138470b1-8bc5-4875-92ac-13c7e2560f2b","name":"now live graphql - user - Maddison","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","options":{"raw":{"language":"json"}}},"url":"https://simple-user-cms.now.sh/api/graphql"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"6f93fb26-cfc2-428c-8bb1-a024040f5d5d","name":"now live graphql - user - Johnny - error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","options":{"raw":{"language":"json"}}},"url":"https://simple-user-cms.now.sh/api/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"etag","value":"W/\"a0-vN5aHffVeszEveGHl8sIb4M3OLs\""},{"key":"content-length","value":"160"},{"key":"date","value":"Wed, 13 May 2020 09:48:25 GMT"},{"key":"x-now-trace","value":"syd1"},{"key":"server","value":"now"},{"key":"x-vercel-id","value":"syd1::sfo1::nbwck-1589363305644-9d4a8398d42f"},{"key":"x-now-id","value":"syd1::sfo1::nbwck-1589363305644-9d4a8398d42f"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"s-maxage=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User \\\"Johnny\\\" was not found.\",\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3\n                }\n            ],\n            \"path\": [\n                \"user\"\n            ],\n            \"extensions\": {\n                \"code\": \"BAD_USER_INPUT\"\n            }\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"22c109ae-4fbf-4e01-8823-3ee840a214c0"},{"name":"now live graphql - userList","event":[{"listen":"test","script":{"id":"e8d659eb-f57a-4f65-a050-1fe085aac63c","exec":["pm.test(\"userList is an array\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.userList.length > 0).to.be.true;","});"],"type":"text/javascript"}}],"id":"3be34a24-2371-43c7-a782-fdf44af7adb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://simple-user-cms.now.sh/api/graphql?query=query ($name: String, $first: Int) {\t\tuserList(name: $name, first: $first) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}&variables={\"name\":\"samantha\", \"first\": 2}","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[{"key":"query","value":"query ($name: String, $first: Int) {\t\tuserList(name: $name, first: $first) {\t\t\tid\t\t\tname\t\t\taddress\t\t\temail\t\t\trole\t\t}\t}"},{"key":"variables","value":"{\"name\":\"samantha\", \"first\": 2}"}],"variable":[]}},"response":[],"_postman_id":"3be34a24-2371-43c7-a782-fdf44af7adb5"},{"name":"now live graphql - userList","id":"a3ee4a85-5dfa-45dc-bb7a-e208b69c8514","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ($name: String, $first: Int) {\n\tuserList(name: $name, first: $first) {\n\t\tid\n\t\tname\n\t\temail\n\t\taddress\n\t\trole\n\t}\n}","variables":"{\n\t\"name\": \"Samantha\",\n    \"first\": 2\n}"}},"url":"https://simple-user-cms.now.sh/api/graphql","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[],"variable":[]}},"response":[{"id":"67110fef-486c-484d-a264-03603a0817ea","name":"now live graphql - userList - Samantha","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql"},"url":"https://simple-user-cms.now.sh/api/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"etag","value":"W/\"2cf-IAN1bwrqNIps+q09jxf5r/PW0zE\""},{"key":"content-length","value":"719"},{"key":"date","value":"Wed, 13 May 2020 09:49:28 GMT"},{"key":"x-now-trace","value":"syd1"},{"key":"server","value":"now"},{"key":"x-vercel-id","value":"syd1::sfo1::nbwck-1589363366917-dec1cc8704f7"},{"key":"x-now-id","value":"syd1::sfo1::nbwck-1589363366917-dec1cc8704f7"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"s-maxage=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"userList\": [\n            {\n                \"id\": \"user:55\",\n                \"name\": \"Samantha Clarke\",\n                \"email\": \"Chase_Flatley@example.com\",\n                \"address\": \"5343 Hayden Junction, Farrellhaven 7226\",\n                \"role\": true\n            },\n            {\n                \"id\": \"user:103\",\n                \"name\": \"Samantha Adams V\",\n                \"email\": \"Lola33@example.net\",\n                \"address\": \"75974 Jacob Hill, South Blake 4189\",\n                \"role\": true\n            },\n            {\n                \"id\": \"user:153\",\n                \"name\": \"Samantha Goldner\",\n                \"email\": \"Adam_Cormier@example.org\",\n                \"address\": \"235 Casper Station St, South Cameronhaven 2976\",\n                \"role\": true\n            },\n            {\n                \"id\": \"user:330\",\n                \"name\": \"Samantha Miller\",\n                \"email\": \"Anthony68@example.com\",\n                \"address\": \"06732 Douglas Mews, Smithport 5815\",\n                \"role\": false\n            },\n            {\n                \"id\": \"user:346\",\n                \"name\": \"Samantha Cox\",\n                \"email\": \"Gemma_Lee27@example.org\",\n                \"address\": \"882 Sanford Place, Lake Jadeview 0120\",\n                \"role\": false\n            }\n        ]\n    }\n}"},{"id":"70b68180-a23b-4470-9508-3a1c4544a35d","name":"now live graphql - userList - Johnny error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql"},"url":"https://simple-user-cms.now.sh/api/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"etag","value":"W/\"ae-71vphWd2rD3peEA1FldOUh1fw+M\""},{"key":"content-length","value":"174"},{"key":"date","value":"Wed, 13 May 2020 09:49:50 GMT"},{"key":"x-now-trace","value":"syd1"},{"key":"server","value":"now"},{"key":"x-vercel-id","value":"syd1::sfo1::nbwck-1589363389960-9efc25e272ea"},{"key":"x-now-id","value":"syd1::sfo1::nbwck-1589363389960-9efc25e272ea"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"s-maxage=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"No users with name \\\"Johnny\\\" were found\",\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 2\n                }\n            ],\n            \"path\": [\n                \"userList\"\n            ],\n            \"extensions\": {\n                \"code\": \"BAD_USER_INPUT\"\n            }\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"a3ee4a85-5dfa-45dc-bb7a-e208b69c8514"},{"name":"now live graphql - Create a user","id":"d3a08da8-68e6-4046-98aa-b4129b4fe8d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($name:String!, $email:String!, $address:String!, $role:Boolean!){\n\tcreateUser(name: $name, email: $email, address: $address, role: $role) {\n\t\tsuccess\n\t\tmsg\n\t\tuser {\n\t\t\tid\n\t\t\tname\n\t\t\taddress\n\t\t\temail\n\t\t\trole\n\t\t}\n\t}\n}","variables":"{\n\t\"name\": \"Alverta Lang\",\n\t\"address\": \"51405 Zemlak Viaduct, Lake Alex 08214\",\n\t\"email\": \"Tillman.Rice@yahoo.com\",\n\t\"role\": true\n}"}},"url":"https://simple-user-cms.now.sh/api/graphql","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3a08da8-68e6-4046-98aa-b4129b4fe8d8"},{"name":"now live graphql - Remove a user","id":"001b2663-45f3-44ad-959e-955f20ed8e27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($id:ID!) {\n    removeUser(id: $id) {\n      success\n      msg\n      id\n    }\n}","variables":"{\n\t\"id\": \"user:545\"\n}"}},"url":"https://simple-user-cms.now.sh/api/graphql","urlObject":{"protocol":"https","path":["api","graphql"],"host":["simple-user-cms","now","sh"],"query":[],"variable":[]}},"response":[],"_postman_id":"001b2663-45f3-44ad-959e-955f20ed8e27"}],"id":"fd728ff2-b063-45de-938f-9f95dbfe7b1d","_postman_id":"fd728ff2-b063-45de-938f-9f95dbfe7b1d","description":""},{"name":"netlify","item":[{"name":"netlify dev graphql - user","id":"2a1512b4-5655-4c3f-ad56-e7451424449b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"Sam\"\n}"}},"url":"http://localhost:8888/.netlify/functions/graphql","urlObject":{"protocol":"http","port":"8888","path":[".netlify","functions","graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a1512b4-5655-4c3f-ad56-e7451424449b"},{"name":"netlify dev graphql - userList","id":"6fd2419c-88c1-4e2e-aea6-8124aec54560","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ($name: String) {\n\tuserList(name: $name) {\n\t\tid\n\t\tname\n\t\temail\n\t\taddress\n\t\trole\n\t}\n}","variables":"{\n\t\"name\": \"sam\"\n}"}},"url":"localhost:8888/.netlify/functions/graphql","urlObject":{"port":"8888","path":[".netlify","functions","graphql"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6fd2419c-88c1-4e2e-aea6-8124aec54560"},{"name":"netlify live graphql - Create a user","id":"a13894c4-608d-4395-8683-9c0a035ba496","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($name:String!, $email:String!, $address:String!, $role:Boolean!){\n\tcreateUser(name: $name, email: $email, address: $address, role: $role) {\n\t\tsuccess\n\t\tmsg\n\t\tuser {\n\t\t\tid\n\t\t\tname\n\t\t\taddress\n\t\t\temail\n\t\t\trole\n\t\t}\n\t}\n}","variables":"{\n\t\"name\": \"Alverta Lang\",\n\t\"address\": \"51405 Zemlak Viaduct, Lake Alex 08214\",\n\t\"email\": \"Tillman.Rice@yahoo.com\",\n\t\"role\": true\n}"}},"url":"https://simpleusercms-dralc.netlify.app/.netlify/functions/graphql","urlObject":{"protocol":"https","path":[".netlify","functions","graphql"],"host":["simpleusercms-dralc","netlify","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"a13894c4-608d-4395-8683-9c0a035ba496"},{"name":"netlify live graphql - Remove a user","id":"abb3cf8d-f995-4b13-9096-168c8384d5c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ($id:ID!) {\n    removeUser(id: $id) {\n      success\n      msg\n      id\n    }\n}","variables":"{\n\t\"id\": \"user:536\"\n}"}},"url":"https://simpleusercms-dralc.netlify.app/.netlify/functions/graphql","urlObject":{"protocol":"https","path":[".netlify","functions","graphql"],"host":["simpleusercms-dralc","netlify","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"abb3cf8d-f995-4b13-9096-168c8384d5c5"},{"name":"netlify live graphql - user","id":"39d568ff-04c6-44ff-80a3-deb08e3358c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query($name: String) {\n  user(name:$name) {\n    id\n    name\n    address\n    email\n    role\n  }\n}\n","variables":"{\n\t\"name\": \"sam\"\n}"}},"url":"https://simpleusercms-dralc.netlify.app/.netlify/functions/graphql","urlObject":{"protocol":"https","path":[".netlify","functions","graphql"],"host":["simpleusercms-dralc","netlify","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"39d568ff-04c6-44ff-80a3-deb08e3358c0"},{"name":"netlify live graphql - userList","id":"0c75e3e0-760a-4135-b460-c8afc53c9ee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ($name: String) {\n\tuserList(name: $name) {\n\t\tid\n\t\tname\n\t\temail\n\t\taddress\n\t\trole\n\t}\n}","variables":"{\n\t\"name\": \"samantha\"\n}"}},"url":"https://simpleusercms-dralc.netlify.app/.netlify/functions/graphql","urlObject":{"protocol":"https","path":[".netlify","functions","graphql"],"host":["simpleusercms-dralc","netlify","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c75e3e0-760a-4135-b460-c8afc53c9ee1"}],"id":"22d03a2d-d0da-4bcf-9159-7f3bdad7ee61","_postman_id":"22d03a2d-d0da-4bcf-9159-7f3bdad7ee61","description":""}],"id":"c65b15fe-e2ac-466b-94aa-dd558b68b102","_postman_id":"c65b15fe-e2ac-466b-94aa-dd558b68b102","description":""},{"name":"rest","item":[{"name":"add valid user http://localhost:3000/users/add/","event":[{"listen":"test","script":{"id":"86d2352a-2986-4d29-90aa-7a3457a50a79","exec":[""],"type":"text/javascript"}}],"id":"1f9720ae-ba5d-44d6-a4df-a8f22d1081c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"John","type":"text"},{"key":"email","value":"john@email.com","type":"text"},{"key":"address","value":"3 jump st, sydney","type":"text"},{"key":"role","value":"false","type":"text"}]},"url":"http://localhost:3000/users/add/","urlObject":{"protocol":"http","port":"3000","path":["users","add",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f9720ae-ba5d-44d6-a4df-a8f22d1081c0"},{"name":"add invalid user http://localhost:3000/users/add/","id":"11d7c48e-49d1-4f09-bbfa-7a9fe765d25b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Aloy","type":"text"},{"key":"role","value":"true","type":"text"}]},"url":"http://localhost:3000/users/add/","description":"<p>Some user data is missing in the submission to the endpoint. This returns an error message.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","add",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"11d7c48e-49d1-4f09-bbfa-7a9fe765d25b"},{"name":"delete a user id http://localhost:3000/users/remove","id":"49be6b1b-fd41-4b56-bacf-b0fa33704f8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","type":"text","value":"user:508"}]},"url":"http://localhost:3000/users/remove","description":"<p>To remove a user, obtain the id for a user first then pass it to this endpoint.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","remove"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"49be6b1b-fd41-4b56-bacf-b0fa33704f8d"},{"name":"get a user by name http://localhost:3000/users/get?name=","id":"4282fedc-04d7-43fc-b09d-23df38e9d59e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/users/get?name=John","urlObject":{"protocol":"http","port":"3000","path":["users","get"],"host":["localhost"],"query":[{"key":"name","value":"John"}],"variable":[]}},"response":[],"_postman_id":"4282fedc-04d7-43fc-b09d-23df38e9d59e"}],"id":"6b4f2c8c-1192-493f-95c8-6438386f49cd","_postman_id":"6b4f2c8c-1192-493f-95c8-6438386f49cd","description":""}]}