{"info":{"_postman_id":"03f1bdb9-58f3-4903-9946-330de91985ea","name":"Aviation Microservices API","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This template guides you through CRUD operations (GET, POST, PUT, DELETE), variables, and tests.</p>\n<h2 id=\"🔖-how-to-use-this-template\">🔖 <strong>How to use this template</strong></h2>\n<h4 id=\"step-1-send-requests\"><strong>Step 1: Send requests</strong></h4>\n<p>RESTful APIs allow you to perform CRUD operations using the POST, GET, PUT, and DELETE HTTP methods.</p>\n<p>This collection contains each of these <a href=\"https://learning.postman.com/docs/sending-requests/requests/\">request</a> types. Open each request and click \"Send\" to see what happens.</p>\n<h4 id=\"step-2-view-responses\"><strong>Step 2: View responses</strong></h4>\n<p>Observe the response tab for status code (200 OK), response time, and size.</p>\n<h4 id=\"step-3-send-new-body-data\"><strong>Step 3: Send new Body data</strong></h4>\n<p>Update or add new data in \"Body\" in the POST request. Typically, Body data is also used in PUT request.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"name\": \"Add your name in the body\"\n}\n\n</code></pre><h4 id=\"step-4-update-the-variable\"><strong>Step 4: Update the variable</strong></h4>\n<p>Variables enable you to store and reuse values in Postman. We have created a <a href=\"https://learning.postman.com/docs/sending-requests/variables/\">variable</a> called <code>base_url</code> with the sample request <a href=\"https://postman-api-learner.glitch.me\">https://postman-api-learner.glitch.me</a>. Replace it with your API endpoint to customize this collection.</p>\n<h4 id=\"step-5-add-tests-in-the-scripts-tab\"><strong>Step 5: Add tests in the \"Scripts\" tab</strong></h4>\n<p>Adding tests to your requests can help you confirm that your API is working as expected. You can write test scripts in JavaScript and view the output in the \"Test Results\" tab.</p>\n<img src=\"https://content.pstmn.io/fa30ea0a-373d-4545-a668-e7b283cca343/aW1hZ2UucG5n\" alt=\"\" height=\"1530\" width=\"2162\">\n\n<h2 id=\"💪-pro-tips\">💪 Pro tips</h2>\n<ul>\n<li><p>Use folders to group related requests and organize the collection.</p>\n</li>\n<li><p>Add more <a href=\"https://learning.postman.com/docs/writing-scripts/intro-to-scripts/\">scripts</a> to verify if the API works as expected and execute workflows.</p>\n</li>\n</ul>\n<h2 id=\"💡related-templates\">💡Related templates</h2>\n<p><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API testing basics</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API documentation</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">Authorization methods</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"31979006","collectionId":"03f1bdb9-58f3-4903-9946-330de91985ea","publishedId":"2sA3kUG2Ez","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-19T21:23:50.000Z"},"item":[{"name":"Flight Service","item":[{"name":"airplanes","item":[{"name":"get-all-planes","id":"15c98e3b-b9fa-423f-a0b2-1d12c343121d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airplanes","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airplanes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"15c98e3b-b9fa-423f-a0b2-1d12c343121d"},{"name":"get-plane-by-id","id":"a6470a7c-c90d-4de5-bdbb-6045cdf0e869","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airplanes/4","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airplanes","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6470a7c-c90d-4de5-bdbb-6045cdf0e869"},{"name":"create-airplane","id":"6139285a-0237-4cf4-a371-6cf104029b89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbus69","type":"text"},{"key":"capacity","value":"120","type":"text"}]},"url":"http://localhost:3000/api/v1/airplanes","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airplanes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6139285a-0237-4cf4-a371-6cf104029b89"},{"name":"update-airplane","id":"d9ee2bb4-60b9-4dc3-badc-50af167c8dd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"capacity","value":"1000","type":"text"}]},"url":"http://localhost:3000/api/v1/airplanes/4","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airplanes","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9ee2bb4-60b9-4dc3-badc-50af167c8dd3"},{"name":"delete-airplane","id":"3c36303b-df81-4700-8e86-37652e84dc36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"capacity","value":"1000","type":"text"}]},"url":"http://localhost:3000/api/v1/airplanes/6","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airplanes","6"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c36303b-df81-4700-8e86-37652e84dc36"}],"id":"e4447ff4-654b-4923-a67d-3d5b58ec2a81","_postman_id":"e4447ff4-654b-4923-a67d-3d5b58ec2a81","description":""},{"name":"cities","item":[{"name":"create-city","id":"1e6fc1af-a96b-4c6e-8962-e95e954d2094","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"Bengaluru","type":"text"}]},"url":"http://localhost:3000/api/v1/cities","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cities"],"host":["localhost"],"query":[{"disabled":true,"key":"capacity","value":"699"}],"variable":[]}},"response":[{"id":"dd29f10d-2241-4d6c-bab5-3909b5128bfd","name":"create-city","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"Patna","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v1/cities","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","cities"],"query":[{"key":"capacity","value":"699","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"180"},{"key":"ETag","value":"W/\"b4-hc9QKoZd9u3KnJ/JTHSAKYrLjmQ\""},{"key":"Date","value":"Mon, 15 Jul 2024 09:36:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 8,\n        \"name\": \"Patna\",\n        \"updatedAt\": \"2024-07-15T09:36:36.022Z\",\n        \"createdAt\": \"2024-07-15T09:36:36.022Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"1e6fc1af-a96b-4c6e-8962-e95e954d2094"},{"name":"delete-city","id":"8db49bb9-e5cf-4f95-a240-05db0b91264b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"BNB","type":"text"}]},"url":"http://localhost:3000/api/v1/cities/8","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cities","8"],"host":["localhost"],"query":[{"disabled":true,"key":"capacity","value":"699"}],"variable":[]}},"response":[{"id":"e9ca7d26-7b34-40ed-a486-d73aa31fdffe","name":"delete-city","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"BNB","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v1/cities/8","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","cities","8"],"query":[{"key":"capacity","value":"699","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"ETag","value":"W/\"50-SgVckOePZTAAuBg6e8nc6YpxbOI\""},{"key":"Date","value":"Mon, 15 Jul 2024 09:39:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": 1,\n    \"error\": {}\n}"}],"_postman_id":"8db49bb9-e5cf-4f95-a240-05db0b91264b"},{"name":"get-all-cities","id":"71293d65-754d-4614-adff-86112e4c2d6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"BNB","type":"text"}]},"url":"http://localhost:3000/api/v1/cities","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cities"],"host":["localhost"],"query":[{"disabled":true,"key":"capacity","value":"699"}],"variable":[]}},"response":[{"id":"95403e5e-7f62-4653-b767-e8d0cae5816a","name":"get-all-cities","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"BNB","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v1/cities","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","cities"],"query":[{"key":"capacity","value":"699","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"603"},{"key":"ETag","value":"W/\"25b-i4VbNkcCQESyGykyvnjyAyjepXM\""},{"key":"Date","value":"Mon, 15 Jul 2024 09:34:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Bengaluru\",\n            \"createdAt\": \"2024-07-15T07:33:41.000Z\",\n            \"updatedAt\": \"2024-07-15T07:33:41.000Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Mumbai\",\n            \"createdAt\": \"2024-07-15T07:35:07.000Z\",\n            \"updatedAt\": \"2024-07-15T07:35:07.000Z\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"New Delhi\",\n            \"createdAt\": \"2024-07-15T07:35:18.000Z\",\n            \"updatedAt\": \"2024-07-15T07:35:18.000Z\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Indore\",\n            \"createdAt\": \"2024-07-15T07:35:27.000Z\",\n            \"updatedAt\": \"2024-07-15T07:35:27.000Z\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Varanasi\",\n            \"createdAt\": \"2024-07-15T07:36:30.000Z\",\n            \"updatedAt\": \"2024-07-15T07:36:30.000Z\"\n        }\n    ],\n    \"error\": {}\n}"}],"_postman_id":"71293d65-754d-4614-adff-86112e4c2d6c"},{"name":"update-city","id":"13d886f4-fa75-4b4d-9c5e-00dc076a1b27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"Bhopal","type":"text"}]},"url":"http://localhost:3000/api/v1/cities/8","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cities","8"],"host":["localhost"],"query":[{"disabled":true,"key":"name","value":"Bhopal"}],"variable":[]}},"response":[{"id":"f0234eb9-6476-401f-926c-572fbad7f99d","name":"update-city","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"modelNumber","value":"airbusss","type":"text","disabled":true},{"key":"capacity","value":"599","type":"text","disabled":true},{"key":"name","value":"Bhopal","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v1/cities/8","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","cities","8"],"query":[{"key":"name","value":"Bhopal","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"ETag","value":"W/\"52-mtHemA3fDTsz5a63AHS9S94NbSY\""},{"key":"Date","value":"Mon, 15 Jul 2024 09:37:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": [\n        1\n    ],\n    \"error\": {}\n}"}],"_postman_id":"13d886f4-fa75-4b4d-9c5e-00dc076a1b27"}],"id":"2c4d6e16-e94e-4668-b008-4d0c0c431f5a","_postman_id":"2c4d6e16-e94e-4668-b008-4d0c0c431f5a","description":""},{"name":"airports","item":[{"name":"get-all-airports","id":"fd622088-1fd8-4ff7-a30f-62cff816f4fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airports","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airports"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1b92a058-6931-4c3f-a3fa-afe9447def64","name":"get-all-airports","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airports"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"234"},{"key":"ETag","value":"W/\"ea-kmDgr7V1D8WFuiEXikJ+s5UTwHE\""},{"key":"Date","value":"Mon, 15 Jul 2024 18:53:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Kempegowda Airport\",\n            \"code\": \"BLR\",\n            \"address\": null,\n            \"cityId\": 1,\n            \"createdAt\": \"2024-07-15T13:00:01.000Z\",\n            \"updatedAt\": \"2024-07-15T13:00:01.000Z\"\n        }\n    ],\n    \"error\": {}\n}"}],"_postman_id":"fd622088-1fd8-4ff7-a30f-62cff816f4fc"},{"name":"create-airport","id":"a463ac33-46a2-4e11-9218-ebadd37aaa2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"IGI Airport","type":"text"},{"key":"cityId","value":"3","type":"text"},{"key":"code","value":"DEL","type":"text"}]},"url":"http://localhost:3000/api/v1/airports","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airports"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1a4737ed-4968-4873-8100-79e5848af924","name":"create-airport","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"IGI Airport","type":"text"},{"key":"cityId","value":"3","type":"text"},{"key":"code","value":"DEL","type":"text"}]},"url":"http://localhost:3000/api/v1/airports"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"212"},{"key":"ETag","value":"W/\"d4-SD5BCXcNk7bPAzpBAmzghR3YO2A\""},{"key":"Date","value":"Mon, 15 Jul 2024 18:59:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"name\": \"IGI Airport\",\n        \"code\": \"DEL\",\n        \"cityId\": \"3\",\n        \"updatedAt\": \"2024-07-15T18:59:35.327Z\",\n        \"createdAt\": \"2024-07-15T18:59:35.327Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"a463ac33-46a2-4e11-9218-ebadd37aaa2d"},{"name":"delete-airport","id":"a4bc992d-8460-46a9-8c8d-dce2d2d4b1d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"LBS Airport","type":"text"},{"key":"cityId","value":"5","type":"text"},{"key":"code","value":"VNS","type":"text"}]},"url":"http://localhost:3000/api/v1/airports/5","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airports","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ae2d6308-a1e0-47aa-be6e-43c0b8ab46b8","name":"delete-airport","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"LBS Airport","type":"text"},{"key":"cityId","value":"5","type":"text"},{"key":"code","value":"VNS","type":"text"}]},"url":"http://localhost:3000/api/v1/airports/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"ETag","value":"W/\"50-SgVckOePZTAAuBg6e8nc6YpxbOI\""},{"key":"Date","value":"Mon, 15 Jul 2024 19:03:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": 1,\n    \"error\": {}\n}"}],"_postman_id":"a4bc992d-8460-46a9-8c8d-dce2d2d4b1d9"},{"name":"update-airport","id":"66b3eda0-d4c8-4b81-a4b7-259c0faaad73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"6","type":"text","disabled":true},{"key":"name","value":"MA Airport","type":"text"},{"key":"code","value":"BH","type":"text"},{"key":"cityId","value":"9","type":"text"},{"key":"address","value":"Carbide Factory","type":"text"}]},"url":"http://localhost:3000/api/v1/airports/6","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airports","6"],"host":["localhost"],"query":[{"disabled":true,"key":"id","value":"6"}],"variable":[]}},"response":[{"id":"1d630a21-6bf1-4156-8c52-89ca3e479f27","name":"update-airport","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"6","type":"text","disabled":true},{"key":"name","value":"MA Airport","type":"text"},{"key":"code","value":"BH","type":"text"},{"key":"cityId","value":"9","type":"text"},{"key":"address","value":"Carbide Factory","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v1/airports/6","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","airports","6"],"query":[{"key":"id","value":"6","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"ETag","value":"W/\"52-mtHemA3fDTsz5a63AHS9S94NbSY\""},{"key":"Date","value":"Mon, 15 Jul 2024 19:41:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": [\n        1\n    ],\n    \"error\": {}\n}"}],"_postman_id":"66b3eda0-d4c8-4b81-a4b7-259c0faaad73"},{"name":"get-airport-by-id","id":"2c98b99d-12af-4164-8728-5f93285d3f73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airports/3","urlObject":{"protocol":"http","port":"3000","path":["api","v1","airports","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c6fc9090-5bba-4c33-ac00-41a158258886","name":"get-airport-by-id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/airports/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"225"},{"key":"ETag","value":"W/\"e1-hN7xZR0mQt+8VEjlKiLRUxufdgE\""},{"key":"Date","value":"Mon, 15 Jul 2024 19:45:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"name\": \"IGI Airport\",\n        \"code\": \"DEL\",\n        \"address\": null,\n        \"cityId\": 3,\n        \"createdAt\": \"2024-07-15T18:59:35.000Z\",\n        \"updatedAt\": \"2024-07-15T18:59:35.000Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"2c98b99d-12af-4164-8728-5f93285d3f73"}],"id":"668119ab-d417-4d14-931b-1f05fa783129","_postman_id":"668119ab-d417-4d14-931b-1f05fa783129","description":""},{"name":"flights","item":[{"name":"create-flight","id":"73515bca-21cd-4e1b-95fc-26dfb7baf552","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"flightNumber\": \"airbus340\",\r\n      \"airplaneId\": 4,\r\n      \"departureAirportId\": \"BLR\",\r\n      \"arrivalAirportId\": \"DEL\",\r\n      \"arrivalTime\": \"2024-06-15 12:00:00.000 +0530\",\r\n      \"departureTime\": \"2024-06-15 10:00:00.000 +0530\",\r\n      \"price\": 5000,\r\n      \"boardingGate\": \"G2\",\r\n      \"totalSeats\": 180\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/flights","urlObject":{"protocol":"http","port":"3000","path":["api","v1","flights"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"41b7a459-1937-42b1-9654-baedaa8639e5","name":"create-flight","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"flightNumber\": \"airbus340\",\r\n      \"airplaneId\": 4,\r\n      \"departureAirportId\": \"BLR\",\r\n      \"arrivalAirportId\": \"DEL\",\r\n      \"arrivalTime\": \"2024-06-15 12:00:00.000 +0530\",\r\n      \"departureTime\": \"2024-06-15 10:00:00.000 +0530\",\r\n      \"price\": 5000,\r\n      \"boardingGate\": \"G2\",\r\n      \"totalSeats\": 180\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/flights"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"393"},{"key":"ETag","value":"W/\"189-mwdb0groR6lOiGQM2hCtjCRGkLU\""},{"key":"Date","value":"Mon, 15 Jul 2024 20:17:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"flightNumber\": \"airbus340\",\n        \"airplaneId\": 4,\n        \"departureAirportId\": \"BLR\",\n        \"arrivalAirportId\": \"DEL\",\n        \"arrivalTime\": \"2024-06-15T06:30:00.000Z\",\n        \"departureTime\": \"2024-06-15T04:30:00.000Z\",\n        \"price\": 5000,\n        \"boardingGate\": \"G2\",\n        \"totalSeats\": 180,\n        \"updatedAt\": \"2024-07-15T20:17:41.537Z\",\n        \"createdAt\": \"2024-07-15T20:17:41.537Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"73515bca-21cd-4e1b-95fc-26dfb7baf552"},{"name":"get-all-flights","event":[{"listen":"test","script":{"id":"98b0b47b-9afa-41ad-9552-4902a2f8432f","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"16b0ceba-55ee-4962-99f4-4088fac714b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/flights?trips=DEL-MUM","urlObject":{"protocol":"http","port":"3000","path":["api","v1","flights"],"host":["localhost"],"query":[{"key":"trips","value":"DEL-MUM"}],"variable":[]}},"response":[{"id":"f9305690-f565-4663-b55b-c34e98a54fdd","name":"get-all-flights","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/v1/flights?trips=DEL-MUM","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","flights"],"query":[{"key":"trips","value":"DEL-MUM"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"710"},{"key":"ETag","value":"W/\"2c6-/1AKT6k1UxopK5lLbrB0M/tAErM\""},{"key":"Date","value":"Tue, 16 Jul 2024 10:55:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": [\n        {\n            \"id\": 5,\n            \"flightNumber\": \"airbus308\",\n            \"airplaneId\": 4,\n            \"departureAirportId\": \"DEL\",\n            \"arrivalAirportId\": \"MUM\",\n            \"arrivalTime\": \"2024-06-15T13:30:00.000Z\",\n            \"departureTime\": \"2024-06-15T11:30:00.000Z\",\n            \"price\": 5500,\n            \"boardingGate\": \"G2\",\n            \"totalSeats\": 180,\n            \"createdAt\": \"2024-07-16T10:49:26.000Z\",\n            \"updatedAt\": \"2024-07-16T10:49:26.000Z\"\n        },\n        {\n            \"id\": 6,\n            \"flightNumber\": \"airbus208\",\n            \"airplaneId\": 4,\n            \"departureAirportId\": \"DEL\",\n            \"arrivalAirportId\": \"MUM\",\n            \"arrivalTime\": \"2024-06-15T06:30:00.000Z\",\n            \"departureTime\": \"2024-06-15T04:30:00.000Z\",\n            \"price\": 4500,\n            \"boardingGate\": \"G2\",\n            \"totalSeats\": 180,\n            \"createdAt\": \"2024-07-16T10:55:00.000Z\",\n            \"updatedAt\": \"2024-07-16T10:55:00.000Z\"\n        }\n    ],\n    \"error\": {}\n}"}],"_postman_id":"16b0ceba-55ee-4962-99f4-4088fac714b4"},{"name":" get-flights-by-id","id":"a4275661-3fc1-413e-99ae-0c25b572d572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/flights/3","urlObject":{"protocol":"http","port":"3000","path":["api","v1","flights","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6cd1a608-31f7-4c07-8f99-bda17c8e3875","name":"get-flights-by-id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/flights/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"393"},{"key":"ETag","value":"W/\"189-axFVx7gkzIyd4EVTBn3sn8DYceg\""},{"key":"Date","value":"Wed, 17 Jul 2024 08:28:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"flightNumber\": \"airbus340\",\n        \"airplaneId\": 4,\n        \"departureAirportId\": \"DEL\",\n        \"arrivalAirportId\": \"MUM\",\n        \"arrivalTime\": \"2024-06-17T03:30:00.000Z\",\n        \"departureTime\": \"2024-06-17T01:30:00.000Z\",\n        \"price\": 4500,\n        \"boardingGate\": \"G2\",\n        \"totalSeats\": 180,\n        \"createdAt\": \"2024-07-16T21:40:33.000Z\",\n        \"updatedAt\": \"2024-07-16T21:40:33.000Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"a4275661-3fc1-413e-99ae-0c25b572d572"},{"name":"update-seats","id":"a8a0481c-4106-4d4b-91f5-b7a455855029","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"seats","value":"5","type":"text"}]},"url":"http://localhost:3000/api/v1/flights/3/seats","urlObject":{"protocol":"http","port":"3000","path":["api","v1","flights","3","seats"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"713b7754-447f-41b8-85fc-ccba7113108d","name":"update-seats","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"seats","value":"5","type":"text"}]},"url":"http://localhost:3000/api/v1/flights/3/seats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"393"},{"key":"ETag","value":"W/\"189-axFVx7gkzIyd4EVTBn3sn8DYceg\""},{"key":"Date","value":"Wed, 17 Jul 2024 08:45:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"flightNumber\": \"airbus340\",\n        \"airplaneId\": 4,\n        \"departureAirportId\": \"DEL\",\n        \"arrivalAirportId\": \"MUM\",\n        \"arrivalTime\": \"2024-06-17T03:30:00.000Z\",\n        \"departureTime\": \"2024-06-17T01:30:00.000Z\",\n        \"price\": 4500,\n        \"boardingGate\": \"G2\",\n        \"totalSeats\": 180,\n        \"createdAt\": \"2024-07-16T21:40:33.000Z\",\n        \"updatedAt\": \"2024-07-16T21:40:33.000Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"a8a0481c-4106-4d4b-91f5-b7a455855029"}],"id":"34b18f29-e596-4147-9e77-ea90801f7d4d","_postman_id":"34b18f29-e596-4147-9e77-ea90801f7d4d","description":""}],"id":"5ce53c23-fd76-4a0a-83e3-6d5d77b94995","_postman_id":"5ce53c23-fd76-4a0a-83e3-6d5d77b94995","description":""},{"name":"Flight-Booking-service","item":[{"name":"create-booking","event":[{"listen":"test","script":{"id":"2de95585-8ad6-4f90-8583-a07b9a3afb77","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"d5cdac38-270a-4885-9646-4c3d8c7da762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"flightId","value":"2","type":"text"},{"key":"noofSeats","value":"2","type":"text"},{"key":"userId","value":"4","type":"text"}]},"url":"localhost:4000/api/v1/bookings","urlObject":{"port":"4000","path":["api","v1","bookings"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cf40664b-0609-43b8-9fe1-7695b9c3b294","name":"create-booking","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"flightId","value":"2","type":"text"},{"key":"noofSeats","value":"181","type":"text"}]},"url":"localhost:4000/api/v1/bookings"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"130"},{"key":"ETag","value":"W/\"82-8gdZYP7A5fCewNAg7JQKT1qFO4g\""},{"key":"Date","value":"Wed, 17 Jul 2024 22:29:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Something went wrong\",\n    \"data\": {},\n    \"error\": {\n        \"statusCode\": 400,\n        \"explanation\": \"Not enough seats available\"\n    }\n}"}],"_postman_id":"d5cdac38-270a-4885-9646-4c3d8c7da762"},{"name":"payment","id":"ac52aa99-4e5e-4852-b729-3fb5a40e2b5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"bookingId","value":"1","type":"text"},{"key":"userId","value":"1","type":"text"},{"key":"totalCost","value":"9000","type":"text"}]},"url":"localhost:4000/api/v1/bookings/payments","urlObject":{"port":"4000","path":["api","v1","bookings","payments"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"02afd40b-bf12-4e94-a6de-846d072040c7","name":"payment","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"bookingId","value":"13","type":"text"},{"key":"userId","value":"4","type":"text"},{"key":"totalCost","value":"9000","type":"text"}]},"url":"localhost:4000/api/v1/bookings/payments"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"127"},{"key":"ETag","value":"W/\"7f-K1i5RlZL5kkuE4rr/R+fn5A8Vyo\""},{"key":"Date","value":"Thu, 18 Jul 2024 07:57:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Something went wrong\",\n    \"data\": {},\n    \"error\": {\n        \"statusCode\": 400,\n        \"explanation\": \"The booking has expired\"\n    }\n}"}],"_postman_id":"ac52aa99-4e5e-4852-b729-3fb5a40e2b5a"}],"id":"1459b7fb-148f-4f6d-b923-d29315b55321","_postman_id":"1459b7fb-148f-4f6d-b923-d29315b55321","description":""},{"name":"Auth-Service","item":[{"name":"sign-up","id":"a08d1260-a79b-406e-8c99-eae72d510371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"new_user1@gmail.com\",\r\n    \"password\":\"12345\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/v1/user/signup","urlObject":{"port":"3001","path":["api","v1","user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7a3e9e3d-047e-4e29-ab6a-8c2fc899133c","name":"sign-up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"anuj@gmail.com\",\r\n    \"password\":\"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/v1/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"264"},{"key":"ETag","value":"W/\"108-w3UJe7DEQZ2jxOtW/iiZQ+Y+4IY\""},{"key":"Date","value":"Wed, 17 Jul 2024 15:04:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": {\n        \"id\": 3,\n        \"email\": \"anuj@gmail.com\",\n        \"password\": \"$2b$08$qvr5TKc2bwjsNaexrSGjUORYQRTSyFFfJEa/9uOP7TSC3ulnqdhQa\",\n        \"updatedAt\": \"2024-07-17T15:04:49.824Z\",\n        \"createdAt\": \"2024-07-17T15:04:49.824Z\"\n    },\n    \"error\": {}\n}"}],"_postman_id":"a08d1260-a79b-406e-8c99-eae72d510371"},{"name":"sign-in","id":"5bebde06-76d8-4f96-8e1c-2e2a8a28e292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"new_user1@gmail.com\",\r\n    \"password\":\"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/v1/user/signin","urlObject":{"port":"3001","path":["api","v1","user","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"144ed20e-0b7e-4a7e-9cdb-3fbc419bc860","name":"sign-in","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"anuj@gmail.com\",\r\n    \"password\":\"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/v1/user/signin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"252"},{"key":"ETag","value":"W/\"fc-/PinIgOrOU1VFqq8IFE+Jkz8bLQ\""},{"key":"Date","value":"Wed, 17 Jul 2024 19:54:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Succesfully created the request\",\n    \"data\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZW1haWwiOiJhbnVqQGdtYWlsLmNvbSIsImlhdCI6MTcyMTI0NjA5MiwiZXhwIjoxNzIxMjQ5NjkyfQ.0gm7uG-3GGMqgaZVvD3hUsk8zCYq5Zln3KrtTOfCOm4\",\n    \"error\": {}\n}"}],"_postman_id":"5bebde06-76d8-4f96-8e1c-2e2a8a28e292"},{"name":"info","id":"4243d8f9-6cd2-4805-83da-b4812535ef09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZW1haWwiOiJhbnVqQGdtYWlsLmNvbSIsImlhdCI6MTcyMTI0NjA5MiwiZXhwIjoxNzIxMjQ5NjkyfQ.0gm7uG-3GGMqgaZVvD3hUsk8zCYq5Zln3KrtTOfCOm4","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text"}]},"url":"localhost:3001/api/v1/info","urlObject":{"port":"3001","path":["api","v1","info"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4205c49c-f6db-4b9b-9b62-bfefb73727c4","name":"info","originalRequest":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZW1haWwiOiJhbnVqQGdtYWlsLmNvbSIsImlhdCI6MTcyMTI0NjA5MiwiZXhwIjoxNzIxMjQ5NjkyfQ.0gm7uG-3GGMqgaZVvD3hUsk8zCYq5Zln3KrtTOfCOm4","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"","value":"","type":"text"}]},"url":"localhost:3001/api/v1/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-HVGZEa7/S/YQH58rAd913UVv64Q\""},{"key":"Date","value":"Wed, 17 Jul 2024 19:57:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"API is live\",\n    \"error\": {},\n    \"data\": {}\n}"}],"_postman_id":"4243d8f9-6cd2-4805-83da-b4812535ef09"},{"name":"roles","id":"b69a3066-c818-4530-8301-4a82616533db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NywiZW1haWwiOiJuZXdfdXNlcjFAZ21haWwuY29tIiwiaWF0IjoxNzIxNDE4NjU4LCJleHAiOjE3MjE0MjIyNTh9.p6NC8GPIN7JPEwjY6HtQZ1zq8rP06gNhV7AiDOI4il4","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"role","value":"admin","type":"text"},{"key":"id","value":"2","type":"text"}]},"url":"localhost:3001/api/v1/user/role","urlObject":{"port":"3001","path":["api","v1","user","role"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cbe68d11-e0c6-4bb1-b577-4488522c7a37","name":"add-roles","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NywiZW1haWwiOiJuZXdfdXNlcjFAZ21haWwuY29tIiwiaWF0IjoxNzIxNDE4NjU4LCJleHAiOjE3MjE0MjIyNTh9.p6NC8GPIN7JPEwjY6HtQZ1zq8rP06gNhV7AiDOI4il4","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"role","value":"admin","type":"text"},{"key":"id","value":"2","type":"text"}]},"url":"localhost:3001/api/v1/user/role"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"5"},{"key":"X-RateLimit-Remaining","value":"4"},{"key":"Date","value":"Fri, 19 Jul 2024 19:55:39 GMT"},{"key":"X-RateLimit-Reset","value":"1721419060"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-zC81OqY4gzgSB32qv3XQI6njGRo\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not authorized for this action\"\n}"}],"_postman_id":"b69a3066-c818-4530-8301-4a82616533db"}],"id":"19134f4a-8698-4d38-a2a7-dc47bc3c8fe0","_postman_id":"19134f4a-8698-4d38-a2a7-dc47bc3c8fe0","description":""},{"name":"Notification-service","item":[],"id":"c337ece6-cefd-4a5e-abed-2575e7a2e33a","_postman_id":"c337ece6-cefd-4a5e-abed-2575e7a2e33a","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"530bbdd9-38d3-441e-92dc-61f171c18dc2","key":"id","value":"1"},{"id":"57b5ecc1-1ffd-4eb5-a9a4-fa78c5251c5d","key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"}]}