{"info":{"_postman_id":"78b107c3-901e-480b-89b5-909c69a929f5","name":"Simple Incident Response","description":"<html><head></head><body><p>These are the RESTful API and API calls used to support the Simple Incident Respnse tool at <a href=\"https://github.com/coretez/SIR\">https://github.com/coretez/SIR</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1117493","collectionId":"78b107c3-901e-480b-89b5-909c69a929f5","publishedId":"SVSHs9hS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF0000"},"publishDate":"2019-07-14T15:27:44.000Z"},"item":[{"name":"User","item":[{"name":"Get the user by ID","id":"d0fa11ff-4efa-4bab-a914-d3d1e75d4a22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseUrl}}/api/users/{{user _id}}","description":"<p>The _id is returned as part of the user.  Use this _Id as part of the get request to retreive this particular record. </p>\n","urlObject":{"path":["api","users","{{user _id}}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0fa11ff-4efa-4bab-a914-d3d1e75d4a22"},{"name":"Insert a User","id":"16f3baf7-b03b-4f3a-9d0e-8543dbf6728e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"url\": \"\",\n    \"username\": \"<user name>\",\n    \"password\": \"<stored as a hash>\",\n    \"email\": \"<email address of the user>\",\n    \"groups\": [\"<group1>\", \"<group2>\"]\n}"},"url":"{{baseUrl}}/api/users/","description":"<p>POST functuion that inserts the user.  </p>\n","urlObject":{"path":["api","users",""],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16f3baf7-b03b-4f3a-9d0e-8543dbf6728e"},{"name":"Delete a User by _Id","id":"4268a7f2-31e3-4c38-bedc-57a79f9cc2e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{baseUrl}}/api/users/{{ user _id }}","description":"<p>A user can be deleted by using their _Id record field as part fo the URL. On a successful DELETE, the system will respond with a 204 message. </p>\n","urlObject":{"path":["api","users","{{ user _id }}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4268a7f2-31e3-4c38-bedc-57a79f9cc2e8"},{"name":"List Users","id":"068d38d6-9d11-4eb2-8446-0f588b86165e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseUrl}}/api/users/","description":"<p>A GET to the base API path of users will return a list of users.</p>\n","urlObject":{"path":["api","users",""],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"068d38d6-9d11-4eb2-8446-0f588b86165e"},{"name":"Update part of user record.","id":"812acd77-0f16-4ec3-987d-0d888817fa82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"username\": \"<new user name>\"\n }"},"url":"{{baseUrl}}/api/users/{{ user _id }}","description":"<p>To upgrade part of the record,use the PATCH method with the _Id in the URL. The parts to change are placed in the body of the request.</p>\n","urlObject":{"path":["api","users","{{ user _id }}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"812acd77-0f16-4ec3-987d-0d888817fa82"},{"name":"Update entire record (replace)","id":"391cc84a-756a-4720-ae0c-e75d630cc5ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"groups\": [\n        \"<group3>\",\n        \"<group4>\"\n    ],\n    \"url\": \"\",\n    \"username\": \"<new user name>\",\n    \"password\": \"<new stored as a hash>\",\n    \"email\": \"<new email address of the user>\"\n}"},"url":"{{baseUrl}}/api/users/<user _id>","description":"<p>The PUT method will replace the entire object in the database. </p>\n","urlObject":{"path":["api","users","<user _id>"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"391cc84a-756a-4720-ae0c-e75d630cc5ca"}],"id":"80042a0d-1417-4852-bd89-689269a11f10","description":"<p>These are the CRUD API calls for the user model.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"url\": String,\n    \"username\": String,\n    “password”: String,\n    \"email\": String,\n    \"groups\": [String]\n}\n</code></pre>","_postman_id":"80042a0d-1417-4852-bd89-689269a11f10"},{"name":"Tickets","item":[{"name":"Insert a Ticket","id":"320bbac4-37c2-4812-be3b-916f6f4ca7eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"detection\": 1,\n    \"actor\": \"10.0.0.1\",\n    \"plan\": String,\n    \"file_set\": \"[]\",\n    \"date\": \"Sun, 22 Sep 2019 12:33:42 GMT\",\n    \"is_starred\": false,\n    \"subject\": \"Test\",\n    \"description\": \"Test description\",\n    \"severity\": \"Information\",\n    \"is_incident\": false,\n    \"is_major\": false,\n    \"status\": \"Open\",\n    \"confidentiality\": 1,\n    \"category\": 1,\n    \"opened_by\": 1,\n    \"concerned_business_lines\": \"[]\"\n}"},"url":"{{baseUrl}}/api/tickets/ ","urlObject":{"path":["api","tickets"," "],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"320bbac4-37c2-4812-be3b-916f6f4ca7eb"},{"name":"Delete a Ticket","id":"1e5c67d5-4dd7-454e-a760-6f35f5c8c0c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseUrl}}/api/tickets/ ","urlObject":{"path":["api","tickets"," "],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e5c67d5-4dd7-454e-a760-6f35f5c8c0c5"},{"name":"List Tickets","id":"0f792f23-4410-48df-ae8b-3f0945f4ff74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseUrl}}/dev/tickets/ ","urlObject":{"path":["dev","tickets"," "],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f792f23-4410-48df-ae8b-3f0945f4ff74"}],"id":"7f8bbf0c-890c-4531-9aca-c67b1a640b72","_postman_id":"7f8bbf0c-890c-4531-9aca-c67b1a640b72","description":""},{"name":"EventHealth","item":[{"name":"Get Health Events","id":"b8052d46-ea2e-4037-a219-71fd3a2ea42e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>Call to get Health Events</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b8052d46-ea2e-4037-a219-71fd3a2ea42e"},{"name":"Get Events","id":"cfeb03c8-e464-4746-8613-73785530338e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"cfeb03c8-e464-4746-8613-73785530338e"}],"id":"069e1e5f-a500-43f0-a45d-e84f542b0431","_postman_id":"069e1e5f-a500-43f0-a45d-e84f542b0431","description":""},{"name":"CustomerTokens","item":[{"name":"Insert Customer Token","id":"551819f7-7e24-4417-8f76-76eedbf1dda5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customerId\": \"TerpLab\",\n    \"applicaiton\": \"Fluency\",\n    \"token\": \"643216b6-a3de-4bc5-5e75-1b1e24827fe8\"\n}"},"url":"{{baseUrl}}/dev/customerKeys/","urlObject":{"path":["dev","customerKeys",""],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"551819f7-7e24-4417-8f76-76eedbf1dda5"},{"name":"List Customer Tokens","id":"60740332-9d3a-4fc9-9434-e252763e956a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/dev/customerKeys/","urlObject":{"path":["dev","customerKeys",""],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"60740332-9d3a-4fc9-9434-e252763e956a"}],"id":"e34e8b1f-7780-4ec1-b3a0-cca6f726d3b7","description":"<p>API Tokens that can be used to get data. </p>\n","_postman_id":"e34e8b1f-7780-4ec1-b3a0-cca6f726d3b7"}],"event":[{"listen":"prerequest","script":{"id":"7e276266-0cec-44b5-987d-3bb08c59ea69","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1f648023-c16f-40da-8755-2370c125b0cc","type":"text/javascript","exec":[""]}}]}