{"info":{"_postman_id":"dfe82f25-7cf1-4d6c-8a65-a52c98d7f5ed","name":"reaction types","description":"<html><head></head><body><p>A collection with requests for <code>/reaction-types</code> endpoint.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13348269","collectionId":"dfe82f25-7cf1-4d6c-8a65-a52c98d7f5ed","publishedId":"UV5WCdMP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-10-15T20:36:25.000Z"},"item":[{"name":"Get All Reaction Types","id":"ddffd52a-4104-4692-ab9a-d0c8c2b34c71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/reaction-types","description":"<h2 id=\"response\">Response</h2>\n<hr />\n<p>List of reaction type details where each list item contains:</p>\n<ul>\n<li><code>reaction_type_id</code></li>\n<li><code>reaction_type</code></li>\n</ul>\n","urlObject":{"path":["reaction-types"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"48e72e97-6510-4fa4-abab-5a7880ebb0f2","name":"Mock Get All Reaction Types","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/reaction-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"329"},{"key":"ETag","value":"W/\"149-W00NIX+QBTAT4Tv1vNt9V31tTBU\""},{"key":"Date","value":"Fri, 15 Oct 2021 20:32:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Success\"\n    },\n    \"body\": [\n        {\n            \"reaction_type_id\": 1,\n            \"reaction_type\": \"Laugh\"\n        },\n        {\n            \"reaction_type_id\": 2,\n            \"reaction_type\": \"Sad\"\n        },\n        {\n            \"reaction_type_id\": 3,\n            \"reaction_type\": \"Angry\"\n        },\n        {\n            \"reaction_type_id\": 4,\n            \"reaction_type\": \"Like\"\n        },\n        {\n            \"reaction_type_id\": 5,\n            \"reaction_type\": \"Love\"\n        },\n        {\n            \"reaction_type_id\": 6,\n            \"reaction_type\": \"Care\"\n        }\n    ]\n}"}],"_postman_id":"ddffd52a-4104-4692-ab9a-d0c8c2b34c71"},{"name":"Get Reaction Type By Id","id":"e2085a04-60d1-45ac-99d5-6345a077dd86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/reaction-types/5","description":"<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li><code>reaction_type_id</code></li>\n<li><code>reaction_type</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"dfe82f25-7cf1-4d6c-8a65-a52c98d7f5ed","id":"dfe82f25-7cf1-4d6c-8a65-a52c98d7f5ed","name":"reaction types","type":"collection"}},"urlObject":{"path":["reaction-types","5"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"88dedd0c-a57c-4d0b-b45b-bfa096f06e52","name":"Mock Get Reaction Type By Id","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/reaction-types/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-+PrJKyEPnU3Y1+2wfdQeYMgwXKs\""},{"key":"Date","value":"Fri, 15 Oct 2021 20:32:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Success\"\n    },\n    \"body\": {\n        \"reaction_type_id\": 5,\n        \"reaction_type\": \"Love\"\n    }\n}"}],"_postman_id":"e2085a04-60d1-45ac-99d5-6345a077dd86"},{"name":"Add A Reaction Type","id":"aa72de6f-fa40-427d-9eeb-f06d294f717f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reaction_type\":\"Laugh\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/reaction-types","description":"<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li><code>reaction_type_id</code> New reaction type's id.</li>\n<li><code>affected_rows</code> Should be 1.</li>\n</ul>\n","urlObject":{"path":["reaction-types"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"716ef8d0-6b94-49f5-92ec-84b62779c8d8","name":"Mock Add A Reaction Type","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reaction_type\":\"Laugh\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/reaction-types"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"110"},{"key":"ETag","value":"W/\"6e-+bSf+B7YrlRACZWwLpQ5johrgSA\""},{"key":"Date","value":"Fri, 15 Oct 2021 20:29:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Reaction type was created!\"\n    },\n    \"body\": {\n        \"reaction_type_id\": 1,\n        \"affected_rows\": 1\n    }\n}"}],"_postman_id":"aa72de6f-fa40-427d-9eeb-f06d294f717f"},{"name":"Update A Reaction Type","id":"2f108c20-5a6e-4c7a-84ab-e64648e180e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reaction_type\":\"Sad\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/reaction-types/2","description":"<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li>rows_matched</li>\n<li>rows_changed</li>\n<li>info</li>\n</ul>\n<p><em><strong>Note</strong></em> : <code>message</code> header indicates result.</p>\n","urlObject":{"path":["reaction-types","2"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f1e8a69c-246d-4f73-b873-faf9809e4a29","name":"Mock Update A Reaction Type","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reaction_type\":\"Unlike\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/reaction-types/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"163"},{"key":"ETag","value":"W/\"a3-HQB2tSp+yeZxoSwiQF4ayICTgbs\""},{"key":"Date","value":"Fri, 15 Oct 2021 20:31:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Reaction type updated successfully\"\n    },\n    \"body\": {\n        \"rows_matched\": 1,\n        \"rows_changed\": 1,\n        \"info\": \"Rows matched: 1  Changed: 1  Warnings: 0\"\n    }\n}"}],"_postman_id":"2f108c20-5a6e-4c7a-84ab-e64648e180e6"},{"name":"Delete A Reaction Type","id":"a8499f3f-d1af-4dfc-b86e-c0f392bc4cc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{base_url}}/reaction-types/8","description":"<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li>rows_removed</li></ul>\n\n<p><em><strong>Note</strong></em> : <code>message</code> header indicates result.</p>\n","urlObject":{"path":["reaction-types","8"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"31caf465-55aa-42a5-ab78-23ccd5fa4da1","name":"Mock Delete A Reaction Type","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/reaction-types/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-ExayU9pwRNs1DR3GEXJi/0dWRT4\""},{"key":"Date","value":"Fri, 15 Oct 2021 20:32:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Reaction type has been deleted\"\n    },\n    \"body\": {\n        \"rows_removed\": 1\n    }\n}"}],"_postman_id":"a8499f3f-d1af-4dfc-b86e-c0f392bc4cc5"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"3d223ee1-8f64-49e8-8d4f-1b48a52fc58e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bfb7d4a7-5970-4b6b-a96a-cd746453ef5c","type":"text/javascript","exec":[""]}}]}