{ "info" : { "name" : "state-example", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { "content" : "Sample API to play with Apibuilder" }, "version" : "0.0.5-dev" }, "item" : [ { "name" : "healthchecks", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "header" : [ ] }, "name" : "GET /_internal_/healthcheck", "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 - healthcheck", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "header" : [ ] }, "body" : "{\n \"status\" : \"healthy\"\n}", "code" : 200 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/test_form_params_json", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", "test_form_params_json" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "header" : [ ] }, "name" : "POST /_internal_/healthcheck/test_form_params_json", "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"POST requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 204 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/test_form_params_json", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", "test_form_params_json" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "header" : [ ] }, "code" : 204 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "name" : "GET /_internal_/healthcheck/: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 - healthcheck", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "body" : "{\n \"status\" : \"healthy\"\n}", "code" : 200 }, { "name" : "Example 400 - error", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "body" : "{\n \"code\" : 1,\n \"message\" : \"c8717656258c\",\n \"details\" : \"1ce454fc6be6\"\n}", "code" : 400 }, { "name" : "Example 401 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "code" : 401 }, { "name" : "Example 403 - string", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "body" : "\"d950cb11b36f\"", "code" : 403 }, { "name" : "Example 404 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/_internal_/healthcheck/:id", "host" : [ "{{BASE_URL}}" ], "path" : [ "_internal_", "healthcheck", ":id" ], "query" : [ ], "variable" : [ { "key" : "id", "value" : "{{id}}", "description" : { "content" : "Type: integer | Required: true" }, "disabled" : false } ] }, "method" : "GET", "header" : [ ] }, "code" : 404 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "https://mkows.github.io", "type" : "string" } ] }