-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi test.json
1 lines (1 loc) · 16.9 KB
/
api test.json
1
{"_type":"export","__export_format":4,"__export_date":"2022-08-28T16:20:52.758Z","__export_source":"insomnia.desktop.app:v2022.2.1","resources":[{"_id":"req_3fc7f6d9b11345e3a6cbd5c55ecba2ed","parentId":"fld_9188c7e6314547a7bd6697dcacb78308","modified":1661703441625,"created":1661505548386,"url":"localhost:5500/api/auth/login","name":"login","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"userandemail\": \"admin\",\n\t\"password\": \"admin\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_f3e6978992ac494fb3f47eec1b5a0d34"}],"authentication":{},"metaSortKey":-1661501597394,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_9188c7e6314547a7bd6697dcacb78308","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661509130174,"created":1661509130174,"name":"Auth","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1661509130174,"_type":"request_group"},{"_id":"wrk_47b8859b62864513ad7e8cc96df81956","parentId":null,"modified":1661451047934,"created":1661451047934,"name":"New Document","description":"","scope":"design","_type":"workspace"},{"_id":"req_12c8911d46cf4f899c34fd141fb1ae75","parentId":"fld_9188c7e6314547a7bd6697dcacb78308","modified":1661703421825,"created":1661494100481,"url":"localhost:5500/api/auth/register","name":"add user","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"admin\",\n\t\"email\": \"admin@gmail.com\",\n\t\"password\": \"admin\",\n\t\"country\": \"bangladesh\",\n\t\"phone\": \"01950100587\",\n\t\"city\": \"sherpur\",\n\t\"img\": \"https://images.pexels.com/photos/13085461/pexels-photo-13085461.jpeg?auto=compress&cs=tinysrgb&w=1600&lazy=load\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_f3e6978992ac494fb3f47eec1b5a0d34"}],"authentication":{},"metaSortKey":-1661501597344,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7a86b39b3abd48c38e79c892a21fd653","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661703455883,"created":1661451047975,"url":"localhost:5500/api/hotels/create","name":"create","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"23 Shahid Tajuddin\",\n\t\"title\": \"Get the celebrity treatment with world-class service at Holiday Inn Dhaka City Centre, an IHG Hotel\",\n\t\"type\": \"hotel\",\n\t\"distance\": \"8.2 km from resort\",\n\t\"city\": \"sherpur\",\n\t\"address\": \"23 Shahid Tajuddin Ahmed Sharani Tejgaon, 1208 Dhaka, Banglades\",\n\t\"description\" : \"Located in Dhaka, a 20-minute walk from Petrobangla, Holiday Inn Dhaka City Centre, an IHG Hotel has accommodations with a restaurant, free private parking, free bikes and an outdoor swimming pool. With free WiFi, this 5-star hotel has a bar and a garden. There's a fitness center, evening entertainment and a 24-hour front desk.\",\n\t\"price\": 4500\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811357,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_19cbd8f9c8e6451fb579597268558bfc","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661453811407,"created":1661453811407,"name":"Hotel","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1661453811407,"_type":"request_group"},{"_id":"req_3387e1808b694bb28d0b14b10047bb6d","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661675530732,"created":1661455120268,"url":"localhost:5500/api/hotels/6307d15826710bd3a5b364c6","name":"update","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\t\"name\": \" Priyo Nibash Room\",\n\t\"title\": \"Hotel Priyo Nibash Stylish Residential\",\n\t\"type\": \"Apartments\",\n\t\"distance\": \"8.2 km from Indilpur\",\n\t\"city\": \"sherpur\",\n\t\"address\": \"Indilpur, Sherpur Sadar Sherpur\",\n\t\"description\" : \"Hotel Priyo Nibash Stylish Residential, a property with a terrace, is located in Dhaka, a 7-minute walk from Dhaka Tribune, 641 m from State University of Bangladesh, as well as a 10-minute walk from Daffodil International University. This property has a balcony and free private parking.\",\n\t\"price\": 8500\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811307,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2f45c93071794e85bd01a8920542a167","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661675533630,"created":1661455987727,"url":"localhost:5500/api/hotels/6307cf26d7f48c5b17d1c1f9","name":"delete","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811257,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7ff9da09a4fa4f8fa8e10eb8a056bc4a","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661701245244,"created":1661456432702,"url":"localhost:5500/api/hotels/630b8763b120fb4ea6541cd2","name":"get one hotel","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811207,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_bd8d15f061c04e658cb6129649c6cf02","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661675541558,"created":1661456627397,"url":"localhost:5500/api/hotels","name":"get all hotels","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811157,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3d06612d90e448b58fb504aa8989cbbc","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661701416618,"created":1661532268997,"url":"localhost:5500/api/hotels/countByCity?cities=sherpur,jamalpur,dhaka","name":"count by city","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811107,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_90e030967a9b4fea8f52e70b41d49fa7","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661582562391,"created":1661532277111,"url":"localhost:5500/api/hotels/countByType","name":"count by type","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811057,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1aa162c424e54822a9d535f743fa6afa","parentId":"fld_19cbd8f9c8e6451fb579597268558bfc","modified":1661618913823,"created":1661609161355,"url":"localhost:5500/api/hotels/room/6307d15826710bd3a5b364c6","name":"get hotel rooms","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811007,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a28252ece4e04d69a7b9f3a91992da83","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661703467160,"created":1661529630296,"url":"localhost:5500/api/rooms/create/630b9516d8e81f9d64cac76c","name":"create","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"title\": \"Residence Hotel\",\n\t\"price\": 2000,\n\t\"maxPeople\": \"2\",\n\t\"desc\": \"Hotel Priyo Nibash Stylish Residential has city views, free WiFi and free private parking, located in Dhaka, a 7-minute walk from Dhaka Tribune. World University of Bangladesh and Bangladesh University. The air-conditioned rooms provide a city view and come with a desk and free WiFi.\",\n\t\"roomNumbers\": [{\"number\": 124}, {\"number\": 126}]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811357,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_76b22847fde544fc84e05b25b5696e86","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661529630293,"created":1661529630293,"name":"Room","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1661453811382,"_type":"request_group"},{"_id":"req_87aff7394d46434ba6726ac252244501","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661675592541,"created":1661529630298,"url":"localhost:5500/api/rooms/630a74171307b3f27be87ef6","name":"update","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"roomNumbers\": [{\"number\": 100}, {\"number\": 102},{\"number\": 104}, {\"number\": 108}]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811307,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_27c672973c8f48249013f8b3dea3871c","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661675595013,"created":1661618662108,"url":"localhost:5500/api/rooms/availability/630a6a0cba6615b76f15e75a","name":"update room number availability","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"dates\": [\"2022-08-26T16:35:24.995Z\",\"2022-08-26T16:35:24.995Z\"]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811282,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_dfca7322b17d4d728d8640879f586188","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661675603517,"created":1661529630300,"url":"localhost:5500/api/rooms/6307cbbed9757022cd97c0d2/6308f62565b5a6d8e36ad155","name":"delete","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811257,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_894a7a1c307d40189085a7c73eab2b20","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661626981025,"created":1661529630302,"url":"localhost:5500/api/room/6308f14b8f97572fae88d61f","name":"get one rooms","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811207,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9590034a3dc842ca9dedb01f6d309a9a","parentId":"fld_76b22847fde544fc84e05b25b5696e86","modified":1661626973923,"created":1661529630303,"url":"localhost:5500/api/rooms","name":"get all rooms","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811157,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_da53df59eadc4761aa522c7ffefd0cb6","parentId":"fld_7848dff28b6f41ca9b4365a42bb10994","modified":1661675550317,"created":1661509152193,"url":"localhost:5500/api/users/63089320a08951708527704f","name":"update","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"shakil2\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_61f37db5eabf480ca1553021274076b9"}],"authentication":{},"metaSortKey":-1661453811307,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_7848dff28b6f41ca9b4365a42bb10994","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661509152188,"created":1661509152188,"name":"User","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1661453811357,"_type":"request_group"},{"_id":"req_24927789408c4f2096372963bc6ca091","parentId":"fld_7848dff28b6f41ca9b4365a42bb10994","modified":1661675319747,"created":1661509152195,"url":"localhost:5500/api/users/63086a34a7b6f3e4527b6d29","name":"delete","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811257,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_0f1ac30f97b746e3a0eab7f31c09d2ef","parentId":"fld_7848dff28b6f41ca9b4365a42bb10994","modified":1661519456189,"created":1661509152198,"url":"localhost:5500/api/user/63089320a08951708527704f","name":"get one user","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811207,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_56f7f9a5c7e14828a8f761ecc0c56fbd","parentId":"fld_7848dff28b6f41ca9b4365a42bb10994","modified":1661509323308,"created":1661509152199,"url":"localhost:5500/api/users","name":"get all user","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1661453811157,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_3e18c05bc3305ee6874cc20d5737e00d3a9ba113","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661451047958,"created":1661451047958,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1661451047958,"_type":"environment"},{"_id":"jar_3e18c05bc3305ee6874cc20d5737e00d3a9ba113","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661703443017,"created":1661451047966,"name":"Default Jar","cookies":[{"key":"access_token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzMGI5NTAwZDhlODFmOWQ2NGNhYzc2OSIsImlzQWRtaW4iOnRydWUsImlhdCI6MTY2MTcwMzQ0MywiZXhwIjoxNjYyOTk5NDQzfQ.XKPMbLt8ozSc3fed6FBMDFw1wtZAxlvKMK-hoAsNOiw","domain":"localhost","path":"/","httpOnly":true,"hostOnly":true,"creation":"2022-08-28T16:17:23.016Z","lastAccessed":"2022-08-28T16:17:23.016Z","id":"442678387410288"}],"_type":"cookie_jar"},{"_id":"spc_ecdc102380994eaea33c674685ae6c6f","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661451945905,"created":1661451047948,"fileName":"Booking","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_8cdbb9a5e2cb44b89813fdd147e0d429","parentId":"wrk_47b8859b62864513ad7e8cc96df81956","modified":1661451047979,"created":1661451047979,"name":"Example Test Suite","_type":"unit_test_suite"}]}