{"info":{"_postman_id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","name":"ch_06","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"30534452","collectionId":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","publishedId":"2sA3QwcACz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-02T13:47:31.000Z"},"item":[{"name":"car","item":[{"name":"create","id":"898817e6-30e7-42c4-89fc-25040f599914","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"avanzaa","type":"text"},{"key":"year","value":"2016","type":"text"},{"key":"rentPerDay","value":"250000","type":"text"},{"key":"image","type":"file","src":"/C:/Users/Andika/Pictures/Bagan SGU.png"},{"key":"manufacture","value":"toyota","type":"text"},{"key":"capacity","value":"6","type":"text"},{"key":"withDriver","value":"true","type":"text"},{"key":"transmission","value":"manual","type":"text"},{"key":"description","value":"test","type":"text"}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car","urlObject":{"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[],"variable":[]}},"response":[{"id":"22b58096-f837-4acd-9a3c-f2aaa5acf1b5","name":"DTO Requirement","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Terios","type":"text","disabled":true},{"key":"year","value":"2016","type":"text","disabled":true},{"key":"price","value":"250000","type":"text","disabled":true},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/Andika/Pictures/dff.png"],"src":"/C:/Users/Andika/Pictures/dff.png","disabled":true}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"146"},{"key":"ETag","value":"W/\"92-bmoTz+n/7b3dK4UPbrRpQbRCbng\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:26:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"model\": \"Model Name Is Required\",\n    \"year\": \"Year Is Required\",\n    \"price\": \"Price must be a valid number; Price Is Required\",\n    \"image\": \"Image Is Required\"\n}"},{"id":"e29478a7-a9d7-4a40-94a5-f4d0a1b2dd2e","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Subaru","type":"text"},{"key":"year","value":"2016","type":"text"},{"key":"price","value":"250000","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/Andika/Pictures/dff.png"],"src":"/C:/Users/Andika/Pictures/dff.png"}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"},"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":"37"},{"key":"ETag","value":"W/\"25-q9bZG2g6gUD4OCuvdTbROLzvpMo\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:30:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Car added successfully!\"\n}"},{"id":"4e9a9341-350f-48dd-9823-a6590bb56098","name":"Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Subaru","type":"text"},{"key":"year","value":"2016","type":"text"},{"key":"price","value":"250000","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/Andika/Pictures/dff.png"],"src":"/C:/Users/Andika/Pictures/dff.png"}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-9vXVLtUreCsmL+dw1AMWr3XXixI\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:31:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized Role: USER role is not allowed\"\n}"}],"_postman_id":"898817e6-30e7-42c4-89fc-25040f599914"},{"name":"car list","id":"e453e791-ae19-4dd0-9699-a93ed29e791f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/list","urlObject":{"path":["list"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[],"variable":[]}},"response":[{"id":"aca4fd0d-bc17-4614-a3fd-82f1bbcda5dc","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/list"},"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":"2342"},{"key":"ETag","value":"W/\"926-n5Yx2g9rKxj0jqsuaw2lHFWtlJE\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:30:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"createdAt\": \"2024-06-02T13:09:25.318Z\",\n        \"updatedAt\": \"2024-06-02T13:09:25.318Z\",\n        \"deletedAt\": null,\n        \"id\": 1,\n        \"model\": \"Avanza\",\n        \"year\": \"2014\",\n        \"price\": \"300000\",\n        \"image\": \"seeder.jpg\",\n        \"creator\": null,\n        \"updater\": null,\n        \"deleter\": null\n    },\n    {\n        \"createdAt\": \"2024-06-02T13:09:25.318Z\",\n        \"updatedAt\": \"2024-06-02T13:09:25.318Z\",\n        \"deletedAt\": null,\n        \"id\": 2,\n        \"model\": \"Xenia\",\n        \"year\": \"2016\",\n        \"price\": \"320000\",\n        \"image\": \"seeder.jpg\",\n        \"creator\": null,\n        \"updater\": null,\n        \"deleter\": null\n    },\n    {\n        \"createdAt\": \"2024-06-02T13:09:25.318Z\",\n        \"updatedAt\": \"2024-06-02T13:09:25.318Z\",\n        \"deletedAt\": null,\n        \"id\": 4,\n        \"model\": \"Innova\",\n        \"year\": \"2018\",\n        \"price\": \"400000\",\n        \"image\": \"seeder.jpg\",\n        \"creator\": null,\n        \"updater\": null,\n        \"deleter\": null\n    },\n    {\n        \"createdAt\": \"2024-06-02T13:09:25.318Z\",\n        \"updatedAt\": \"2024-06-02T13:28:48.426Z\",\n        \"deletedAt\": null,\n        \"id\": 3,\n        \"model\": \"Terios\",\n        \"year\": \"2017\",\n        \"price\": \"200000\",\n        \"image\": \"seeder.jpg\",\n        \"creator\": null,\n        \"updater\": null,\n        \"deleter\": null\n    },\n    {\n        \"createdAt\": \"2024-06-02T13:29:49.747Z\",\n        \"updatedAt\": \"2024-06-02T13:29:49.747Z\",\n        \"deletedAt\": null,\n        \"id\": 5,\n        \"model\": \"Terios\",\n        \"year\": \"2016\",\n        \"price\": \"250000\",\n        \"image\": \"1717334989743-dff.png\",\n        \"creator\": {\n            \"createdAt\": \"2024-06-02T13:09:25.189Z\",\n            \"updatedAt\": \"2024-06-02T13:26:25.783Z\",\n            \"deletedAt\": null,\n            \"id\": 1,\n            \"name\": \"Super Admin\",\n            \"email\": \"super@mail.com\",\n            \"password\": \"$2b$10$ZVFcIHiEYknNct7wE1jZjuJKfnxXF5oxc7V73MhjMxY3xOZ2V0hdK\",\n            \"role\": \"SUPER_ADMIN\",\n            \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ3ODUsImV4cCI6MTcxNzQyMTE4NX0.TYV5QKckpETQoiUH9lOq6owE9Y0ENcXabdrlHBlR67w\"\n        },\n        \"updater\": null,\n        \"deleter\": null\n    },\n    {\n        \"createdAt\": \"2024-06-02T13:30:13.277Z\",\n        \"updatedAt\": \"2024-06-02T13:30:13.277Z\",\n        \"deletedAt\": null,\n        \"id\": 6,\n        \"model\": \"Subaru\",\n        \"year\": \"2016\",\n        \"price\": \"250000\",\n        \"image\": \"1717335013253-dff.png\",\n        \"creator\": {\n            \"createdAt\": \"2024-06-02T13:09:25.189Z\",\n            \"updatedAt\": \"2024-06-02T13:26:25.783Z\",\n            \"deletedAt\": null,\n            \"id\": 1,\n            \"name\": \"Super Admin\",\n            \"email\": \"super@mail.com\",\n            \"password\": \"$2b$10$ZVFcIHiEYknNct7wE1jZjuJKfnxXF5oxc7V73MhjMxY3xOZ2V0hdK\",\n            \"role\": \"SUPER_ADMIN\",\n            \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ3ODUsImV4cCI6MTcxNzQyMTE4NX0.TYV5QKckpETQoiUH9lOq6owE9Y0ENcXabdrlHBlR67w\"\n        },\n        \"updater\": null,\n        \"deleter\": null\n    }\n]"}],"_postman_id":"e453e791-ae19-4dd0-9699-a93ed29e791f"},{"name":"car by id","id":"6ba34cce-8d5c-4e93-97dc-1df4c15162b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/21","urlObject":{"path":["21"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[],"variable":[]}},"response":[{"id":"5140149c-9c51-41a9-aaf2-fa312fd07ca4","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/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":"734"},{"key":"ETag","value":"W/\"2de-+yBJt5xcPOgjhzggEv32rZuHAy8\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:30:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdAt\": \"2024-06-02T13:29:49.747Z\",\n    \"updatedAt\": \"2024-06-02T13:29:49.747Z\",\n    \"deletedAt\": null,\n    \"id\": 5,\n    \"model\": \"Terios\",\n    \"year\": \"2016\",\n    \"price\": \"250000\",\n    \"image\": \"1717334989743-dff.png\",\n    \"creator\": {\n        \"createdAt\": \"2024-06-02T13:09:25.189Z\",\n        \"updatedAt\": \"2024-06-02T13:26:25.783Z\",\n        \"deletedAt\": null,\n        \"id\": 1,\n        \"name\": \"Super Admin\",\n        \"email\": \"super@mail.com\",\n        \"password\": \"$2b$10$ZVFcIHiEYknNct7wE1jZjuJKfnxXF5oxc7V73MhjMxY3xOZ2V0hdK\",\n        \"role\": \"SUPER_ADMIN\",\n        \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ3ODUsImV4cCI6MTcxNzQyMTE4NX0.TYV5QKckpETQoiUH9lOq6owE9Y0ENcXabdrlHBlR67w\"\n    },\n    \"updater\": null,\n    \"deleter\": null\n}"}],"_postman_id":"6ba34cce-8d5c-4e93-97dc-1df4c15162b0"},{"name":"delete","id":"e9e18fd2-9799-46b0-9ebc-97921f472f84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/4","urlObject":{"path":["4"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[],"variable":[]}},"response":[{"id":"41ac2df5-8378-44a9-a6c1-2a48e09fbd0b","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/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":"39"},{"key":"ETag","value":"W/\"27-ys1fE9DhnAmAfWu6rgY2nTzg4SQ\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:30:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Car deleted successfully!\"\n}"},{"id":"fb5e78c2-ecec-44ee-a487-dc9730e425a3","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-9vXVLtUreCsmL+dw1AMWr3XXixI\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:31:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized Role: USER role is not allowed\"\n}"}],"_postman_id":"e9e18fd2-9799-46b0-9ebc-97921f472f84"},{"name":"update","id":"6dc06f58-0503-4f4a-acfa-00efe8d25d5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Avanza","type":"text","disabled":true},{"key":"year","value":"2017","type":"text","disabled":true},{"key":"price","value":"","type":"text","disabled":true},{"key":"image","type":"file","src":"/C:/Users/Andika/Pictures/Untitled.png"}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/26","urlObject":{"path":["26"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[],"variable":[]}},"response":[{"id":"0efa3464-0907-4991-9dd5-6786cd1d41ed","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Avanza","type":"text","disabled":true},{"key":"year","value":"2017","type":"text"},{"key":"price","value":"","type":"text","disabled":true},{"key":"image","type":"file","value":"","disabled":true}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/2"},"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":"206"},{"key":"ETag","value":"W/\"ce-NW00/QNs3reh9tKZwTRI/KLhJ9Q\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:30:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Update success\",\n    \"car\": {\n        \"createdAt\": \"2024-06-02T13:09:25.318Z\",\n        \"updatedAt\": \"2024-06-02T13:30:55.703Z\",\n        \"deletedAt\": null,\n        \"id\": 2,\n        \"model\": \"Xenia\",\n        \"year\": \"2017\",\n        \"price\": \"320000\",\n        \"image\": \"seeder.jpg\"\n    }\n}"},{"id":"3b6fa9f2-39bb-4719-9978-c05577cd5550","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"model","value":"Avanza","type":"text","disabled":true},{"key":"year","value":"2017","type":"text"},{"key":"price","value":"","type":"text","disabled":true},{"key":"image","type":"file","value":"","disabled":true}]},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-9vXVLtUreCsmL+dw1AMWr3XXixI\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:31:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized Role: USER role is not allowed\"\n}"}],"_postman_id":"6dc06f58-0503-4f4a-acfa-00efe8d25d5c"},{"name":"search","id":"ef95d56c-31f5-443c-a44e-0597fdfa2000","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/search?withDriver=true&startRent=2024-08-23&capacity=1","urlObject":{"path":["search"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"query":[{"key":"withDriver","value":"true"},{"key":"startRent","value":"2024-08-23"},{"key":"capacity","value":"1"}],"variable":[]}},"response":[{"id":"6cc81ef3-b3a4-423a-bfd6-34c64d9ea21f","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/search?withDriver=true&startRent=2024-08-23&capacity=1","host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"path":["search"],"query":[{"key":"withDriver","value":"true"},{"key":"startRent","value":"2024-08-23"},{"key":"capacity","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 25 Jul 2024 16:08:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"https://fsw-challenge-7-react.vercel.app"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"1301-k5Jc75w22w5//1bUM5L9ITEwpx4\""},{"key":"x-envoy-upstream-service-time","value":"394"},{"key":"x-koyeb-backend","value":"fra1"},{"key":"x-b3-traceid","value":"986186ee1451da0e"},{"key":"x-koyeb-glb","value":"sin1"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8a8d6962ca247d63-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 1,\n        \"model\": \"F150\",\n        \"year\": \"2022\",\n        \"rentPerDay\": 200000,\n        \"manufacture\": \"Ford\",\n        \"capacity\": 2,\n        \"transmission\": \"Automatic\",\n        \"withDriver\": true,\n        \"image\": \"car01.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Brake assist. Leather-wrapped shift knob. Glove box lamp. Air conditioning w/in-cabin microfilter.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car01.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 3,\n        \"model\": \"MKZ\",\n        \"year\": \"2021\",\n        \"rentPerDay\": 900000,\n        \"manufacture\": \"Lincoln\",\n        \"capacity\": 6,\n        \"transmission\": \"Automanual\",\n        \"withDriver\": true,\n        \"image\": \"car03.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Driver & front passenger map pockets. Direct-type tire pressure monitor system. Cargo area lamp. Glove box lamp.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car03.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 4,\n        \"model\": \"M5\",\n        \"year\": \"2018\",\n        \"rentPerDay\": 900000,\n        \"manufacture\": \"BMW\",\n        \"capacity\": 6,\n        \"transmission\": \"Manual\",\n        \"withDriver\": true,\n        \"image\": \"car04.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" 6.1L SRT V8 \\\"Hemi\\\" engine.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car04.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 6,\n        \"model\": \"Fiesta\",\n        \"year\": \"2016\",\n        \"rentPerDay\": 900000,\n        \"manufacture\": \"Ford\",\n        \"capacity\": 4,\n        \"transmission\": \"Automanual\",\n        \"withDriver\": true,\n        \"image\": \"car06.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Tilt steering column. Carpeted cargo area. Tip start system. Leather-wrapped shift knob.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car06.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 8,\n        \"model\": \"Navigator\",\n        \"year\": \"2014\",\n        \"rentPerDay\": 300000,\n        \"manufacture\": \"Lincoln\",\n        \"capacity\": 2,\n        \"transmission\": \"Manual\",\n        \"withDriver\": true,\n        \"image\": \"car08.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" XM satellite radio receiver -inc: 90 day trial subscription. Dual front illuminated visor vanity mirrors.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car08.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 10,\n        \"model\": \"X5\",\n        \"year\": \"2019\",\n        \"rentPerDay\": 300000,\n        \"manufacture\": \"BMW\",\n        \"capacity\": 6,\n        \"transmission\": \"Manual\",\n        \"withDriver\": true,\n        \"image\": \"car10.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Cargo compartment lamp. Body color fascias w/bright insert. Front/rear stabilizer bars.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car10.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 12,\n        \"model\": \"X3\",\n        \"year\": \"2018\",\n        \"rentPerDay\": 800000,\n        \"manufacture\": \"BMW\",\n        \"capacity\": 4,\n        \"transmission\": \"Automanual\",\n        \"withDriver\": true,\n        \"image\": \"car12.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Multi-reflector halogen headlamps. Speed control.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car12.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 13,\n        \"model\": \"Malibu\",\n        \"year\": \"2017\",\n        \"rentPerDay\": 900000,\n        \"manufacture\": \"Chevy\",\n        \"capacity\": 6,\n        \"transmission\": \"CVT\",\n        \"withDriver\": true,\n        \"image\": \"car13.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Leather-wrapped shift knob. Dual front illuminated visor vanity mirrors. Battery saver. Driver & front passenger map pockets.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car13.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 15,\n        \"model\": \"MKS\",\n        \"year\": \"2017\",\n        \"rentPerDay\": 900000,\n        \"manufacture\": \"Lincoln\",\n        \"capacity\": 4,\n        \"transmission\": \"Automanual\",\n        \"withDriver\": true,\n        \"image\": \"car15.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Remote fuel lid release. Electronic parking brake. Daytime running lights (DRL). Silver finish interior door handles. Back-up camera.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car15.min.jpg\"\n    },\n    {\n        \"createdAt\": \"2024-07-22T11:43:33.317Z\",\n        \"updatedAt\": \"2024-07-22T11:43:33.317Z\",\n        \"deletedAt\": null,\n        \"id\": 16,\n        \"model\": \"Silverado\",\n        \"year\": \"2021\",\n        \"rentPerDay\": 200000,\n        \"manufacture\": \"Chevy\",\n        \"capacity\": 6,\n        \"transmission\": \"Automanual\",\n        \"withDriver\": true,\n        \"image\": \"car16.min.jpg\",\n        \"startRent\": null,\n        \"endRent\": null,\n        \"description\": \" Rear window defroster. High performance suspension. 1.8L DOHC 16-valve I4 engine -inc: engine cover.\",\n        \"imageUrl\": \"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/uploads/car16.min.jpg\"\n    }\n]"},{"id":"eaa517c4-4ff9-47c2-97f0-4b5ed03c1215","name":"DTO requirement","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car/search","host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/car"],"path":["search"],"query":[{"key":"withDriver","value":"true","disabled":true},{"key":"startRent","value":"2024-08-23","disabled":true},{"key":"capacity","value":"1","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 25 Jul 2024 16:09:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"238"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"https://fsw-challenge-7-react.vercel.app"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"ee-PoVTwg185G0euIj2y8KDBxiFg6Q\""},{"key":"x-envoy-upstream-service-time","value":"168"},{"key":"x-koyeb-backend","value":"fra1"},{"key":"x-b3-traceid","value":"05177f2ec2fe3238"},{"key":"x-koyeb-glb","value":"sin1"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8a8d69d7f8827d63-CGK"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"withDriver\": \"withDriver must be a true or false; withDriver Is Required\",\n    \"startRent\": \"startRent must be in the format yyyy-mm-dd; Start Date Is Required\",\n    \"capacity\": \"Capacity must be a valid number and no symbols; Capacity Is Required\"\n}"}],"_postman_id":"ef95d56c-31f5-443c-a44e-0597fdfa2000"}],"id":"0d4dddb3-c815-4b8e-a821-adac634a4c9d","_postman_id":"0d4dddb3-c815-4b8e-a821-adac634a4c9d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","name":"ch_06","type":"collection"}}},{"name":"user","item":[{"name":"get users","id":"ebdbebff-1beb-4177-a0ec-c0582dc6c3b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/list","urlObject":{"path":["list"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"30b8f074-244e-4b1e-a022-ae5cabea95b9","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/list"},"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":"686"},{"key":"ETag","value":"W/\"2ae-ujRuoxn6htruOzWgMUduVB43b+A\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:24:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"name\": \"Admin\",\n        \"email\": \"admin@mail.com\",\n        \"role\": \"ADMIN\",\n        \"refreshToken\": null\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Test User\",\n        \"email\": \"test@mail.com\",\n        \"role\": \"USER\",\n        \"refreshToken\": null\n    },\n    {\n        \"id\": 5,\n        \"name\": \"user01\",\n        \"email\": \"user01@mail.com\",\n        \"role\": \"USER\",\n        \"refreshToken\": null\n    },\n    {\n        \"id\": 6,\n        \"name\": \"admin01\",\n        \"email\": \"admin01@mail.com\",\n        \"role\": \"ADMIN\",\n        \"refreshToken\": null\n    },\n    {\n        \"id\": 1,\n        \"name\": \"Super Admin\",\n        \"email\": \"super@mail.com\",\n        \"role\": \"SUPER_ADMIN\",\n        \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2NDcsImV4cCI6MTcxNzQyMTA0N30.RoccRpPNeB-Bt5sn_ofUjjEZDaI9WlU_dNvc1r6HX3g\"\n    }\n]"},{"id":"858ea5f3-26ee-4987-b618-6f4cf0631c10","name":"Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/list"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-9vXVLtUreCsmL+dw1AMWr3XXixI\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:24:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized Role: USER role is not allowed\"\n}"}],"_postman_id":"ebdbebff-1beb-4177-a0ec-c0582dc6c3b0"},{"name":"register","id":"6a9718ff-ab29-4352-8a97-0f3b71a7e645","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"user01\",\r\n    \"email\":\"user01@mail.com\",\r\n    \"password\":\"12345\",\r\n    \"confirmPassword\":\"1234\"\r\n}\r\n// {\r\n//     \"name\":\"admin01\",\r\n//     \"email\":\"admin01@mail.com\",\r\n//     \"password\":\"12345\",\r\n//     \"confirmPassword\":\"12345\"\r\n// }","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user","description":"<p>Normal register will make you a user, only when you <strong>LOGGED IN</strong> as SUPER ADMIN can you create an admin account</p>\n","urlObject":{"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"c7a9014a-2604-4ee5-b279-8e55b83bdf1d","name":"register user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"user01\",\r\n    \"email\":\"user01@mail.com\",\r\n    \"password\":\"12345\",\r\n    \"confirmPassword\":\"12345\"\r\n}\r\n// {\r\n//     \"name\":\"admin01\",\r\n//     \"email\":\"admin01@mail.com\",\r\n//     \"password\":\"12345\",\r\n//     \"confirmPassword\":\"12345\"\r\n// }","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"},"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":"43"},{"key":"ETag","value":"W/\"2b-+lFftZbjH2MGQL2pCU9R4YtL/yc\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:19:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"USER Registered successfully!\"\n}"},{"id":"ca003d4d-c26a-48c4-8977-c5feb29cf5fd","name":"register admin","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"// {\r\n//     \"name\":\"user01\",\r\n//     \"email\":\"user01@mail.com\",\r\n//     \"password\":\"12345\",\r\n//     \"confirmPassword\":\"12345\"\r\n// }\r\n{\r\n    \"name\":\"admin01\",\r\n    \"email\":\"admin01@mail.com\",\r\n    \"password\":\"12345\",\r\n    \"confirmPassword\":\"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"},"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":"44"},{"key":"ETag","value":"W/\"2c-JAeSNf6t3sdjhZSddzhcGHkYrMM\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:20:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"ADMIN Registered successfully!\"\n}"},{"id":"afe748e3-550c-4c28-9644-864d9da93a20","name":"DTO Requirement","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"// {\r\n//     \"name\":\"user01\",\r\n//     \"email\":\"user01@mail.com\",\r\n//     \"password\":\"12345\",\r\n//     \"confirmPassword\":\"12345\"\r\n// }\r\n// {\r\n//     \"name\":\"admin01\",\r\n//     \"email\":\"admin01@mail.com\",\r\n//     \"password\":\"12345\",\r\n//     \"confirmPassword\":\"12345\"\r\n// }\r\n{}","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"153"},{"key":"ETag","value":"W/\"99-N8fPUi9nvtHgJVjD0uq7eXp6L5E\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:25:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Name Is Required\",\n    \"email\": \"Invalid Email; Email Is Required\",\n    \"password\": \"Password Is Required\",\n    \"confirmPassword\": \"Confirm Password Is Required\"\n}"}],"_postman_id":"6a9718ff-ab29-4352-8a97-0f3b71a7e645"},{"name":"login","id":"42d81b27-3c7f-491f-82e5-ef30ebbe1c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"// {\r\n//     \"email\":\"super@mail.com\",\r\n//     \"password\":\"12345\"\r\n// }\r\n{\r\n    \"email\":\"admin@mail.com\",\r\n    \"password\":\"12345\"\r\n}\r\n// {\r\n//     \"email\":\"user01@mail.com\",\r\n//     \"password\":\"12345\"\r\n// }\r\n// {\r\n    \r\n// }","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","name":"ch_06","type":"collection"}},"urlObject":{"path":["login"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"1cbb7ba2-208f-4a85-b9a8-c26a12d0c97f","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"super@mail.com\",\r\n    \"password\":\"12345\"\r\n}\r\n// {\r\n//     \"email\":\"admin01@mail.com\",\r\n//     \"password\":\"12345\"\r\n// }\r\n// {\r\n//     \"email\":\"user01@mail.com\",\r\n//     \"password\":\"12345\"\r\n// }","options":{"raw":{"language":"json"}}},"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2MjEsImV4cCI6MTcxNzQyMTAyMX0.B-jiumKXC_Y-PcozbQBD3RWZCDnGlBjLl2XVA6Fdb7M; Max-Age=86400; Path=/; Expires=Mon, 03 Jun 2024 13:23:41 GMT; HttpOnly"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2MjEsImV4cCI6MTcxNzMzODIyMX0.KepcOEDblthm8bCPP2161xrYTMUF2kfvYzNTksWL0-I; Max-Age=3600; Path=/; Expires=Sun, 02 Jun 2024 14:23:41 GMT; HttpOnly"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"266"},{"key":"ETag","value":"W/\"10a-JK+bLp0iXPCUFp23LzWiL9cY2Xk\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:23:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2MjEsImV4cCI6MTcxNzMzODIyMX0.KepcOEDblthm8bCPP2161xrYTMUF2kfvYzNTksWL0-I\"\n}"}],"_postman_id":"42d81b27-3c7f-491f-82e5-ef30ebbe1c0b"},{"name":"refresh token","id":"d3d1ed67-38e2-4cf3-8421-b9fdec338444","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"POST","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/refresh-token","urlObject":{"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/refresh-token"],"query":[],"variable":[]}},"response":[{"id":"98700d91-3cba-4ba4-8f86-4aa7bcaedf89","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/refresh-token"},"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":"266"},{"key":"ETag","value":"W/\"10a-iwjE8QDHyGqDooKKK4LEd5ZhbY0\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:23:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2MjksImV4cCI6MTcxNzMzNDY0NH0.CPdI667ZxaPHorNEd_SNQarHBD-LKF4d-tmXadg9G8U\"\n}"}],"_postman_id":"d3d1ed67-38e2-4cf3-8421-b9fdec338444"},{"name":"logout","id":"e4fd10b6-f657-46a2-a0ce-55b2512c13c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"POST","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/logout","urlObject":{"path":["logout"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"2dfbb75f-d451-4b90-93eb-02f6ff176208","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Set-Cookie","value":"accessToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"24"},{"key":"ETag","value":"W/\"18-ez3HU6ztP+x97ArcQd0fxpuaOt0\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:23:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logged out\"\n}"}],"_postman_id":"e4fd10b6-f657-46a2-a0ce-55b2512c13c0"},{"name":"profile","id":"6917401e-f451-4659-ba04-36b5fb847877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/profile","urlObject":{"path":["profile"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"90c829c1-ee16-46bc-a079-1a363297fbe0","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/profile"},"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":"510"},{"key":"ETag","value":"W/\"1fe-D4xaFv8pX582pbEJttmnCn3e7iI\""},{"key":"Date","value":"Sun, 02 Jun 2024 13:24:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdAt\": \"2024-06-02T13:09:25.189Z\",\n    \"updatedAt\": \"2024-06-02T13:24:07.608Z\",\n    \"deletedAt\": null,\n    \"id\": 1,\n    \"name\": \"Super Admin\",\n    \"email\": \"super@mail.com\",\n    \"password\": \"$2b$10$ZVFcIHiEYknNct7wE1jZjuJKfnxXF5oxc7V73MhjMxY3xOZ2V0hdK\",\n    \"role\": \"SUPER_ADMIN\",\n    \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJOYW1lIjoiU3VwZXIgQWRtaW4iLCJ1c2VyRW1haWwiOiJzdXBlckBtYWlsLmNvbSIsInVzZXJSb2xlIjoiU1VQRVJfQURNSU4iLCJpYXQiOjE3MTczMzQ2NDcsImV4cCI6MTcxNzQyMTA0N30.RoccRpPNeB-Bt5sn_ofUjjEZDaI9WlU_dNvc1r6HX3g\"\n}"}],"_postman_id":"6917401e-f451-4659-ba04-36b5fb847877"},{"name":"delete","id":"5f6e0d29-9e0c-404f-8319-acc7e580ee26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/delete","urlObject":{"path":["delete"],"host":["https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user"],"query":[],"variable":[]}},"response":[{"id":"293dbe83-84f5-4ed6-aa87-488b14711a2b","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/user/delete"},"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":"39"},{"key":"ETag","value":"W/\"27-27o4zzUjhHNmthTJyia4gBCjpos\""},{"key":"Date","value":"Sun, 02 Jun 2024 12:52:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User deleted successfully\"\n}"}],"_postman_id":"5f6e0d29-9e0c-404f-8319-acc7e580ee26"}],"id":"c04cf2cd-cbb5-4c67-a432-ada02068cf9a","_postman_id":"c04cf2cd-cbb5-4c67-a432-ada02068cf9a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","id":"ab80939d-e9a4-4dc7-8fe0-44c891daa58b","name":"ch_06","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"11df02b3-3b19-4562-af67-5afd94a1d03b","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"2e502458-3c5a-44d4-8a68-a9391fa880f2","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiQWRtaW4iLCJ1c2VyRW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE3Mzc1ODczOTksImV4cCI6MTczNzU5MDk5OX0.Na4T-mrNEDH3vltDswID_jFx86ii_n1kqbdfWmKRiyU","type":"string"},{"key":"url","value":"https://marginal-kristel-rat-org-1f2a12bb.koyeb.app/","type":"string"}]}