{ "info" : { "name" : "examples-graphql-users", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { }, "version" : "0.0.1" }, "item" : [ { "name" : "users", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "name" : "GET /users/:id", "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"GET requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - user", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "body" : "{\n \"id\" : \"50997b47-7acb-47ae-903e-13ce50349e0b\",\n \"status\" : \"inactive\",\n \"email\" : \"53f972fde761\",\n \"name\" : \"30c477ca4bb0\"\n}", "code" : 200 }, { "name" : "Example 404 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "code" : 404 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"status\" : \"active\",\n \"email\" : \"5c6f34aece4b\",\n \"name\" : \"33638e8b02b2\"\n}", "mode" : "raw" } }, "name" : "POST /users", "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"POST requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 201 - user", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"status\" : \"active\",\n \"email\" : \"5c6f34aece4b\",\n \"name\" : \"33638e8b02b2\"\n}", "mode" : "raw" } }, "body" : "{\n \"id\" : \"e79ca7be-429c-4be5-aeaa-f9142169b718\",\n \"status\" : \"inactive\",\n \"email\" : \"4372f9da3189\",\n \"name\" : \"337f842cbdfb\"\n}", "code" : 201 }, { "name" : "Example 422 - [string]", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"status\" : \"active\",\n \"email\" : \"5c6f34aece4b\",\n \"name\" : \"33638e8b02b2\"\n}", "mode" : "raw" } }, "body" : "[ \"8b691997f1cf\" ]", "code" : 422 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "PATCH", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"discriminator\" : \"status\",\n \"status\" : \"active\"\n}", "mode" : "raw" } }, "name" : "PATCH /users", "response" : [ { "name" : "Example 200 - user", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "PATCH", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"discriminator\" : \"status\",\n \"status\" : \"active\"\n}", "mode" : "raw" } }, "body" : "{\n \"id\" : \"1c4aab7c-a5b3-41f9-ad01-6ad02a7a19b1\",\n \"status\" : \"inactive\",\n \"email\" : \"54bdaf5fa07a\",\n \"name\" : \"609a7d7c976d\"\n}", "code" : 200 }, { "name" : "Example 422 - [string]", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users", "host" : [ "{{BASE_URL}}" ], "path" : [ "users" ], "query" : [ ], "variable" : [ ] }, "method" : "PATCH", "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"discriminator\" : \"status\",\n \"status\" : \"active\"\n}", "mode" : "raw" } }, "body" : "[ \"bccbaf7bcbdc\" ]", "code" : 422 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "DELETE", "header" : [ ] }, "name" : "DELETE /users/:id", "response" : [ { "name" : "Example 204 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "DELETE", "header" : [ ] }, "code" : 204 }, { "name" : "Example 404 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/users/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "users", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: uuid | Required: true" }, "disabled" : false } ] }, "method" : "DELETE", "header" : [ ] }, "code" : 404 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "", "type" : "string" } ] }