{"info":{"_postman_id":"58d00cb4-c681-4936-98ca-3e3c234248ec","name":"AliDada Project With Mock Api","description":"<html><head></head><body><p>This is a document for the implementation of the Ali Dada project, and the folders are specified separately, and an attempt has been made to include suitable examples for implementation in this document.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16800432","collectionId":"58d00cb4-c681-4936-98ca-3e3c234248ec","publishedId":"2s93zCYLT1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-13T21:13:35.000Z"},"item":[{"name":"OUTH","item":[{"name":"sign up","id":"7cb54212-deeb-45ae-a416-ef39a601d6bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"armin3@yahoo.com\",\n    \"user_name\": \"armin3\",\n    \"password\": \"13771377A\",\n    \"first_name\": \"eghbal\",\n    \"last_name\": \"shirasb\",\n    \"phone_number\": \"093037022\"\n\n\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/signup","urlObject":{"path":["api","auth","signup"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"26b8f0af-942c-43cd-94b2-c5521536160b","name":"sign up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"armin3@yahoo.com\",\n    \"user_name\": \"armin3\",\n    \"password\": \"13771377A\",\n    \"first_name\": \"eghbal\",\n    \"last_name\": \"shirasb\",\n    \"phone_number\": \"093037022\"\n\n\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:19:47 GMT"},{"key":"Content-Length","value":"27"}],"cookie":[],"responseTime":null,"body":"Registration was successful"}],"_postman_id":"7cb54212-deeb-45ae-a416-ef39a601d6bb"},{"name":"login","id":"162508ef-0a43-4288-8c01-25a6b3557697","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"armin3@yahoo.com\",\n    \"user_name\": \"\",\n    \"password\": \"13771377A\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"7a2a9bd1-cec6-409c-a34b-e91ca23e278b","name":"login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"armin3@yahoo.com\",\n    \"user_name\": \"\",\n    \"password\": \"13771377A\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:21:36 GMT"},{"key":"Content-Length","value":"150"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODkzNjYwOTYsIm5hbWUiOiJhcm1pbjMiLCJzdWIiOjF9.GqljuGM6DskwHzC6r8-wkL9mghZoGJTeCiyVwxc3kic\"\n}"}],"_postman_id":"162508ef-0a43-4288-8c01-25a6b3557697"},{"name":"me","id":"74bdcefb-a447-4f86-828f-a69e1c3aeec5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/auth/me","urlObject":{"path":["api","auth","me"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"d6ecd5cb-2c92-4ca5-b649-06d3a507b9e4","name":"me","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:22:01 GMT"},{"key":"Content-Length","value":"219"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 6,\n    \"email\": \"armin3@yahoo.com\",\n    \"user_name\": \"armin3\",\n    \"password\": \"$2a$10$g1qsjrcGNsI8DMa/cMFCt.z/oMUmpV5ManINS7LGF/7ovIRrZmF1a\",\n    \"first_name\": \"eghbal\",\n    \"last_name\": \"shirasb\",\n    \"phone_number\": \"093037022\",\n    \"is_admin\": false\n}"}],"_postman_id":"74bdcefb-a447-4f86-828f-a69e1c3aeec5"},{"name":"logout","id":"b7cf87b1-e833-437a-ae67-b1d4cdec2151","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3000/api/auth/logout","urlObject":{"path":["api","auth","logout"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e4e76d85-8de7-435a-8258-caed8eeffb82","name":"logout","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3000/api/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:23:00 GMT"},{"key":"Content-Length","value":"21"}],"cookie":[],"responseTime":null,"body":"Logout was successful"}],"_postman_id":"b7cf87b1-e833-437a-ae67-b1d4cdec2151"}],"id":"e5dbad00-1124-45e6-833c-6556bd739230","_postman_id":"e5dbad00-1124-45e6-833c-6556bd739230","description":""},{"name":"My tickets","item":[{"name":"Get tickets of user","id":"46f2a84f-a46f-4b49-884f-7247b8e8cb3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/user/tickets","urlObject":{"path":["api","user","tickets"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"510da4d6-4e57-419c-9dba-58bc559c352e","name":"Get tickets of user","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/user/tickets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:29:55 GMT"},{"key":"Content-Length","value":"1177"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 83,\n        \"PassengerID\": 13,\n        \"FlightClassID\": 1,\n        \"OrderID\": 43,\n        \"Price\": 1900,\n        \"IsCancelled\": false,\n        \"Passenger\": {\n            \"ID\": 13,\n            \"first_name\": \"eghbal\",\n            \"last_name\": \"shirasb\",\n            \"date_of_birth\": \"26/9/77\",\n            \"nationality\": \"Iranian\",\n            \"passport_number\": \"0440765129\"\n        },\n        \"Confirmed\": true,\n        \"FlightClass\": {\n            \"ID\": 1,\n            \"flight_class_title\": \"Class-A\",\n            \"flight_price\": 1900,\n            \"flight_capacity\": 50,\n            \"flight_reserve\": 15,\n            \"flight\": {\n                \"ID\": 6,\n                \"flight_origin\": \"Tehran\",\n                \"flight_destination\": \"Alborz\",\n                \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n                \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n                \"flight_airline\": \"mahan\",\n                \"flight_aircraft\": \"Boeing737\"\n            }\n        }\n    },\n    {\n        \"ID\": 84,\n        \"PassengerID\": 14,\n        \"FlightClassID\": 1,\n        \"OrderID\": 43,\n        \"Price\": 1900,\n        \"IsCancelled\": false,\n        \"Passenger\": {\n            \"ID\": 14,\n            \"first_name\": \"nima\",\n            \"last_name\": \"nima\",\n            \"date_of_birth\": \"26/9/77\",\n            \"nationality\": \"Iranian\",\n            \"passport_number\": \"1440765129\"\n        },\n        \"Confirmed\": true,\n        \"FlightClass\": {\n            \"ID\": 1,\n            \"flight_class_title\": \"Class-A\",\n            \"flight_price\": 1900,\n            \"flight_capacity\": 50,\n            \"flight_reserve\": 15,\n            \"flight\": {\n                \"ID\": 6,\n                \"flight_origin\": \"Tehran\",\n                \"flight_destination\": \"Alborz\",\n                \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n                \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n                \"flight_airline\": \"mahan\",\n                \"flight_aircraft\": \"Boeing737\"\n            }\n        }\n    }\n]"}],"_postman_id":"46f2a84f-a46f-4b49-884f-7247b8e8cb3a"},{"name":"Cancell a ticket","id":"6a757013-ae37-4bdd-9a1a-35c06f168ebd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3000/api/user/tickets/cancell/:id","urlObject":{"path":["api","user","tickets","cancell",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"831d4b77-3947-4157-9497-e0a6097586b1","name":"Cancell a ticket","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:3000/api/user/tickets/cancell/:id","host":["http://localhost:3000"],"path":["api","user","tickets","cancell",":id"],"variable":[{"key":"id","value":"84"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:30:56 GMT"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"\"your penalty is: 190\""}],"_postman_id":"6a757013-ae37-4bdd-9a1a-35c06f168ebd"},{"name":"Get PDF tickets per order","id":"10c62030-22c3-49d2-abc8-65f6bfb5d7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/user/pdftickets/:id","urlObject":{"path":["api","user","pdftickets",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"type":"any","value":"36","key":"id"}]}},"response":[],"_postman_id":"10c62030-22c3-49d2-abc8-65f6bfb5d7b8"}],"id":"a687c465-0f64-4960-8009-d54660ca1506","_postman_id":"a687c465-0f64-4960-8009-d54660ca1506","description":""},{"name":"Mock Api","item":[{"name":"GetFlightByID","id":"050f9f90-e6da-410d-8da7-4fc810587044","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/:id","urlObject":{"path":["flights",":id"],"host":["localhost:3001"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"82c78911-a498-4fa9-8624-e33cec022407","name":"GetFlightByID","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3001/flights/:id","host":["localhost:3001"],"path":["flights",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:32:33 GMT"},{"key":"Content-Length","value":"210"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 1,\n    \"flight_origin\": \"Tehran\",\n    \"flight_destination\": \"Tabriz\",\n    \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n    \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n    \"flight_airline\": \"homa\",\n    \"flight_aircraft\": \"Boeing737\"\n}"}],"_postman_id":"050f9f90-e6da-410d-8da7-4fc810587044"},{"name":"GetFlightByDate","id":"a752422e-8f92-4332-8c50-366b2748660b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/:origin/:destination/:date","urlObject":{"path":["flights",":origin",":destination",":date"],"host":["localhost:3001"],"query":[],"variable":[{"type":"any","value":"tehran","key":"origin"},{"type":"any","value":"Tabriz","key":"destination"},{"type":"any","value":"2020-02-09","key":"date"}]}},"response":[{"id":"5434fa77-a929-45b2-b0fd-6807b9c39ef3","name":"GetFlightByDate","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3001/flights/:origin/:destination/:date","host":["localhost:3001"],"path":["flights",":origin",":destination",":date"],"variable":[{"key":"origin","value":"tehran"},{"key":"destination","value":"Tabriz"},{"key":"date","value":"2020-02-09"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:35:15 GMT"},{"key":"Content-Length","value":"212"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 1,\n        \"flight_origin\": \"Tehran\",\n        \"flight_destination\": \"Tabriz\",\n        \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n        \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n        \"flight_airline\": \"homa\",\n        \"flight_aircraft\": \"Boeing737\"\n    }\n]"}],"_postman_id":"a752422e-8f92-4332-8c50-366b2748660b"},{"name":"GetPlanesList","id":"05da67e6-b5c7-4805-bd3f-a3cf4a4970ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/planes","urlObject":{"path":["flights","planes"],"host":["localhost:3001"],"query":[],"variable":[]}},"response":[{"id":"07cd7a57-0ede-4be6-9c4e-9b96e4a33b3c","name":"GetPlanesList","originalRequest":{"method":"GET","header":[],"url":"localhost:3001/flights/planes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:36:12 GMT"},{"key":"Content-Length","value":"14"}],"cookie":[],"responseTime":null,"body":"[\n    \"Boeing737\"\n]"}],"_postman_id":"05da67e6-b5c7-4805-bd3f-a3cf4a4970ea"},{"name":"GetCitiesList","id":"c013fac7-240e-49ba-a113-19489c66d298","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/cities","urlObject":{"path":["flights","cities"],"host":["localhost:3001"],"query":[],"variable":[]}},"response":[{"id":"8aa2722f-bde6-4b4a-a6ea-55420220f9e6","name":"GetCitiesList","originalRequest":{"method":"GET","header":[],"url":"localhost:3001/flights/cities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:36:18 GMT"},{"key":"Content-Length","value":"1491"}],"cookie":[],"responseTime":null,"body":"{\n    \"Destination\": [\n        {\n            \"ID\": 1,\n            \"flight_destination\": \"Tabriz\",\n            \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 2,\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 3,\n            \"flight_destination\": \"Mashad\",\n            \"flight_starttime\": \"2020-02-09T19:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T20:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 6,\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    ],\n    \"Origin\": [\n        {\n            \"ID\": 1,\n            \"flight_origin\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 3,\n            \"flight_origin\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-09T19:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T20:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    ]\n}"}],"_postman_id":"c013fac7-240e-49ba-a113-19489c66d298"},{"name":"GetDaysList","id":"32423a55-e804-4585-9bf6-bc97c04f291e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/days","urlObject":{"path":["flights","days"],"host":["localhost:3001"],"query":[],"variable":[]}},"response":[{"id":"edd1f2c2-7a54-468d-bd61-bea3f1edbea8","name":"GetDaysList","originalRequest":{"method":"GET","header":[],"url":"localhost:3001/flights/days"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:36:31 GMT"},{"key":"Content-Length","value":"888"}],"cookie":[],"responseTime":null,"body":"{\n    \"2020-02-08\": [\n        {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    ],\n    \"2020-02-09\": [\n        {\n            \"ID\": 1,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Tabriz\",\n            \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        },\n        {\n            \"ID\": 3,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Mashad\",\n            \"flight_starttime\": \"2020-02-09T19:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T20:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    ],\n    \"2020-02-13\": [\n        {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    ]\n}"}],"_postman_id":"32423a55-e804-4585-9bf6-bc97c04f291e"},{"name":"ReserveFlightCapacity","id":"a02324df-8a4f-42fd-b177-f8e168ca0d0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"localhost:3001/flights/:id/reserve/:count","urlObject":{"path":["flights",":id","reserve",":count"],"host":["localhost:3001"],"query":[],"variable":[{"type":"any","value":"1","key":"id"},{"type":"any","value":"1","key":"count"}]}},"response":[{"id":"bec622d7-ffcc-4844-aef7-276c1f073d75","name":"ReserveFlightCapacity","originalRequest":{"method":"POST","header":[],"url":{"raw":"localhost:3001/flights/:id/reserve/:count","host":["localhost:3001"],"path":["flights",":id","reserve",":count"],"variable":[{"key":"id","value":"1"},{"key":"count","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:49:38 GMT"},{"key":"Content-Length","value":"321"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 1,\n    \"flight_class_title\": \"Class-A\",\n    \"flight_price\": 1900,\n    \"flight_capacity\": 50,\n    \"flight_reserve\": 16,\n    \"flight\": {\n        \"ID\": 6,\n        \"flight_origin\": \"Tehran\",\n        \"flight_destination\": \"Alborz\",\n        \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n        \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n        \"flight_airline\": \"mahan\",\n        \"flight_aircraft\": \"Boeing737\"\n    }\n}"}],"_postman_id":"a02324df-8a4f-42fd-b177-f8e168ca0d0c"},{"name":"ReturnFlightCapacity","id":"e01cfa9a-9cf8-4009-88a1-e07cf54f7304","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"localhost:3001/flights/:id/return","urlObject":{"path":["flights",":id","return"],"host":["localhost:3001"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[{"id":"6fd3ea8e-2c16-41ac-a258-c346107684ca","name":"ReturnFlightCapacity","originalRequest":{"method":"POST","header":[],"url":{"raw":"localhost:3001/flights/:id/return","host":["localhost:3001"],"path":["flights",":id","return"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:53:02 GMT"},{"key":"Content-Length","value":"320"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 4,\n    \"flight_class_title\": \"Class-A\",\n    \"flight_price\": 1900,\n    \"flight_capacity\": 50,\n    \"flight_reserve\": 14,\n    \"flight\": {\n        \"ID\": 2,\n        \"flight_origin\": \"Shiraz\",\n        \"flight_destination\": \"Tehran\",\n        \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n        \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n        \"flight_airline\": \"homa\",\n        \"flight_aircraft\": \"Boeing737\"\n    }\n}"}],"_postman_id":"e01cfa9a-9cf8-4009-88a1-e07cf54f7304"},{"name":"GetFlightByFilter","id":"e4b7ae1a-9290-448f-a09a-99731356eb8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/filter?airline=&aircraft=&departure=&capacity=2","urlObject":{"path":["flights","filter"],"host":["localhost:3001"],"query":[{"key":"airline","value":""},{"key":"aircraft","value":""},{"key":"departure","value":""},{"key":"capacity","value":"2"}],"variable":[]}},"response":[{"id":"be0c045c-04fc-4775-9fad-fa07c3c6a68f","name":"GetFlightByFilter","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3001/flights/filter?airline=&aircraft=&departure=&capacity=2","host":["localhost:3001"],"path":["flights","filter"],"query":[{"key":"airline","value":""},{"key":"aircraft","value":""},{"key":"departure","value":""},{"key":"capacity","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:59:36 GMT"},{"key":"Content-Length","value":"963"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 4,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 14,\n        \"flight\": {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 1,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 16,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 2,\n        \"flight_class_title\": \"Class-B\",\n        \"flight_price\": 1700,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 1,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    }\n]"}],"_postman_id":"e4b7ae1a-9290-448f-a09a-99731356eb8e"},{"name":"GetFlightBySort","id":"ee23bded-e780-4c25-aa24-f3513bbd89e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flights/sort/:orderBy?order=asc","urlObject":{"path":["flights","sort",":orderBy"],"host":["localhost:3001"],"query":[{"key":"order","value":"asc"}],"variable":[{"description":{"content":"<p>price/id/title/capacity</p>\n","type":"text/plain"},"type":"any","value":"price","key":"orderBy"}]}},"response":[{"id":"7574302a-b9d7-47b3-b158-7509231afaf1","name":"GetFlightBySort","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3001/flights/sort/:orderBy?order=asc","host":["localhost:3001"],"path":["flights","sort",":orderBy"],"query":[{"key":"order","value":"asc"}],"variable":[{"key":"orderBy","value":"price","description":"price/id/title/capacity"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:06:52 GMT"},{"key":"Content-Length","value":"1284"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 1,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 16,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 2,\n        \"flight_class_title\": \"Class-B\",\n        \"flight_price\": 1700,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 1,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 3,\n        \"flight_class_title\": \"Class-C\",\n        \"flight_price\": 1300,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 49,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 4,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 14,\n        \"flight\": {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    }\n]"}],"_postman_id":"ee23bded-e780-4c25-aa24-f3513bbd89e7"},{"name":"GetFlightClassByID","id":"e8c5267a-8fde-40d1-9ad5-47fe225cb90b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3001/flight_class/:id","urlObject":{"path":["flight_class",":id"],"host":["localhost:3001"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"be57979d-b08e-4320-9cb8-c8ba12fd05a8","name":"GetFlightClassByID","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3001/flight_class/:id","host":["localhost:3001"],"path":["flight_class",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:07:16 GMT"},{"key":"Content-Length","value":"321"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 1,\n    \"flight_class_title\": \"Class-A\",\n    \"flight_price\": 1900,\n    \"flight_capacity\": 50,\n    \"flight_reserve\": 16,\n    \"flight\": {\n        \"ID\": 6,\n        \"flight_origin\": \"Tehran\",\n        \"flight_destination\": \"Alborz\",\n        \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n        \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n        \"flight_airline\": \"mahan\",\n        \"flight_aircraft\": \"Boeing737\"\n    }\n}"}],"_postman_id":"e8c5267a-8fde-40d1-9ad5-47fe225cb90b"}],"id":"e09dda70-f9c4-48b1-8d70-c70316cf8dea","_postman_id":"e09dda70-f9c4-48b1-8d70-c70316cf8dea","description":""},{"name":"Reservation","item":[{"name":"Reserve","id":"84059468-2f84-40b7-b32c-54605cfb4abb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"FlightClassID\": 1,\n  \"PassengerIDs\": [13,14]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/reservation/reserve","urlObject":{"path":["api","reservation","reserve"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"bba6c151-f89f-4ff0-b90d-8e36979c6a0b","name":"Reserve","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"FlightClassID\": 1,\n  \"PassengerIDs\": [13,14]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/reservation/reserve"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:28:36 GMT"},{"key":"Content-Length","value":"77"}],"cookie":[],"responseTime":null,"body":"https://sandbox.zarinpal.com/pg/StartPay/000000000000000000000000000001161152"}],"_postman_id":"84059468-2f84-40b7-b32c-54605cfb4abb"},{"name":"verifyPayment","id":"a3dd89a8-a15e-45bd-8aa2-b7617bc83f9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/reservation/verify?Authority=000000000000000000000000000001161152&Status=OK","urlObject":{"path":["api","reservation","verify"],"host":["http://localhost:3000"],"query":[{"key":"Authority","value":"000000000000000000000000000001161152"},{"key":"Status","value":"OK"}],"variable":[]}},"response":[{"id":"df4dfeb8-6249-4010-9076-66aa32ef0d7c","name":"verifyPayment","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/reservation/verify?Authority=000000000000000000000000000001161152&Status=OK","host":["http://localhost:3000"],"path":["api","reservation","verify"],"query":[{"key":"Authority","value":"000000000000000000000000000001161152"},{"key":"Status","value":"OK"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:29:28 GMT"},{"key":"Content-Length","value":"27"}],"cookie":[],"responseTime":null,"body":"Payment is already verified"}],"_postman_id":"a3dd89a8-a15e-45bd-8aa2-b7617bc83f9e"}],"id":"8043ed9f-ec9b-4e10-840d-30ca68917354","_postman_id":"8043ed9f-ec9b-4e10-840d-30ca68917354","description":""},{"name":"Passengers","item":[{"name":"AddPassenger","id":"9942cd58-bff9-470c-9009-39abd943b882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"nima\",\n  \"last_name\": \"nima\",\n  \"gender\": \"1\",\n  \"date_of_birth\": \"26/9/77\",\n  \"nationality\": \"Iranian\",\n  \"passport_number\": \"1440765129\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/AddPassenger","urlObject":{"path":["api","user","AddPassenger"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"1da27ac3-71bb-4720-a507-71584a2edbbc","name":"AddPassenger","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"nima\",\n  \"last_name\": \"nima\",\n  \"gender\": \"1\",\n  \"date_of_birth\": \"26/9/77\",\n  \"nationality\": \"Iranian\",\n  \"passport_number\": \"1440765129\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/AddPassenger"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:25:54 GMT"},{"key":"Content-Length","value":"31"}],"cookie":[],"responseTime":null,"body":"\"Add passenger was successful\""}],"_postman_id":"9942cd58-bff9-470c-9009-39abd943b882"},{"name":"GetPassengers","id":"e1b2abbf-eb01-485d-83b1-78567e493c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/passengers","urlObject":{"path":["api","user","passengers"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"d285096d-1908-4592-977d-c0383f7dbb31","name":"GetPassengers","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/passengers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 20:26:11 GMT"},{"key":"Content-Length","value":"267"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 13,\n        \"first_name\": \"eghbal\",\n        \"last_name\": \"shirasb\",\n        \"date_of_birth\": \"26/9/77\",\n        \"nationality\": \"Iranian\",\n        \"passport_number\": \"0440765129\"\n    },\n    {\n        \"ID\": 14,\n        \"first_name\": \"nima\",\n        \"last_name\": \"nima\",\n        \"date_of_birth\": \"26/9/77\",\n        \"nationality\": \"Iranian\",\n        \"passport_number\": \"1440765129\"\n    }\n]"}],"_postman_id":"e1b2abbf-eb01-485d-83b1-78567e493c93"}],"id":"09cf0931-7f30-4c60-a355-224db2526f88","_postman_id":"09cf0931-7f30-4c60-a355-224db2526f88","description":""},{"name":"Admin","item":[{"name":"PassReservation","id":"cd17e042-7b93-4e96-92b8-d0a1398c7d06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/pass/reservation/:id","urlObject":{"path":["api","pass","reservation",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"type":"any","value":"81","key":"id"}]}},"response":[{"id":"5fc420c6-02e8-439c-a50f-01f876d81cb7","name":"PassReservation","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/pass/reservation/:id","host":["http://localhost:3000"],"path":["api","pass","reservation",":id"],"variable":[{"key":"id","value":"81"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:07:29 GMT"},{"key":"Content-Length","value":"25"}],"cookie":[],"responseTime":null,"body":"\"your seat Number : 1_5\""}],"_postman_id":"cd17e042-7b93-4e96-92b8-d0a1398c7d06"}],"id":"62af5003-0a15-4cd9-834c-d6d93b74d261","_postman_id":"62af5003-0a15-4cd9-834c-d6d93b74d261","description":""},{"name":"Flights","item":[{"name":"GetFlightByDate","id":"5a4dfd03-6983-41f9-8239-6d87c4d8a07c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/flights/search?origin=tehran&destination=Tabriz&date=2020-02-09","urlObject":{"path":["flights","search"],"host":["http://localhost:3000"],"query":[{"key":"origin","value":"tehran"},{"key":"destination","value":"Tabriz"},{"key":"date","value":"2020-02-09"}],"variable":[]}},"response":[{"id":"c9acd5c5-fb22-484a-9d80-3c6b70a296b4","name":"GetFlightByDate","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/flights/search?origin=tehran&destination=Tabriz&date=2020-02-09","host":["http://localhost:3000"],"path":["flights","search"],"query":[{"key":"origin","value":"tehran"},{"key":"destination","value":"Tabriz"},{"key":"date","value":"2020-02-09"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:42:55 GMT"},{"key":"Content-Length","value":"212"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 1,\n        \"flight_origin\": \"Tehran\",\n        \"flight_destination\": \"Tabriz\",\n        \"flight_starttime\": \"2020-02-09T14:49:41+03:30\",\n        \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n        \"flight_airline\": \"homa\",\n        \"flight_aircraft\": \"Boeing737\"\n    }\n]"}],"_postman_id":"5a4dfd03-6983-41f9-8239-6d87c4d8a07c"},{"name":"GetFlightBySort","id":"8ced52ca-6782-4a39-b260-1d18d4a3d710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/flights/sort/:orderBy?order=asc&smart=1","urlObject":{"path":["flights","sort",":orderBy"],"host":["http://localhost:3000"],"query":[{"key":"order","value":"asc"},{"key":"smart","value":"1"}],"variable":[{"id":"fa797d03-61e0-4a72-951f-09b68c7b46ed","description":{"content":"<p>price/id/title/capacity</p>\n","type":"text/plain"},"type":"any","value":"price","key":"orderBy"}]}},"response":[{"id":"051e183e-d0df-49da-bf3a-751314d4ad01","name":"GetFlightBySort","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/flights/sort/:orderBy?order=asc&smart=1","host":["http://localhost:3000"],"path":["flights","sort",":orderBy"],"query":[{"key":"order","value":"asc"},{"key":"smart","value":"1"}],"variable":[{"id":"fa797d03-61e0-4a72-951f-09b68c7b46ed","key":"orderBy","value":"price","description":"price/id/title/capacity"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:47:55 GMT"},{"key":"Content-Length","value":"1284"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 2,\n        \"flight_class_title\": \"Class-B\",\n        \"flight_price\": 1700,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 1,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 4,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 14,\n        \"flight\": {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 3,\n        \"flight_class_title\": \"Class-C\",\n        \"flight_price\": 1300,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 49,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 1,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 16,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    }\n]"}],"_postman_id":"8ced52ca-6782-4a39-b260-1d18d4a3d710"},{"name":"GetFlightByFilter","id":"bdd91121-6876-42bc-89ba-d0e747a8ee45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/flights/filter?airline=&aircraft=&departure=&capacity=2","urlObject":{"path":["flights","filter"],"host":["http://localhost:3000"],"query":[{"key":"airline","value":""},{"key":"aircraft","value":""},{"key":"departure","value":""},{"key":"capacity","value":"2"}],"variable":[]}},"response":[{"id":"1b2ad292-a066-4861-8354-7c88c51fd0e8","name":"GetFlightByFilter","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/flights/filter?airline=&aircraft=&departure=&capacity=2","host":["http://localhost:3000"],"path":["flights","filter"],"query":[{"key":"airline","value":""},{"key":"aircraft","value":""},{"key":"departure","value":""},{"key":"capacity","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Thu, 13 Jul 2023 21:51:19 GMT"},{"key":"Content-Length","value":"963"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ID\": 4,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 14,\n        \"flight\": {\n            \"ID\": 2,\n            \"flight_origin\": \"Shiraz\",\n            \"flight_destination\": \"Tehran\",\n            \"flight_starttime\": \"2020-02-08T15:49:41+03:30\",\n            \"flight_endtime\": \"2020-02-09T18:49:41+03:30\",\n            \"flight_airline\": \"homa\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 1,\n        \"flight_class_title\": \"Class-A\",\n        \"flight_price\": 1900,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 16,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    },\n    {\n        \"ID\": 2,\n        \"flight_class_title\": \"Class-B\",\n        \"flight_price\": 1700,\n        \"flight_capacity\": 50,\n        \"flight_reserve\": 1,\n        \"flight\": {\n            \"ID\": 6,\n            \"flight_origin\": \"Tehran\",\n            \"flight_destination\": \"Alborz\",\n            \"flight_starttime\": \"2020-02-13T09:30:41+03:30\",\n            \"flight_endtime\": \"2020-02-13T10:00:41+03:30\",\n            \"flight_airline\": \"mahan\",\n            \"flight_aircraft\": \"Boeing737\"\n        }\n    }\n]"}],"_postman_id":"bdd91121-6876-42bc-89ba-d0e747a8ee45"}],"id":"47ab693a-c7c0-4e0e-bebf-9aded341a18f","_postman_id":"47ab693a-c7c0-4e0e-bebf-9aded341a18f","description":""}],"event":[{"listen":"prerequest","script":{"id":"70136cae-d4c1-474d-9051-b705b6083f06","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"56adb9bb-01c9-42ef-9be9-3670d75024cf","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base-url","value":"http://localhost:3000","type":"string"},{"key":"base-url-mock","value":"localhost:3001"}]}