{"info":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","description":"<html><head></head><body><h1 id=\"api-url\">API url</h1>\n<p>The base URL for all API endpoints is <a href=\"https://api.codario.io/v1/\">https://api.codario.io/v1/</a></p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>To use this API, you must create your API Token. Do it on <a href=\"https://app.codario.io/user/security\">https://app.codario.io/user/security</a>.</p>\n<p>The token should be supplied in an <code>X-API-KEY</code> header.</p>\n<p>Otherwise, a 401 \"Unauthorized\" response will be returned.</p>\n<p>If a token is invalid, a 403 \"Forbidden\" response will be returned.</p>\n<h1 id=\"reference\">Reference</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"API url","slug":"api-url"},{"content":"Authorization","slug":"authorization"},{"content":"Reference","slug":"reference"}],"owner":"822540","collectionId":"17fd5661-41e0-4e12-8e24-f616f8a10974","publishedId":"SW18wauh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"418AC9"},"publishDate":"2019-11-14T08:36:43.000Z"},"item":[{"name":"User","item":[{"name":"Get me","id":"bf78c5aa-5094-4bea-938d-71a909acd03e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/me","description":"<p>Retrieves information about an authorized user.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["me"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"e7d737e0-2a21-416a-be18-1acc9e7c5dde","name":"Get me","originalRequest":{"method":"GET","header":[],"url":"https://api.codario.io/v1/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 10 Nov 2019 12:42:50 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Content-Length","value":"164"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": \"5P6BlaGO\",\n        \"email\": \"john.doe@mail.com\",\n        \"name\": \"John Doe\",\n        \"company\": \"Home Company\",\n        \"phone\": \"123-456-789\",\n        \"type\": \"freelancer\",\n        \"created_at\": \"2019-12-12 12:12\"\n    }\n}"}],"_postman_id":"bf78c5aa-5094-4bea-938d-71a909acd03e"},{"name":"Get workspaces","id":"23c6560b-0d4d-40cd-af83-6235cbd50964","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces","description":"<p>Retrieves list of available workspaces.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"266cb040-b634-4aab-8a41-6c7038177ab4","name":"Get workspaces","originalRequest":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 11 Nov 2019 09:37:12 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Content-Length","value":"574"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"workspaces\": [\r\n        {\r\n            \"id\": \"vgVxB597\",\r\n            \"name\": \"Personal Workspace\",\r\n            \"created_at\": \"2019-04-12 16:41\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"23c6560b-0d4d-40cd-af83-6235cbd50964"}],"id":"89adceee-4ca8-4848-9166-f0a3d35383a8","_postman_id":"89adceee-4ca8-4848-9166-f0a3d35383a8","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}}},{"name":"Workspaces","item":[{"name":"Get projects","id":"dc524f7e-24b8-439d-a566-bab738e468cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/projects","description":"<p>Retrieves information about all projects.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","projects"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"a546ab58-5c2d-4a0b-9c90-0036ae169846","name":"Get projects","originalRequest":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/id-xxxxx/projects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 10 Nov 2019 13:35:22 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"projects\": [\n        {\n            \"id\": \"KxP1E6sK\",\n            \"name\": \"Project 1\",\n            \"manager\": \"composer\",\n            \"git_path\": \"git@github.com:app-guard/demo-composer-app.git\",\n            \"main_branch\": \"master\",\n            \"root_folder\": \"app\",\n            \"is_public_statuspage_enabled\": true,\n            \"is_public_badge_enabled\": true,\n            \"health\": {\n                \"health_build\": {\n                    \"ok\": true,\n                    \"message\": \"\"\n                },\n                \"health_general\": {\n                    \"ok\": true,\n                    \"message\": \"\"\n                },\n                \"health_project_integration\": {\n                    \"ok\": true,\n                    \"message\": \"\"\n                }\n            },\n            \"tasks_for_inspection\": 1,\n            \"has_tasks_with_vulnerabilities\": true,\n            \"has_vulnerable_packages_without_tasks\": false,\n            \"created_at\": \"2018-12-12 12:12\"\n        }\n    ]\n}"}],"_postman_id":"dc524f7e-24b8-439d-a566-bab738e468cb"},{"name":"Get integrations","id":"b266374c-c6d3-4b7d-a45e-1d72c013195e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/integrations","description":"<p>Retrieves list of integrations.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","integrations"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"d64fb499-c9bd-4e0b-946b-ccc92f96a117","name":"Get integrations","originalRequest":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/id-xxxxx/integrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 11 Nov 2019 09:37:12 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Content-Length","value":"574"}],"cookie":[],"responseTime":null,"body":"{\n    \"services\": [\n        {\n            \"service\": \"asana\",\n            \"type\": \"project_management_system\",\n            \"alias\": \"asana-default\",\n            \"parameters\": {\n                \"host\": \"https://app.asana.com/api/1.0\"\n            }\n        }\n    ]\n}"}],"_postman_id":"b266374c-c6d3-4b7d-a45e-1d72c013195e"},{"name":"Get repositories","id":"7a02a1e6-64f6-45b4-953c-3271e812ee90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/repositories","description":"<p>Retrieves list of repositories for enabled 3rd-party integrations.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","repositories"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"b66155a2-bd9d-4891-b2d7-4d83e07c8ea3","name":"Get repositories","originalRequest":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/id-xxxxx/repositories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 10 Nov 2019 13:49:52 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"repos\": {\r\n        \"bitbucket\": {\r\n            \"list\": [\r\n                {\r\n                    \"id\": \"{01cad33c-964d-4c31-b11b-b8535b423d40}\",\r\n                    \"ssh\": \"git@bitbucket.org:john.doe/app.git\",\r\n                    \"url\": \"https://bitbucket.org/john.doe/app\",\r\n                    \"name\": \"john.doe/app\",\r\n                    \"writable\": true\r\n                }\r\n        },\r\n        \"github\": {\r\n            \"list\": [\r\n                {\r\n                    \"id\": 114107237,\r\n                    \"ssh\": \"git@github.com:app-guard/composer-demo.git\",\r\n                    \"url\": \"https://github.com/app-guard/composer-demo\",\r\n                    \"name\": \"app-guard/composer-demo\",\r\n                    \"writable\": true\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}"}],"_postman_id":"7a02a1e6-64f6-45b4-953c-3271e812ee90"},{"name":"Get tasks","id":"288e0d5d-ac7e-4a36-a13b-0c925d6bb27e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/tasks?project=xjdk2Jss&boundary_id=xik93Ksj&max_results=20&statuses=new_updates_available,ready_to_test,test_passed,test_failed,failed,closed","description":"<p>Retrieves information about all projects.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","tasks"],"host":["https://api.codario.io/v1"],"query":[{"description":{"content":"<p>The project ID. Use only to get tasks from a certain project.</p>\n","type":"text/plain"},"key":"project","value":"xjdk2Jss"},{"description":{"content":"<p>Needs to pagination. Use this param to get \"next\" page with results. Every response contains a value which should be used to get \"next\" page.</p>\n","type":"text/plain"},"key":"boundary_id","value":"xik93Ksj"},{"description":{"content":"<p>Number of tasks per one request. By default: 20, Max: 20.</p>\n","type":"text/plain"},"key":"max_results","value":"20"},{"description":{"content":"<p>The filter by statuses of tasks. By default returns all tasks.</p>\n","type":"text/plain"},"key":"statuses","value":"new_updates_available,ready_to_test,test_passed,test_failed,failed,closed"}],"variable":[]}},"response":[{"id":"bc239c48-7924-4ce3-8f42-5737051bd134","name":"Get tasks","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.codario.io/v1/workspaces/id-xxxxx/tasks?project=xjdk2Jss&boundary_id=xik93Ksj&max_results=20&statuses=new_updates_available,ready_to_test,test_passed,test_failed,failed,closed","host":["https://api.codario.io/v1"],"path":["workspaces","id-xxxxx","tasks"],"query":[{"key":"project","value":"xjdk2Jss","description":"The project ID. Use only to get tasks from a certain project."},{"key":"boundary_id","value":"xik93Ksj","description":"Needs to pagination. Use this param to get \"next\" page with results. Every response contains a value that should be used to get \"next\" page."},{"key":"max_results","value":"20","description":"Number of tasks per one request. By default: 20, Max: 20."},{"key":"statuses","value":"new_updates_available,ready_to_test,test_passed,test_failed,failed,closed","description":"The filter by statuses of tasks. By default returns all tasks."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 10 Nov 2019 13:37:26 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"tasks\": [\n        {\n            \"id\": \"Z9q0zeKQ\",\n            \"project\": {\n            \t\"id\": \"KxP1E6WK\",\n            \t\"name\": \"Project 1\"\n            },\n            \"status\": \"ready_to_test\",\n            \"ready_to_processing\": false,\n            \"processing\": false,\n            \"update_executed\": true,\n            \"update_from_vulnerable_version\": true,\n            \"commits\": [\n                \"72370a73a6573267597ca6a59dff20d854af4dd1\"\n            ],\n            \"created_at\": \"2019-12-12 15:24\"\n        },\n        {\n            \"id\": \"alO8lzOp\",\n            \"project\": {\n            \t\"id\": \"KQP136WK\",\n            \t\"name\": \"Project 2\"\n            },\n            \"status\": \"new_updates_available\",\n            \"ready_to_processing\": false,\n            \"processing\": false,\n            \"update_executed\": false,\n            \"update_from_vulnerable_version\": true,\n            \"commits\": [],\n            \"created_at\": \"2019-12-12 16:30\"\n        }\n    ],\n    \"next_boundary_id\": \"1oqZ3NOa\"\n}"}],"_postman_id":"288e0d5d-ac7e-4a36-a13b-0c925d6bb27e"},{"name":"Get task's dependencies","event":[{"listen":"prerequest","script":{"id":"75c160dc-0422-4981-abea-194a57d4d0fd","exec":[""],"type":"text/javascript"}}],"id":"374a9c9a-818c-47e3-95c5-f23e9afc0f65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/projects/[PROJECT_ID]/tasks/[TASK_ID]/dependencies","description":"<p>Retrieves all task's dependencies.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","projects","[PROJECT_ID]","tasks","[TASK_ID]","dependencies"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[{"id":"7be0f653-6e2e-4c92-88e0-f40a7eb8a32f","name":"Get task's dependencies","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[],"options":{"raw":{"language":"json"}}},"url":"https://api.codario.io/v1/workspaces/wid-xxxxx/projects/pid-xxxxx/task/tid-xxxxx/dependencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 11 Mar 2020 05:06:03 GMT"},{"key":"Server","value":"nginx/1.14.2"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"dependencies\": [\r\n        {\r\n            \"name\": \"psr/log\",\r\n            \"version\": \"dev-master 3490ba5\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"ralouphie/getallheaders\",\r\n            \"version\": \"2.0.5\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"psr/http-message\",\r\n            \"version\": \"dev-master f6561bf\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"guzzlehttp/psr7\",\r\n            \"version\": \"dev-master 7fa8852\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"guzzlehttp/promises\",\r\n            \"version\": \"dev-master 136531a\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"symfony/polyfill-mbstring\",\r\n            \"version\": \"dev-master 25b83a5\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"monolog/monolog\",\r\n            \"version\": \"1.10.0\",\r\n            \"patches\": [\r\n                {\r\n                    \"is_vulnerability\": true,\r\n                    \"name\": \"Header injection in NativeMailerHandler\",\r\n                    \"severity\": \"undefined\",\r\n                    \"description\": \"\",\r\n                    \"references\": {\r\n                        \"url\": \"https://github.com/Seldaek/monolog/pull/448#issuecomment-68208704\",\r\n                        \"name\": \"Header injection in NativeMailerHandler\"\r\n                    }\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"guzzlehttp/guzzle\",\r\n            \"version\": \"6.1.1\",\r\n            \"patches\": [\r\n                {\r\n                    \"is_vulnerability\": true,\r\n                    \"name\": \"CVE-2016-5385: HTTP Proxy header vulnerability\",\r\n                    \"severity\": \"undefined\",\r\n                    \"description\": \"\",\r\n                    \"references\": {\r\n                        \"url\": \"https://github.com/guzzle/guzzle/releases/tag/6.2.1\",\r\n                        \"name\": \"CVE-2016-5385: HTTP Proxy header vulnerability\"\r\n                    }\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"symfony/yaml\",\r\n            \"version\": \"v4.0.1\",\r\n            \"patches\": []\r\n        },\r\n        {\r\n            \"name\": \"symfony/console\",\r\n            \"version\": \"v4.0.2\",\r\n            \"patches\": []\r\n        }\r\n    ]\r\n}"}],"_postman_id":"374a9c9a-818c-47e3-95c5-f23e9afc0f65"},{"name":"Change task's state","event":[{"listen":"prerequest","script":{"id":"75c160dc-0422-4981-abea-194a57d4d0fd","exec":[""],"type":"text/javascript"}}],"id":"66bccba9-a2f4-4d6b-ae3f-7ed6d36ae604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","type":"text","value":"closed"}]},"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/projects/[PROJECT_ID]/tasks/[TASK_ID]","description":"<p>Change a state of task and execute the corresponding actions (specified in project configs).</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","projects","[PROJECT_ID]","tasks","[TASK_ID]"],"host":["https://api.codario.io/v1"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"3c2bee85-5b82-4974-8e96-3fbc850ee796","name":"Change state of a task","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"closed","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.codario.io/v1/workspaces/wid-xxxxx/projects/pid-xxxxx/task/tid-xxxxx"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 11 Mar 2020 05:06:03 GMT"},{"key":"Server","value":"nginx/1.14.2"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"message\": [\r\n        \"The task is now on \\\"Closed\\\" state, all customized events will be executed.\"\r\n    ]\r\n}"}],"_postman_id":"66bccba9-a2f4-4d6b-ae3f-7ed6d36ae604"}],"id":"558863c7-e5d3-495e-ae6b-01288f0a5b90","event":[{"listen":"prerequest","script":{"id":"50903faa-3f82-4dde-8955-2786d4c068be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a02a65c3-b95d-4ee6-a0f4-3af475220195","type":"text/javascript","exec":[""]}}],"_postman_id":"558863c7-e5d3-495e-ae6b-01288f0a5b90","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}}},{"name":"GIT repositories parser","item":[{"name":"Get branches","id":"539dc8fe-ce6d-4337-9bbc-063ed180e6f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/repository?action=get_branches&repository=git@github.com:app-guard/demo-composer-app.git","description":"<p>Retrieves list of repositories for enabled 3rd-party integrations.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","repository"],"host":["https://api.codario.io/v1"],"query":[{"description":{"content":"<p>Use \"git_branches\" value to get branches list.</p>\n","type":"text/plain"},"key":"action","value":"get_branches"},{"description":{"content":"<p>The git path. Use only ssh or https format.</p>\n","type":"text/plain"},"key":"repository","value":"git@github.com:app-guard/demo-composer-app.git"}],"variable":[]}},"response":[{"id":"082faf77-2f6d-4135-b6e3-2e796382262d","name":"Get branches","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.codario.io/v1/workspaces/id-xxxxx/repository?action=get_branches&repository=git@github.com:app-guard/demo-composer-app.git","host":["https://api.codario.io/v1"],"path":["workspaces","id-xxxxx","repository"],"query":[{"key":"action","value":"get_branches","description":"Use \"git_branches\" value to get branches list."},{"key":"repository","value":"git@github.com:app-guard/demo-composer-app.git","description":"The git path. Use only ssh or https format."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,x-access-token"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, OPTIONS"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 10 Nov 2019 13:57:38 GMT"},{"key":"Server","value":"nginx/1.10.3"},{"key":"Content-Length","value":"87"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"branches\":[\"master\",\"stage\"]}}"}],"_postman_id":"539dc8fe-ce6d-4337-9bbc-063ed180e6f5"},{"name":"Get available projects","id":"6e9f4cb1-c429-45e4-adce-08d673d7313e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.codario.io/v1/workspaces/[WORKSPACE_ID]/repository?action=get_all_available_types_of_projects&repository=git@github.com:app-guard/demo-composer-app.git&branch=master","description":"<p>Retrieves list of repositories for enabled 3rd-party integrations.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}},"urlObject":{"path":["workspaces","[WORKSPACE_ID]","repository"],"host":["https://api.codario.io/v1"],"query":[{"description":{"content":"<p>Use \"get_all_available_types_of_projects\" value to get all available project types.</p>\n","type":"text/plain"},"key":"action","value":"get_all_available_types_of_projects"},{"description":{"content":"<p>The git path. Use only ssh or https format.</p>\n","type":"text/plain"},"key":"repository","value":"git@github.com:app-guard/demo-composer-app.git"},{"description":{"content":"<p>The branch to detect all available project types.</p>\n","type":"text/plain"},"key":"branch","value":"master"}],"variable":[]}},"response":[{"id":"2145cefb-2c4b-4bc7-87e1-7aaea56d5414","name":"Get available projects","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.codario.io/v1/workspaces/id-xxxxx/repository?action=get_all_available_types_of_projects&repository=git@github.com:app-guard/demo-composer-app.git&branch=master","host":["https://api.codario.io/v1"],"path":["workspaces","id-xxxxx","repository"],"query":[{"key":"action","value":"get_all_available_types_of_projects","description":"Use \"get_all_available_types_of_projects\" value to get all available project types."},{"key":"repository","value":"git@github.com:app-guard/demo-composer-app.git","description":"The git path. Use only ssh or https format."},{"key":"branch","value":"master","description":"The branch to detect all available project types."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"options\":[\n    {\n        \"manager\": \"composer\",\n        \"manager_label\": \"Composer\",\n        \"root_folder\": \"composer-app\"\n    },\n    {\n        \"manager\": \"yarn\",\n        \"manager_label\": \"Yarn\",\n        \"root_folder\": \"yarn-1\"\n    }\n]}}"}],"_postman_id":"6e9f4cb1-c429-45e4-adce-08d673d7313e"}],"id":"3213997a-19a8-404b-85ff-fa0be3a8a682","_postman_id":"3213997a-19a8-404b-85ff-fa0be3a8a682","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}}},{"name":"Plugin","item":[{"name":"Get plugin project","id":"af2ed15f-6d7c-46ba-87e4-c80217b8b4fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-customer-secret"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.codario.io/v1/plugin/project/[PROJECT_ID]","description":"<ol>\n<li>Before making the GET request, you need to create a plugin based project. This can be done in codario.io</li>\n<li>Once the plugin project is created, a customer secret is automatically generated that is associated with the project. It can be found in \"Plugin Access\" tab in codario.io</li>\n<li>Capture the \"customerSecret\" and \"projectId\" for the respective plugin project, as it will be needed to authenticate the GET request.</li>\n<li>In the Postman collection, provide the necessary information in the request headers and url.</li>\n<li>In the request URL, replace <code>[PROJECT_ID]</code> with the actual project ID obtained in step 2.</li>\n<li>Add the \"customerSecret\" in \"value\" under authorization obtained in step 2.</li>\n</ol>\n","urlObject":{"path":["plugin","project","[PROJECT_ID]"],"host":["https://api.codario.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"af2ed15f-6d7c-46ba-87e4-c80217b8b4fa"}],"id":"78372460-167b-4914-b806-7394ea2e34e8","_postman_id":"78372460-167b-4914-b806-7394ea2e34e8","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"17fd5661-41e0-4e12-8e24-f616f8a10974","id":"17fd5661-41e0-4e12-8e24-f616f8a10974","name":"codario.io","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-KEY"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"f527bdf5-796b-471f-bca5-fcb493f50707","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"da64ef53-22b8-4557-a6ad-b42bba4e7802","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-url","value":"https://api.codario.io/v1"}]}