{"info":{"_postman_id":"3e9d68ee-c957-4488-b5d4-cf65db46961c","name":"OSP","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11324046","collectionId":"3e9d68ee-c957-4488-b5d4-cf65db46961c","publishedId":"Szzoaw1q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-22T15:38:55.000Z"},"item":[{"name":"Registration","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"d12fade8-b37f-43f1-9c72-27039191b90c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"username\":\"newuser2\",\n\"email\":\"newuser2@gmail.com\",\n\"password\":\"hello\",\n\"confirm_password\":\"hello\"\n}"},"url":"http://localhost:8000/api/token_auth/register/","description":"<p>API endpoint for user registration</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","token_auth","register",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d12fade8-b37f-43f1-9c72-27039191b90c"},{"name":"Login","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200, 401]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"5f1e0ef3-2193-44c2-afca-dc86e49f273f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"username\":\"admin\",\n\"password\":\"pass\"\n}"},"url":"http://localhost:8000/api/token_auth/token/","urlObject":{"protocol":"http","port":"8000","path":["api","token_auth","token",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f1e0ef3-2193-44c2-afca-dc86e49f273f"}],"id":"1ed9cc99-1832-430a-bac4-c0557813ab6d","event":[{"listen":"prerequest","script":{"id":"130feb87-47e2-4e5c-89fa-8f1e4f48a7b7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b2f7507a-93a3-4ae6-bce2-afb942b62c50","type":"text/javascript","exec":[""]}}],"_postman_id":"1ed9cc99-1832-430a-bac4-c0557813ab6d","description":""},{"name":"Information","item":[{"name":"User Information","event":[{"listen":"prerequest","script":{"id":"4abde703-8f89-43a3-bb69-3b09500ea784","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"13f020b3-438a-4340-b4e1-9057e092c899","exec":["if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"15ddb14a-9b28-4545-9b3d-6d363de4a8f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/info","urlObject":{"protocol":"http","port":"8000","path":["api","info"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"15ddb14a-9b28-4545-9b3d-6d363de4a8f1"},{"name":"Add Information","event":[{"listen":"test","script":{"id":"b342768a-c60a-42af-b415-f8325dd25f88","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 409]);","    })","}","","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"b8272b1f-9ae9-4e6b-9818-b413e1d32284","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Hello\",\n    \"user_type\":\"admin\",\n    \"zulip_id\": 270644\n}"},"url":"http://localhost:8000/api/info/","urlObject":{"protocol":"http","port":"8000","path":["api","info",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8272b1f-9ae9-4e6b-9818-b413e1d32284"},{"name":"User","event":[{"listen":"prerequest","script":{"id":"a38b2b77-bbef-418b-8be8-5a56d26f425d","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"0068f2e9-ea9c-41df-9232-8d86a069ec25","exec":["if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"1fbeb4c3-5540-40a8-b205-380ca7232c59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/user/","urlObject":{"protocol":"http","port":"8000","path":["api","user",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1fbeb4c3-5540-40a8-b205-380ca7232c59"}],"id":"a8e22afc-1b6f-40d6-ab5f-b369b1829e1c","_postman_id":"a8e22afc-1b6f-40d6-ab5f-b369b1829e1c","description":""},{"name":"Questions","item":[{"name":"Create new fields for a form","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"49d24487-04e0-475a-9cb0-f65843fad4b6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": 87,\n        \"label\": \"hola uyrsayei aa\",\n        \"description\": \"poiuytredgh98765r\",\n        \"data_type\": \"checkbox\",\n        \"order\": 1,\n        \"required\": false,\n        \"options\": [\"new\", \"new09\", \"new6783\", \"abccc\"],\n        \"forms\": [16]\n    },\n    {\n        \"label\": \"hola uyrsayeiaa ded89ay\",\n        \"description\": \"\",\n        \"data_type\": \"dropdown\",\n        \"order\": 2,\n        \"required\": false,\n        \"options\": [\"new\", \"new09\", \"new6783\", \"blalala\"],\n        \"forms\": [16]\n    },\n    {\n        \"label\": \"holaa\",\n        \"description\": \"poiuytrh98765r\",\n        \"data_type\": \"text\",\n        \"order\": 3,\n        \"required\": true,\n        \"forms\": [16]\n    }\n]"},"url":"http://localhost:8000/api/questions/?form_id=16","urlObject":{"protocol":"http","port":"8000","path":["api","questions",""],"host":["localhost"],"query":[{"key":"form_id","value":"16"}],"variable":[]}},"response":[],"_postman_id":"49d24487-04e0-475a-9cb0-f65843fad4b6"},{"name":"Get all fields of a specific form","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"ab44a802-f894-48d4-9c6d-a6f6de746795","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"label\": \"holaaa\",\n        \"description\": \"\",\n        \"data_type\": \"text\",\n        \"order\": 7,\n        \"required\": true\n    },\n    {\n        \"label\": \"hollalalallalaaaaaaaaaa\",\n        \"description\": \"\",\n        \"data_type\": \"char\",\n        \"order\": 7,\n        \"required\": false\n    },\n    {\n        \"label\": \"hola uyryei aa\",\n        \"description\": \"poiuytredgh98765r\",\n        \"data_type\": \"text\",\n        \"order\": 7,\n        \"required\": true\n    }\n]"},"url":"http://localhost:8000/api/questions/?form_id=1","urlObject":{"protocol":"http","port":"8000","path":["api","questions",""],"host":["localhost"],"query":[{"key":"form_id","value":"1"}],"variable":[]}},"response":[],"_postman_id":"ab44a802-f894-48d4-9c6d-a6f6de746795"}],"id":"bccc2034-f7d9-4981-9d3e-3f3043ac5c56","_postman_id":"bccc2034-f7d9-4981-9d3e-3f3043ac5c56","description":""},{"name":"Form","item":[{"name":"Create a Form","id":"fae4122b-fd56-4aeb-9771-97b05ff40a82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new form 2\",\n    \"description\": \"this is a nice description\",\n    \"target_user\": \"all\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/form/","urlObject":{"protocol":"http","port":"8000","path":["api","form",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fae4122b-fd56-4aeb-9771-97b05ff40a82"},{"name":"Get forms list","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"c0a9465b-ccef-482c-b2b3-3ad3bbb345fa","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/form/?status=False","urlObject":{"protocol":"http","port":"8000","path":["api","form",""],"host":["localhost"],"query":[{"key":"status","value":"False"}],"variable":[]}},"response":[],"_postman_id":"c0a9465b-ccef-482c-b2b3-3ad3bbb345fa"},{"name":"Update a form","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"71dce6ce-8b6c-49c4-bdc2-4cbf8aab8fba","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"change name\"\n}"},"url":"http://localhost:8000/api/form/2/?status=False","urlObject":{"protocol":"http","port":"8000","path":["api","form","2",""],"host":["localhost"],"query":[{"key":"status","value":"False"}],"variable":[]}},"response":[],"_postman_id":"71dce6ce-8b6c-49c4-bdc2-4cbf8aab8fba"},{"name":"Delete a Form","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","if (pm.request.method === 'DELETE') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([204]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"ff60b388-ddaa-495d-b6b7-c8b00466629d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/form/4/?status=False","urlObject":{"protocol":"http","port":"8000","path":["api","form","4",""],"host":["localhost"],"query":[{"key":"status","value":"False"}],"variable":[]}},"response":[],"_postman_id":"ff60b388-ddaa-495d-b6b7-c8b00466629d"}],"id":"e3bb368f-43e0-4f12-b71c-214e96da7e76","_postman_id":"e3bb368f-43e0-4f12-b71c-214e96da7e76","description":""},{"name":"Answers","item":[{"name":"List answers for a specific form and specific user","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"ed0a851a-81aa-4966-8a48-e08d327da259","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/answers/?form_id=47","urlObject":{"protocol":"http","port":"8000","path":["api","answers",""],"host":["localhost"],"query":[{"key":"form_id","value":"47"}],"variable":[]}},"response":[],"_postman_id":"ed0a851a-81aa-4966-8a48-e08d327da259"},{"name":"Add answers","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"058260fc-e6d3-41bc-9d3c-86a0cbb21268","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"form\": 48,\n    \"answers\": [{\n        \"question\": 10,\n        \"value\": \"newdfgdgf\"\n    }]\n}"},"url":"http://localhost:8000/api/feedback/","urlObject":{"protocol":"http","port":"8000","path":["api","feedback",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"058260fc-e6d3-41bc-9d3c-86a0cbb21268"}],"id":"eb31760d-e3a4-4b6a-8dbb-c9c9d233fc58","_postman_id":"eb31760d-e3a4-4b6a-8dbb-c9c9d233fc58","description":""},{"name":"Form Feedback","item":[{"name":"Get list of form feedback","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"3390187b-30af-4e88-8995-d1aaf42b0d9f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"form\": 48,\n    \"answers\": [{\n        \"question\": 10,\n        \"value\": \"newdfgdgf\"\n    }]\n}"},"url":"http://localhost:8000/api/feedback/?form_id=48","urlObject":{"protocol":"http","port":"8000","path":["api","feedback",""],"host":["localhost"],"query":[{"key":"form_id","value":"48"}],"variable":[]}},"response":[],"_postman_id":"3390187b-30af-4e88-8995-d1aaf42b0d9f"}],"id":"e0b2d588-2c2c-45bd-aaf0-d8099cd04312","_postman_id":"e0b2d588-2c2c-45bd-aaf0-d8099cd04312","description":""},{"name":"ZulipStat","item":[{"name":"Get you Stats","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"0aceec36-33f7-402a-9cee-54daaecea31a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"label\": \"few new fields\",\n        \"description\": \"poiuytredgh98765r\",\n        \"data_type\": \"checkbox\",\n        \"order\": 1,\n        \"required\": false,\n        \"options\": [\"new\", \"new09\", \"new6783\", \"abccc\"],\n        \"forms\": [47]\n    },\n    {\n        \"label\": \"hola yayyayyy\",\n        \"description\": \"\",\n        \"data_type\": \"dropdown\",\n        \"order\": 5,\n        \"required\": false,\n        \"options\": [\"new\", \"new09\", \"new6783\", \"blalala\"],\n        \"forms\": [48]\n    },\n    {\n        \"label\": \"holaa\",\n        \"description\": \"poiuytrh98765r\",\n        \"data_type\": \"text\",\n        \"order\": 6,\n        \"required\": true,\n        \"forms\": [48]\n    },\n    {\n        \"label\": \"holaa\",\n        \"description\": \"poiuytrh98765r\",\n        \"data_type\": \"char\",\n        \"order\": 7,\n        \"required\": true,\n        \"forms\": [48]\n    }\n]"},"url":"http://localhost:8000/api/zulip_stat/","urlObject":{"protocol":"http","port":"8000","path":["api","zulip_stat",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0aceec36-33f7-402a-9cee-54daaecea31a"},{"name":"Update your Stats","event":[{"listen":"test","script":{"id":"b7f93d2c-9352-49fa-b97a-c9299fc0e631","exec":["if (pm.request.method === 'POST') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([201, 400]);","    })   ","}","if (pm.request.method === 'GET') {","    pm.test(\"Status code\", function() {","        pm.expect(pm.response.code).to.be.oneOf([200]);","    })","}","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\");","});"],"type":"text/javascript"}}],"id":"4d66b39c-bd4a-4a6a-87a0-710463962eca","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/zulip_stat/","urlObject":{"protocol":"http","port":"8000","path":["api","zulip_stat",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d66b39c-bd4a-4a6a-87a0-710463962eca"}],"id":"8a347926-fd8a-4669-a558-29a7b168209b","_postman_id":"8a347926-fd8a-4669-a558-29a7b168209b","description":""}],"event":[{"listen":"prerequest","script":{"id":"119b5877-1ed6-4703-82b4-5cdaa6e5c03d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"21f71360-bc39-4e8b-b3c5-eae05d7a3b50","type":"text/javascript","exec":["// if (pm.request.method === 'POST') {","//     pm.test(\"Status code\", function() {","//         pm.expect(pm.response.code).to.be.oneOf([201, 400]);","//     })   ","// }","// if (pm.request.method === 'GET') {","//     pm.test(\"Status code\", function() {","//         pm.expect(pm.response.code).to.be.oneOf([200]);","//     })","// }","// pm.test(\"Content-Type is present\", function () {","//     pm.response.to.have.header(\"Content-Type\");","// });"]}}]}