{"info":{"_postman_id":"9e471432-9ab9-4514-9264-208285d24845","name":"Rent It Out API Documentation","description":"<html><head></head><body><p>A Peer-to-Peer Rental Platform for Everyday Items.</p>\n<p>Rent It Out is a rental platform where users can list items for rent, browse available items, and manage rental transactions.</p>\n<p>It’s designed for individuals or businesses who want to rent out items in various categories and for people seeking short-term rentals instead of purchasing.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"39239724","collectionId":"9e471432-9ab9-4514-9264-208285d24845","publishedId":"2sAY4xB2c8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-03T12:23:25.000Z"},"item":[{"name":"Users","item":[{"name":"Create new user","id":"56e89feb-7851-4c23-a3a1-bd35821e3255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"doe\",\r\n    \"password\": \"123\",\r\n    \"fullName\": \"Jdoe\",\r\n    \"email\" : \"john@gmail.com\",\r\n    \"phoneNumber\": 594053864,\r\n    \"address\": \"nablus\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register","description":"<p>This endpoint allows users to create a new account.</p>\n<h2 id=\"sample-request\">Sample request:</h2>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"daa18ea8-1669-4a70-8382-08d63cd74158","name":"Create new user output","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"mkittani\",\r\n    \"password\": \"123\",\r\n    \"fullName\": \"mohamad kittani\",\r\n    \"email\" : \"mohamad.kittani0502@gmail.com\",\r\n    \"phoneNumber\": 594053864,\r\n    \"address\": \"nablus\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"342"},{"key":"ETag","value":"W/\"156-2KKfYT4Amb+7wHgQnatFt+6fVwQ\""},{"key":"Date","value":"Sun, 03 Nov 2024 12:15:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User created successfully\",\n    \"user\": {\n        \"id\": 21,\n        \"username\": \"mkittani\",\n        \"password\": \"$2b$10$YB83h6.Fo0zDGV44x.LtO.0MK.aKb9Rw3bBrks9DR3Bpg7xVTbzme\",\n        \"fullName\": \"mohamad kittani\",\n        \"email\": \"mohamad.kittani0502@gmail.com\",\n        \"phoneNumber\": 594053864,\n        \"address\": \"nablus\",\n        \"updatedAt\": \"2024-11-03T12:15:46.646Z\",\n        \"createdAt\": \"2024-11-03T12:15:46.646Z\"\n    }\n}"}],"_postman_id":"56e89feb-7851-4c23-a3a1-bd35821e3255"},{"name":"Get all users","id":"e5d3003f-fbd6-43c4-92a6-c4ee466362bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/users","urlObject":{"protocol":"http","port":"8080","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9242e321-d40d-4174-9150-3c00bfd4b920","name":"Get all users output","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users"},"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":"564"},{"key":"ETag","value":"W/\"234-9IEg1YvLOXA7tV14m2ZGeRc0+wo\""},{"key":"Date","value":"Sun, 03 Nov 2024 13:24:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"username\": \"john2\",\n        \"password\": \"$2b$10$kwd0ggimI9QKfQmLq80uUu338T/onJ5XmsViD6jPzkaO09jt2JFO6\",\n        \"fullName\": \"john doe\",\n        \"email\": \"Doe1@gmail.com\",\n        \"phoneNumber\": 123456,\n        \"address\": \"nablus\",\n        \"createdAt\": \"2024-11-01T14:08:39.000Z\",\n        \"updatedAt\": \"2024-11-01T14:08:39.000Z\"\n    },\n    {\n        \"id\": 21,\n        \"username\": \"mkittani\",\n        \"password\": \"$2b$10$YB83h6.Fo0zDGV44x.LtO.0MK.aKb9Rw3bBrks9DR3Bpg7xVTbzme\",\n        \"fullName\": \"mohamad kittani\",\n        \"email\": \"mohamad.kittani0502@gmail.com\",\n        \"phoneNumber\": 594053864,\n        \"address\": \"nablus\",\n        \"createdAt\": \"2024-11-03T12:15:46.000Z\",\n        \"updatedAt\": \"2024-11-03T12:15:46.000Z\"\n    }\n]"}],"_postman_id":"e5d3003f-fbd6-43c4-92a6-c4ee466362bc"},{"name":"Get user by id","id":"c5c2ef55-68ed-4220-9a06-6a429752ca59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/user/1","urlObject":{"protocol":"http","port":"8080","path":["api","user","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f04bbee9-4a2a-493a-8022-a3fbe8c80880","name":"Get user by id","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/21"},"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":"295"},{"key":"ETag","value":"W/\"127-3vb6iJhpB2kQE+w7kyCML3ztOJQ\""},{"key":"Date","value":"Sun, 03 Nov 2024 13:26:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 21,\n    \"username\": \"mkittani\",\n    \"password\": \"$2b$10$YB83h6.Fo0zDGV44x.LtO.0MK.aKb9Rw3bBrks9DR3Bpg7xVTbzme\",\n    \"fullName\": \"mohamad kittani\",\n    \"email\": \"mohamad.kittani0502@gmail.com\",\n    \"phoneNumber\": 594053864,\n    \"address\": \"nablus\",\n    \"createdAt\": \"2024-11-03T12:15:46.000Z\",\n    \"updatedAt\": \"2024-11-03T12:15:46.000Z\"\n}"}],"_postman_id":"c5c2ef55-68ed-4220-9a06-6a429752ca59"},{"name":"Update user by id","id":"0fb7bf3b-9f24-42b8-9551-ee42ae855a46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": 592018412\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/7","urlObject":{"protocol":"http","port":"8080","path":["api","users","7"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"39729b77-fdff-4010-810d-83f14bdb8d3d","name":"Update user by id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": 592018412\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/7"},"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":"316"},{"key":"ETag","value":"W/\"13c-rrL9SGaYxv6Q00iWsol4JkjmKmM\""},{"key":"Date","value":"Sun, 03 Nov 2024 13:33:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User updated successfully\",\n    \"user\": {\n        \"id\": 7,\n        \"username\": \"john2\",\n        \"password\": \"$2b$10$kwd0ggimI9QKfQmLq80uUu338T/onJ5XmsViD6jPzkaO09jt2JFO6\",\n        \"fullName\": \"john doe\",\n        \"email\": \"Doe1@gmail.com\",\n        \"phoneNumber\": 592018412,\n        \"address\": \"nablus\",\n        \"createdAt\": \"2024-11-01T14:08:39.000Z\",\n        \"updatedAt\": \"2024-11-03T13:33:09.965Z\"\n    }\n}"}],"_postman_id":"0fb7bf3b-9f24-42b8-9551-ee42ae855a46"},{"name":"Delete user by id","id":"ac198f49-d3ee-4837-b306-527359fafc7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/2","urlObject":{"protocol":"http","port":"8080","path":["api","users","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d2a5b695-d396-48ff-a819-1bc52f8d7b57","name":"Delete user by id","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/23"},"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, 03 Nov 2024 13:31:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User deleted successfully\"\n}"}],"_postman_id":"ac198f49-d3ee-4837-b306-527359fafc7c"},{"name":"Login","id":"e8707f83-93f5-4f45-84ce-b455eb24834f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"john@gmail.com\",\r\n  \"password\": \"john123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login","urlObject":{"protocol":"http","port":"8080","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"20fd20cf-26da-4bd3-90e5-c64230d0c796","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"mohamad.kittani0502@gmail.com\",\r\n  \"password\": \"123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login"},"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":"242"},{"key":"ETag","value":"W/\"f2-2PhY6H6t4VIozaP1TOM/gPEncts\""},{"key":"Date","value":"Sun, 03 Nov 2024 13:38:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authentication successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsImVtYWlsIjoibW9oYW1hZC5raXR0YW5pMDUwMkBnbWFpbC5jb20iLCJpYXQiOjE3MzA2NDEwOTQsImV4cCI6MTczMDY0NDY5NH0.gvAS4MZN_TegYz5tslofaluE1PgqEIT6i1g0D476IFU\"\n}"}],"_postman_id":"e8707f83-93f5-4f45-84ce-b455eb24834f"},{"name":"Change password","id":"6ad084b0-48da-47ff-9f9e-9211e4214d78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oldPassword\": \"123\",\r\n    \"newPassword\": \"john123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/3/change-password","urlObject":{"protocol":"http","port":"8080","path":["api","users","3","change-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a9373310-1e3e-4aa5-91e6-b148367e3ac9","name":"Change password","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oldPassword\": \"123\",\r\n    \"newPassword\": \"john123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/7/change-password"},"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-BcqZXnJsIxPWaT5KqbeKFU83Xws\""},{"key":"Date","value":"Sun, 03 Nov 2024 13:43:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password changed successfully\"\n}"}],"_postman_id":"6ad084b0-48da-47ff-9f9e-9211e4214d78"}],"id":"8ed1dd5c-0374-4243-b362-74e7f3806b44","description":"<p>In the Users section of the Rent It Out API Documentation you will find different detailed api's which have the general goal of managing the user's operations like creating a new user, displaying all registered user, updating a registered user's information, and deleting a selected user.</p>\n","_postman_id":"8ed1dd5c-0374-4243-b362-74e7f3806b44"},{"name":"Category","item":[{"name":"Add category","id":"310f08a9-cfdf-4e08-9c13-61b3b859f5c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"testing\",\r\n    \"description\": \"This category contains all items related to home Improvement\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/","urlObject":{"protocol":"http","port":"8080","path":["api","categories",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"25ae5283-4f37-4024-aa1f-065697d13d9e","name":"Add category output","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Home Improvement\",\r\n    \"description\": \"This category contains all items related to home Improvement\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"190"},{"key":"ETag","value":"W/\"be-1bWaNlKiGemDSlrNjOGGbh2uBkc\""},{"key":"Date","value":"Sun, 03 Nov 2024 11:29:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"title\": \"Home Improvement\",\n    \"description\": \"This category contains all items related to home Improvement\",\n    \"updatedAt\": \"2024-11-03T11:29:23.958Z\",\n    \"createdAt\": \"2024-11-03T11:29:23.958Z\"\n}"}],"_postman_id":"310f08a9-cfdf-4e08-9c13-61b3b859f5c7"},{"name":"Update category details by id","id":"d7a44daa-19e6-487d-bf2b-a3dad031527a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"This category contains all items related to home Improvement and renovating your house professionally.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/1","urlObject":{"protocol":"http","port":"8080","path":["api","categories","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0709929c-6626-4785-8319-aa9a9a0fedcb","name":"Update category details by id output","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"This category contains all items related to home Improvement and renovating your house professionally.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/4"},"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":"287"},{"key":"ETag","value":"W/\"11f-hrHOJKVv1ePxPOqAzyuvpEVblS4\""},{"key":"Date","value":"Sun, 03 Nov 2024 11:33:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category updated successfully\",\n    \"category\": {\n        \"id\": 4,\n        \"title\": \"Home Improvement\",\n        \"description\": \"This category contains all items related to home Improvement and renovating your house professionally.\",\n        \"createdAt\": \"2024-11-03T11:29:23.000Z\",\n        \"updatedAt\": \"2024-11-03T11:33:06.162Z\"\n    }\n}"}],"_postman_id":"d7a44daa-19e6-487d-bf2b-a3dad031527a"},{"name":"Get all categories","id":"3c8c3011-aeaf-490e-92f5-6c4b25b69bd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/categories/","urlObject":{"protocol":"http","port":"8080","path":["api","categories",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1ea5a89f-de04-4d3b-9eaa-a08c5052113e","name":"Get all categories output","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/categories"},"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":"408"},{"key":"ETag","value":"W/\"198-5zzw3vBX8MC69vCntJacBzFR7Co\""},{"key":"Date","value":"Sun, 03 Nov 2024 11:35:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"title\": \"DOS\",\n        \"description\": \"this category contains everything you need to master DOS\",\n        \"createdAt\": \"2024-11-01T13:25:07.000Z\",\n        \"updatedAt\": \"2024-11-03T11:32:47.000Z\"\n    },\n    {\n        \"id\": 4,\n        \"title\": \"Home Improvement\",\n        \"description\": \"This category contains all items related to home Improvement and renovating your house professionally.\",\n        \"createdAt\": \"2024-11-03T11:29:23.000Z\",\n        \"updatedAt\": \"2024-11-03T11:33:06.000Z\"\n    }\n]"}],"_postman_id":"3c8c3011-aeaf-490e-92f5-6c4b25b69bd6"},{"name":"Get category by id","id":"8091b22b-dfc7-4a30-95d8-4b5989565714","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/categories/1","urlObject":{"protocol":"http","port":"8080","path":["api","categories","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9591136a-d11d-4364-99bb-7c35c44a8698","name":"Get category by id output","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/categories/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":"173"},{"key":"ETag","value":"W/\"ad-onoe/o2dliAKK/NnhnrPCaJGGRA\""},{"key":"Date","value":"Sun, 03 Nov 2024 11:37:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"title\": \"DOS\",\n    \"description\": \"this category contains everything you need to master DOS\",\n    \"createdAt\": \"2024-11-01T13:25:07.000Z\",\n    \"updatedAt\": \"2024-11-03T11:32:47.000Z\"\n}"}],"_postman_id":"8091b22b-dfc7-4a30-95d8-4b5989565714"},{"name":"Delete category by id","id":"15561d1e-8d81-4c04-91b8-3eb2804ffa15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/categories/2","urlObject":{"protocol":"http","port":"8080","path":["api","categories","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6084b45a-2df0-448a-a8a3-f3a07e8cdb5d","name":"Delete category by id output","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/categories/4"},"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-oSB9C9UJoaUkZ5Mu5gkTHkZwuV4\""},{"key":"Date","value":"Sun, 03 Nov 2024 11:39:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category deleted successfully\"\n}"}],"_postman_id":"15561d1e-8d81-4c04-91b8-3eb2804ffa15"}],"id":"77647187-b82d-4b96-9cf2-51e0aacef34c","_postman_id":"77647187-b82d-4b96-9cf2-51e0aacef34c","description":""},{"name":"Items","item":[{"name":"Create new item","id":"15467f08-9e2b-4a9c-a757-abf2063c2391","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 1,\r\n    \"ownerId\": 1,\r\n    \"name\" : \"home improvement course\",\r\n    \"description\": \"a course for renovating your house\",\r\n    \"pricePerDay\": \"9.4\",\r\n    \"availability\": \"false\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items","urlObject":{"protocol":"http","port":"8080","path":["api","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8d952a8e-5b9e-4189-a969-582ee62ac1a8","name":"Create new item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 2,\r\n    \"ownerId\": 21,\r\n    \"name\" : \"DOS book\",\r\n    \"description\": \"a book to teach u all details, tips and tricks\",\r\n    \"pricePerDay\": \"9.4\",\r\n    \"availability\": \"false\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"283"},{"key":"ETag","value":"W/\"11b-39dCeC/sBYOZypiTYL1FKuSpz48\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:04:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item created successfully\",\n    \"item\": {\n        \"id\": 6,\n        \"categoryId\": 2,\n        \"ownerId\": 21,\n        \"name\": \"DOS book\",\n        \"description\": \"a book to teach u all details, tips and tricks\",\n        \"pricePerDay\": \"9.4\",\n        \"availability\": false,\n        \"updatedAt\": \"2024-11-03T15:04:57.262Z\",\n        \"createdAt\": \"2024-11-03T15:04:57.262Z\"\n    }\n}"}],"_postman_id":"15467f08-9e2b-4a9c-a757-abf2063c2391"},{"name":"Get all items","id":"2dd4c69b-37bc-4357-ab4a-437e19a41834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/items","urlObject":{"protocol":"http","port":"8080","path":["api","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"43d4b279-750c-4055-90e3-fe0d3fa4baec","name":"Get all items","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/items"},"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":"716"},{"key":"ETag","value":"W/\"2cc-lmKSEwNxbNjQGoKiFpEgLNi0bE4\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:09:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"categoryId\": 2,\n        \"ownerId\": 21,\n        \"name\": \"DOS book\",\n        \"description\": \"a book to teach u all details, tips and tricks\",\n        \"pricePerDay\": 9.4,\n        \"availability\": false,\n        \"createdAt\": \"2024-11-03T15:07:17.000Z\",\n        \"updatedAt\": \"2024-11-03T15:07:17.000Z\",\n        \"category\": {\n            \"id\": 2,\n            \"title\": \"DOS\"\n        },\n        \"owner\": {\n            \"id\": 21,\n            \"username\": \"mkittani\",\n            \"fullName\": \"mohamad kittani\"\n        }\n    },\n    {\n        \"id\": 8,\n        \"categoryId\": 5,\n        \"ownerId\": 7,\n        \"name\": \"Home Improvement Course\",\n        \"description\": \"A comprehensive course to take you from A to Z in improving your house.\",\n        \"pricePerDay\": 16,\n        \"availability\": true,\n        \"createdAt\": \"2024-11-03T15:09:05.000Z\",\n        \"updatedAt\": \"2024-11-03T15:09:05.000Z\",\n        \"category\": {\n            \"id\": 5,\n            \"title\": \"Home Improvement\"\n        },\n        \"owner\": {\n            \"id\": 7,\n            \"username\": \"john2\",\n            \"fullName\": \"john doe\"\n        }\n    }\n]"}],"_postman_id":"2dd4c69b-37bc-4357-ab4a-437e19a41834"},{"name":"Get item by id","id":"0ba5f318-b5cf-4d96-b0a0-f9e770a3f979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/1","urlObject":{"protocol":"http","port":"8080","path":["api","items","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"99e8945a-55d0-43a9-a950-18530cd7c79e","name":"Get item by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/6"},"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":"337"},{"key":"ETag","value":"W/\"151-5bVa7xj2gQX1I0IClTvHIf9e9vg\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:05:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"categoryId\": 2,\n    \"ownerId\": 21,\n    \"name\": \"DOS book\",\n    \"description\": \"a book to teach u all details, tips and tricks\",\n    \"pricePerDay\": 9.4,\n    \"availability\": false,\n    \"createdAt\": \"2024-11-03T15:04:57.000Z\",\n    \"updatedAt\": \"2024-11-03T15:04:57.000Z\",\n    \"category\": {\n        \"id\": 2,\n        \"title\": \"DOS\"\n    },\n    \"owner\": {\n        \"id\": 21,\n        \"username\": \"mkittani\",\n        \"fullName\": \"mohamad kittani\"\n    }\n}"}],"_postman_id":"0ba5f318-b5cf-4d96-b0a0-f9e770a3f979"},{"name":"Update item by id","id":"d0481f60-06d5-4f3b-b63a-c8b3c4a9ea61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"availability\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items/1","urlObject":{"protocol":"http","port":"8080","path":["api","items","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b6c2baf-9785-4676-8152-61eac04112f1","name":"Update item by id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"availability\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items/6"},"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":"280"},{"key":"ETag","value":"W/\"118-Opx+YrT7Vg9EgqPilnbk/Nfa5e4\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:05:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item updated successfully\",\n    \"item\": {\n        \"id\": 6,\n        \"categoryId\": 2,\n        \"ownerId\": 21,\n        \"name\": \"DOS book\",\n        \"description\": \"a book to teach u all details, tips and tricks\",\n        \"pricePerDay\": 9.4,\n        \"availability\": true,\n        \"createdAt\": \"2024-11-03T15:04:57.000Z\",\n        \"updatedAt\": \"2024-11-03T15:05:39.096Z\"\n    }\n}"}],"_postman_id":"d0481f60-06d5-4f3b-b63a-c8b3c4a9ea61"},{"name":"Delete item by id","id":"f813e423-9b3b-40c1-bbee-2427a576d7bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/items/2","urlObject":{"protocol":"http","port":"8080","path":["api","items","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a6dc797-165a-4779-b4bb-a72f5bf17bb5","name":"Delete item by id","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/items/6"},"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-VVdzXD6Jr0fzG+tC8LaVRbGWhsE\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:06:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item deleted successfully\"\n}"}],"_postman_id":"f813e423-9b3b-40c1-bbee-2427a576d7bd"}],"id":"8b5b4169-c4a0-453b-931e-3d22f2ca0bd5","_postman_id":"8b5b4169-c4a0-453b-931e-3d22f2ca0bd5","description":""},{"name":"Transactions","item":[{"name":"External API Currency Converter","item":[{"name":"Currency convertor USD to ILS","id":"1c3731d3-eba0-4894-972e-c1dcc84bb177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions/2/convert-cost?currency=ILS","urlObject":{"protocol":"http","port":"8080","path":["api","transactions","2","convert-cost"],"host":["localhost"],"query":[{"key":"currency","value":"ILS"}],"variable":[]}},"response":[{"id":"c32e0ff6-82a5-46cc-b84f-947fe5d44920","name":"Currency convertor USD to ILS","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/transactions/2/convert-cost?currency=ILS","protocol":"http","host":["localhost"],"port":"8080","path":["api","transactions","2","convert-cost"],"query":[{"key":"currency","value":"ILS"}]}},"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":"102"},{"key":"ETag","value":"W/\"66-2dfLF+KlfRV3Q7DatlsG0pHhkls\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:36:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"originalCurrency\": \"USD\",\n    \"targetCurrency\": \"ILS\",\n    \"originalPriceToPay\": 47,\n    \"convertedPriceToPay\": 176.11\n}"}],"_postman_id":"1c3731d3-eba0-4894-972e-c1dcc84bb177"},{"name":"Currency convertor USD to JOD","id":"c2c949f6-47c0-4f15-b2ed-58dbe067474b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions/2/convert-cost?currency=JOD","urlObject":{"protocol":"http","port":"8080","path":["api","transactions","2","convert-cost"],"host":["localhost"],"query":[{"key":"currency","value":"JOD"}],"variable":[]}},"response":[{"id":"c01439a6-1edc-48b6-bb04-abfde7917224","name":"Currency convertor USD to JOD","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/transactions/2/convert-cost?currency=JOD","protocol":"http","host":["localhost"],"port":"8080","path":["api","transactions","2","convert-cost"],"query":[{"key":"currency","value":"JOD"}]}},"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":"101"},{"key":"ETag","value":"W/\"65-ni1KKYSVV3fs+c/jDpbqg1tRw0M\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:34:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"originalCurrency\": \"USD\",\n    \"targetCurrency\": \"JOD\",\n    \"originalPriceToPay\": 47,\n    \"convertedPriceToPay\": 33.32\n}"}],"_postman_id":"c2c949f6-47c0-4f15-b2ed-58dbe067474b"}],"id":"c20de4dd-e5ce-46cb-b540-b6911bbc6845","_postman_id":"c20de4dd-e5ce-46cb-b540-b6911bbc6845","description":""},{"name":"Create new transaction","id":"5dac1cdb-6a76-46d2-994a-9a7c569d3858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"itemId\": 1,\r\n  \"renterId\": 1,\r\n  \"rentalDuration\": 5,\r\n  \"pricePerDay\": 3,\r\n  \"priceToPay\":16\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions","urlObject":{"protocol":"http","port":"8080","path":["api","transactions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"30e9438f-2128-45db-b090-2f000cc515c5","name":"Create new transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"itemId\": 1,\r\n  \"renterId\": 1,\r\n  \"rentalDuration\": 5,\r\n  \"pricePerDay\": 3,\r\n  \"priceToPay\":16\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"224"},{"key":"ETag","value":"W/\"e0-rnHyvi/6mBAKyeTGgBf8tB2sCTM\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:21:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction created successfully\",\n    \"transaction\": {\n        \"id\": 1,\n        \"itemId\": 1,\n        \"renterId\": 1,\n        \"rentalDuration\": 5,\n        \"pricePerDay\": 9.4,\n        \"priceToPay\": 47,\n        \"updatedAt\": \"2024-11-03T19:21:51.269Z\",\n        \"createdAt\": \"2024-11-03T19:21:51.269Z\"\n    }\n}"}],"_postman_id":"5dac1cdb-6a76-46d2-994a-9a7c569d3858"},{"name":"Get all transactions","id":"83288683-cbfa-47a1-b91d-62045ef43662","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions","urlObject":{"protocol":"http","port":"8080","path":["api","transactions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d8f1971e-58ef-4cb6-95df-2ac2b9694ef7","name":"Get all transactions","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions"},"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":"355"},{"key":"ETag","value":"W/\"163-ydyEdDNUPYLe54rf4u9o2cwNEOc\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:22:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"itemId\": 1,\n        \"renterId\": 1,\n        \"rentalDuration\": 5,\n        \"pricePerDay\": 9.4,\n        \"priceToPay\": 47,\n        \"createdAt\": \"2024-11-03T19:21:51.000Z\",\n        \"updatedAt\": \"2024-11-03T19:21:51.000Z\",\n        \"deliveryOptionId\": null,\n        \"item\": {\n            \"id\": 1,\n            \"name\": \"DOS book\",\n            \"description\": \"a book to teach u all details, tips and tricks\"\n        },\n        \"renter\": {\n            \"id\": 1,\n            \"username\": \"mkittani\",\n            \"fullName\": \"mohamad kittani\"\n        }\n    }\n]"}],"_postman_id":"83288683-cbfa-47a1-b91d-62045ef43662"},{"name":"Get transaction by id","id":"d04a2d8e-bd7c-44cd-9d28-f7fc204ccf5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions/1","urlObject":{"protocol":"http","port":"8080","path":["api","transactions","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7a59664f-85e8-4252-ae2a-03529fe6b766","name":"Get transaction by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions/1"},"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":"353"},{"key":"ETag","value":"W/\"161-w8f1bn7JLP5jh/ScNyVWsO7a0Cg\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:22:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"itemId\": 1,\n    \"renterId\": 1,\n    \"rentalDuration\": 5,\n    \"pricePerDay\": 9.4,\n    \"priceToPay\": 47,\n    \"createdAt\": \"2024-11-03T19:21:51.000Z\",\n    \"updatedAt\": \"2024-11-03T19:21:51.000Z\",\n    \"deliveryOptionId\": null,\n    \"item\": {\n        \"id\": 1,\n        \"name\": \"DOS book\",\n        \"description\": \"a book to teach u all details, tips and tricks\"\n    },\n    \"renter\": {\n        \"id\": 1,\n        \"username\": \"mkittani\",\n        \"fullName\": \"mohamad kittani\"\n    }\n}"}],"_postman_id":"d04a2d8e-bd7c-44cd-9d28-f7fc204ccf5f"},{"name":"Update transaction by id","id":"65b412f9-0f1a-4de6-b848-75d8b85dc3dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"rentalDuration\": 7,\r\n  \"pickupMethod\": \"in-store\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions/1","urlObject":{"protocol":"http","port":"8080","path":["api","transactions","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"755d6591-f421-46c7-b4e5-294a6441d5c3","name":"Update transaction by id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"rentalDuration\": 7,\r\n  \"pickupMethod\": \"in-store\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions/1"},"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":"250"},{"key":"ETag","value":"W/\"fa-RTgQlnUwdkps9WLcVxsgVSpIdIE\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:23:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction updated successfully\",\n    \"transaction\": {\n        \"id\": 1,\n        \"itemId\": 1,\n        \"renterId\": 1,\n        \"rentalDuration\": 7,\n        \"pricePerDay\": 9.4,\n        \"priceToPay\": 65.8,\n        \"createdAt\": \"2024-11-03T19:21:51.000Z\",\n        \"updatedAt\": \"2024-11-03T19:23:07.020Z\",\n        \"deliveryOptionId\": null\n    }\n}"}],"_postman_id":"65b412f9-0f1a-4de6-b848-75d8b85dc3dd"},{"name":"Delete transaction by ID","id":"c7658123-cc02-4a3e-b363-a9780019a928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/transactions/1","urlObject":{"protocol":"http","port":"8080","path":["api","transactions","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8c4ee6c5-aa1c-4b31-a14b-a97523a48b0b","name":"New Request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/transactions/1"},"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":"46"},{"key":"ETag","value":"W/\"2e-xfAKiFlfWbf6imVvPtHJarDj8yg\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:25:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction deleted successfully\"\n}"}],"_postman_id":"c7658123-cc02-4a3e-b363-a9780019a928"}],"id":"336b245c-a910-45ef-9ca3-f7ccaba04794","_postman_id":"336b245c-a910-45ef-9ca3-f7ccaba04794","description":""},{"name":"Security deposits","item":[{"name":"Create sec deposit","id":"8ece79cb-ff00-4304-9fc5-2fc869ca1461","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"transactionId\": 2,\r\n    \"amount\": 90.00,\r\n    \"status\": \"rejected\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/security-deposits","urlObject":{"protocol":"http","port":"8080","path":["api","security-deposits"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c9a54144-a398-452e-8c24-e40d41f5fb62","name":"Create sec deposit","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"transactionId\": 1,\r\n    \"amount\": 50.00,\r\n    \"status\": \"pending\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/security-deposits"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"ETag","value":"W/\"9f-k18P0Pqz/vEv3oG6nfS8pWxq250\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:23:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1,\n        \"transactionId\": 1,\n        \"amount\": 50,\n        \"status\": \"pending\",\n        \"updatedAt\": \"2024-11-03T19:23:22.983Z\",\n        \"createdAt\": \"2024-11-03T19:23:22.983Z\"\n    }\n}"}],"_postman_id":"8ece79cb-ff00-4304-9fc5-2fc869ca1461"},{"name":"Get all sec deposits","id":"40493949-0f2f-46b9-9b4f-32c9d09f501c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/security-deposits","urlObject":{"protocol":"http","port":"8080","path":["api","security-deposits"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3dfe3d66-144e-4bee-b397-74fee427bb14","name":"Get all sec deposits","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/security-deposits"},"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":"137"},{"key":"ETag","value":"W/\"89-/MXz1ejeZcJx1w+6ZJ/whlgFrt0\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:23:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"transactionId\": 1,\n        \"amount\": 50,\n        \"status\": \"pending\",\n        \"createdAt\": \"2024-11-03T19:23:22.000Z\",\n        \"updatedAt\": \"2024-11-03T19:23:22.000Z\"\n    }\n]"}],"_postman_id":"40493949-0f2f-46b9-9b4f-32c9d09f501c"},{"name":"Get sec deposit by id","id":"c314abc2-158f-4cd4-ad7a-6d81c95d9612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/security-deposits/1","urlObject":{"protocol":"http","port":"8080","path":["api","security-deposits","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"70fd18f9-57eb-4d54-8c26-744c89160bdf","name":"Get sec deposit by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/security-deposits/1"},"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":"135"},{"key":"ETag","value":"W/\"87-jTUN+3cupqPtspDe76bJOcF8Ry0\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:23:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"transactionId\": 1,\n    \"amount\": 50,\n    \"status\": \"pending\",\n    \"createdAt\": \"2024-11-03T19:23:22.000Z\",\n    \"updatedAt\": \"2024-11-03T19:23:22.000Z\"\n}"}],"_postman_id":"c314abc2-158f-4cd4-ad7a-6d81c95d9612"},{"name":"Update sec deposit by id","id":"68a60713-b7e2-45e8-b2eb-393505f33b64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 600.00,\r\n    \"status\": \"accepted\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/security-deposits/3","urlObject":{"protocol":"http","port":"8080","path":["api","security-deposits","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"60b632a2-d06d-42c3-bc69-56cc4d3c2bf7","name":"Update sec deposit by id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 600.00,\r\n    \"status\": \"completed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/security-deposits/1"},"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":"51"},{"key":"ETag","value":"W/\"33-be3WaeF+nS/7tr11d5Fae0T4wHM\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:24:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Security deposit updated successfully\"\n}"}],"_postman_id":"68a60713-b7e2-45e8-b2eb-393505f33b64"},{"name":"Delete sec deposit by id","id":"463aeb0e-2465-410c-bbaa-2741a4301186","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/security-deposits/2","urlObject":{"protocol":"http","port":"8080","path":["api","security-deposits","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3ce95354-fe4d-43f5-9cc6-7276168b3897","name":"Delete sec deposit by id","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/security-deposits/1"},"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":"51"},{"key":"ETag","value":"W/\"33-bJR8Mf9iHziHM/P86fOpfO5ISNk\""},{"key":"Date","value":"Sun, 03 Nov 2024 19:24:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Security deposit deleted successfully\"\n}"}],"_postman_id":"463aeb0e-2465-410c-bbaa-2741a4301186"}],"id":"3a58e75b-a729-4f0d-9012-0ca102a225f9","_postman_id":"3a58e75b-a729-4f0d-9012-0ca102a225f9","description":""},{"name":"Delivery","item":[{"name":"Add delivery options","id":"a3a8d555-3fa7-4f4f-8c47-f52e3990f752","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"by air\",\r\n    \"fee\": 50,\r\n    \"estimatedTime\": 10,\r\n    \"description\": \"FRAGILE! Handle package with care.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/deliveryoptions","urlObject":{"protocol":"http","port":"8080","path":["api","deliveryoptions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a0ee8f9c-8283-4f71-9000-d5706739afc4","name":"Add_deliveryOptions","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"in-person\",\r\n    \"fee\": 5,\r\n    \"estimatedTime\": 3,\r\n    \"description\": \"FRAGILE! Handle package with care.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/deliveryoptions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"242"},{"key":"ETag","value":"W/\"f2-eBnVuLZhbELG7PYdi5cK6dZFRLU\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:38:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Delivery option created successfully\",\n    \"option\": {\n        \"id\": 3,\n        \"type\": \"in-person\",\n        \"fee\": 5,\n        \"estimatedTime\": 3,\n        \"description\": \"FRAGILE! Handle package with care.\",\n        \"updatedAt\": \"2024-11-03T15:38:49.893Z\",\n        \"createdAt\": \"2024-11-03T15:38:49.893Z\"\n    }\n}"}],"_postman_id":"a3a8d555-3fa7-4f4f-8c47-f52e3990f752"},{"name":"get all delivery options","id":"6e0d5736-0626-4ee1-979c-40a18a029a21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/deliveryoptions","urlObject":{"protocol":"http","port":"8080","path":["api","deliveryoptions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ccf94d11-8c3b-4a71-b1a0-27ee8869195e","name":"get_all_deliveryOptions","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/deliveryoptions"},"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":"372"},{"key":"ETag","value":"W/\"174-SNv7rw6xDmbnj/ktdRL3zWLDJzc\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:39:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"type\": \"shipping\",\n        \"fee\": 10,\n        \"estimatedTime\": 6,\n        \"description\": \"Keep package in a dry ventilated space.\",\n        \"createdAt\": \"2024-11-03T15:38:27.000Z\",\n        \"updatedAt\": \"2024-11-03T15:38:27.000Z\"\n    },\n    {\n        \"id\": 3,\n        \"type\": \"in-person\",\n        \"fee\": 5,\n        \"estimatedTime\": 3,\n        \"description\": \"FRAGILE! Handle package with care.\",\n        \"createdAt\": \"2024-11-03T15:38:49.000Z\",\n        \"updatedAt\": \"2024-11-03T15:38:49.000Z\"\n    }\n]"}],"_postman_id":"6e0d5736-0626-4ee1-979c-40a18a029a21"},{"name":"get delivery options by ID","id":"2b381604-cbf9-47c8-8cbd-e5b6d963c4a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/deliveryoptions/2","urlObject":{"protocol":"http","port":"8080","path":["api","deliveryoptions","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a5796ba1-178f-47ec-ba54-249fb56f42aa","name":"get_delivery_options_by_ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/deliveryoptions/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":"182"},{"key":"ETag","value":"W/\"b6-9X93DZudSq4DAuQvGfnTEobQXTY\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:40:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"type\": \"in-person\",\n    \"fee\": 5,\n    \"estimatedTime\": 3,\n    \"description\": \"FRAGILE! Handle package with care.\",\n    \"createdAt\": \"2024-11-03T15:38:49.000Z\",\n    \"updatedAt\": \"2024-11-03T15:38:49.000Z\"\n}"}],"_postman_id":"2b381604-cbf9-47c8-8cbd-e5b6d963c4a6"},{"name":"update delivery options by ID","id":"9e8d0ef6-27f4-44f2-84df-1c70676a484a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"estimatedTime\": \"20\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/deliveryoptions//2","urlObject":{"protocol":"http","port":"8080","path":["api","deliveryoptions","","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c22c5b5a-dcae-44e3-9e0b-2b7997068996","name":"PUT_ID","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"estimatedTime\": \"15\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/deliveryoptions//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":"250"},{"key":"ETag","value":"W/\"fa-lE1XjwfJ151K/v8m0CAzz1peaEM\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:46:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Delivery option updated successfully\",\n    \"option\": {\n        \"id\": 2,\n        \"type\": \"shipping\",\n        \"fee\": 10,\n        \"estimatedTime\": \"15\",\n        \"description\": \"Keep package in a dry ventilated space.\",\n        \"createdAt\": \"2024-11-03T15:38:27.000Z\",\n        \"updatedAt\": \"2024-11-03T15:46:03.472Z\"\n    }\n}"}],"_postman_id":"9e8d0ef6-27f4-44f2-84df-1c70676a484a"},{"name":"delete delivery option by ID","id":"00953b5a-c934-41fd-885b-162d06c8313b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/deliveryoptions//2","urlObject":{"protocol":"http","port":"8080","path":["api","deliveryoptions","","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f4eba3d6-f148-4bf3-b584-b1c61f9c3b73","name":"delete_delivery","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/deliveryoptions//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":"50"},{"key":"ETag","value":"W/\"32-2U3oBHLX+9EJUA9zkTiCkdc3bcg\""},{"key":"Date","value":"Sun, 03 Nov 2024 15:46:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Delivery option deleted successfully\"\n}"}],"_postman_id":"00953b5a-c934-41fd-885b-162d06c8313b"}],"id":"40b79280-a6d1-401a-9517-72b466fabc08","_postman_id":"40b79280-a6d1-401a-9517-72b466fabc08","description":""},{"name":"Reviews","item":[{"name":"create review","id":"a55bcb2f-bd8e-43c3-9004-96ac13b5999b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"renterId\": 1,\r\n    \"itemId\": 1,\r\n    \"rating\": 5,\r\n    \"comment\": \"book was great.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/reviews","urlObject":{"protocol":"http","port":"8080","path":["api","reviews"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1a0bc9cd-a220-4d35-98f5-2308520dcbad","name":"create review","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"renterId\": 21,\r\n    \"itemId\": 7,\r\n    \"rating\": 4,\r\n    \"comment\": \"Book was in good shape but had some writing in several pages which confused me.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/reviews"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"265"},{"key":"ETag","value":"W/\"109-JNfEMgwvXY3CpnQCsN9PeGJ4QNM\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:16:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review created successfully\",\n    \"review\": {\n        \"id\": 8,\n        \"itemId\": 7,\n        \"renterId\": 21,\n        \"rating\": 4,\n        \"comment\": \"Book was in good shape but had some writing in several pages which confused me.\",\n        \"updatedAt\": \"2024-11-03T16:16:31.135Z\",\n        \"createdAt\": \"2024-11-03T16:16:31.135Z\"\n    }\n}"}],"_postman_id":"a55bcb2f-bd8e-43c3-9004-96ac13b5999b"},{"name":"get review by review ID","id":"f0279fae-53a3-4b19-a5a3-621ba38c70f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/reviews/review/2","urlObject":{"protocol":"http","port":"8080","path":["api","reviews","review","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"95e7e713-8aba-4be9-ab2f-2a1638cc19ee","name":"get review by review ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/reviews/review/9"},"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":"254"},{"key":"ETag","value":"W/\"fe-krfxagmqfjRf1ffwywNaiuEfKg8\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:21:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"renterId\": 7,\n    \"itemId\": 8,\n    \"rating\": 1,\n    \"comment\": \"The course had lots of missing parts which were quite misleading and there were some false links, i want my money back!!\",\n    \"createdAt\": \"2024-11-03T16:19:01.000Z\",\n    \"updatedAt\": \"2024-11-03T16:19:01.000Z\"\n}"}],"_postman_id":"f0279fae-53a3-4b19-a5a3-621ba38c70f9"},{"name":"get review by item ID","id":"604ba313-a554-4d9f-85c5-0eef16115530","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/reviews/item/1","urlObject":{"protocol":"http","port":"8080","path":["api","reviews","item","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f7b7edb0-2d27-4576-8009-26f9786d5813","name":"get review by item ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/reviews/item/7"},"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":"216"},{"key":"ETag","value":"W/\"d8-TFhFNpvGLIQMZT2woHQGy81XeSk\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:21:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 8,\n        \"renterId\": 21,\n        \"itemId\": 7,\n        \"rating\": 4,\n        \"comment\": \"Book was in good shape but had some writing in several pages which confused me.\",\n        \"createdAt\": \"2024-11-03T16:16:31.000Z\",\n        \"updatedAt\": \"2024-11-03T16:16:31.000Z\"\n    }\n]"}],"_postman_id":"604ba313-a554-4d9f-85c5-0eef16115530"},{"name":"update review by ID","id":"36cd12a3-ceb3-4e25-abde-c8f67c95ea58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 1,\r\n    \"comment\": \"book was horrible\"\r\n\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/reviews/1","urlObject":{"protocol":"http","port":"8080","path":["api","reviews","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1b29a3f0-6ed8-496f-9b7f-aaa5950bdb47","name":"update review by ID","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 5\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/reviews/8"},"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":"265"},{"key":"ETag","value":"W/\"109-pcCnRGMKNJp10obbhZALCIVtNbA\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:30:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review updated successfully\",\n    \"review\": {\n        \"id\": 8,\n        \"renterId\": 21,\n        \"itemId\": 7,\n        \"rating\": 5,\n        \"comment\": \"Book was in good shape but had some writing in several pages which confused me.\",\n        \"createdAt\": \"2024-11-03T16:16:31.000Z\",\n        \"updatedAt\": \"2024-11-03T16:30:41.118Z\"\n    }\n}"}],"_postman_id":"36cd12a3-ceb3-4e25-abde-c8f67c95ea58"},{"name":"delete review by ID","id":"b433ddb4-45f3-4d8e-9232-b5249c36a019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/reviews/2","urlObject":{"protocol":"http","port":"8080","path":["api","reviews","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c955123c-ac3b-40d5-b4b3-7217bebd91a0","name":"delete review by ID","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/reviews/9"},"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":"41"},{"key":"ETag","value":"W/\"29-eJZH9QbGPKzQCQgLPX3JFUdcheo\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:33:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review deleted successfully\"\n}"}],"_postman_id":"b433ddb4-45f3-4d8e-9232-b5249c36a019"}],"id":"5c052344-b091-4d37-b36a-6a1bbaf66d49","_postman_id":"5c052344-b091-4d37-b36a-6a1bbaf66d49","description":""},{"name":"Disputes","item":[{"name":"create dispute (report)","id":"0c7e8b5f-c968-4eb2-ac80-a4338e6d3e18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userId\": 1,\r\n  \"itemId\": 1,\r\n  \"type\": \"Return Issue\",\r\n  \"description\": \"Book was damaged\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes","urlObject":{"protocol":"http","port":"8080","path":["api","disputes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"24074139-dc8d-4c5d-9ade-b1ea51bd623b","name":"post_dispute(report)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userId\": 21,\r\n  \"itemId\": 7,\r\n  \"type\": \"Return Issue\",\r\n  \"description\": \"Book was damaged\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"164"},{"key":"ETag","value":"W/\"a4-EsgBIf5mk8ovt+WFV1Qp6NjXFdo\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:47:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"userId\": 21,\n    \"itemId\": 7,\n    \"type\": \"Return Issue\",\n    \"description\": \"Book was damaged\",\n    \"updatedAt\": \"2024-11-03T16:47:27.022Z\",\n    \"createdAt\": \"2024-11-03T16:47:27.022Z\"\n}"}],"_postman_id":"0c7e8b5f-c968-4eb2-ac80-a4338e6d3e18"},{"name":"get all disputes","id":"a6f4ccfe-9ef8-4840-84f2-7b989a977857","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes","urlObject":{"protocol":"http","port":"8080","path":["api","disputes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7965dbe4-b6c0-4304-b308-57c129d2ebca","name":"get all disputes","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes"},"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":"1437"},{"key":"ETag","value":"W/\"59d-yWQIwBtZdSk9nWz5ahtAfR38CuU\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:52:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"userId\": 21,\n        \"itemId\": 7,\n        \"type\": \"Return Issue\",\n        \"description\": \"Book was damaged\",\n        \"createdAt\": \"2024-11-03T16:47:27.000Z\",\n        \"updatedAt\": \"2024-11-03T16:47:27.000Z\",\n        \"user\": {\n            \"id\": 21,\n            \"username\": \"mkittani\",\n            \"password\": \"$2b$10$YB83h6.Fo0zDGV44x.LtO.0MK.aKb9Rw3bBrks9DR3Bpg7xVTbzme\",\n            \"fullName\": \"mohamad kittani\",\n            \"email\": \"mohamad.kittani0502@gmail.com\",\n            \"phoneNumber\": 594053864,\n            \"address\": \"nablus\",\n            \"createdAt\": \"2024-11-03T12:15:46.000Z\",\n            \"updatedAt\": \"2024-11-03T12:15:46.000Z\"\n        },\n        \"item\": {\n            \"id\": 7,\n            \"categoryId\": 2,\n            \"ownerId\": 21,\n            \"name\": \"DOS book\",\n            \"description\": \"a book to teach u all details, tips and tricks\",\n            \"pricePerDay\": 9.4,\n            \"availability\": false,\n            \"createdAt\": \"2024-11-03T15:07:17.000Z\",\n            \"updatedAt\": \"2024-11-03T15:07:17.000Z\"\n        }\n    },\n    {\n        \"id\": 5,\n        \"userId\": 7,\n        \"itemId\": 8,\n        \"type\": \"Return Issue\",\n        \"description\": \"Misleading information\",\n        \"createdAt\": \"2024-11-03T16:52:28.000Z\",\n        \"updatedAt\": \"2024-11-03T16:52:28.000Z\",\n        \"user\": {\n            \"id\": 7,\n            \"username\": \"john2\",\n            \"password\": \"$2b$10$rF8RQJHRJtPFBXb6QN5UjOhUAt8IgCVDqunOWEIm2RWJ8MEfpzSIW\",\n            \"fullName\": \"john doe\",\n            \"email\": \"Doe1@gmail.com\",\n            \"phoneNumber\": 592018412,\n            \"address\": \"nablus\",\n            \"createdAt\": \"2024-11-01T14:08:39.000Z\",\n            \"updatedAt\": \"2024-11-03T13:43:36.000Z\"\n        },\n        \"item\": {\n            \"id\": 8,\n            \"categoryId\": 5,\n            \"ownerId\": 7,\n            \"name\": \"Home Improvement Course\",\n            \"description\": \"A comprehensive course to take you from A to Z in improving your house.\",\n            \"pricePerDay\": 16,\n            \"availability\": true,\n            \"createdAt\": \"2024-11-03T15:09:05.000Z\",\n            \"updatedAt\": \"2024-11-03T15:09:05.000Z\"\n        }\n    }\n]"}],"_postman_id":"a6f4ccfe-9ef8-4840-84f2-7b989a977857"},{"name":"get dispute by ID","id":"f082204e-f1ff-4322-a9f1-9749973912e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/disputes/1","urlObject":{"protocol":"http","port":"8080","path":["api","disputes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5cdb0eab-02d7-47c1-8793-145db8e6e15a","name":"get_by_user_id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/disputes/4"},"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":"709"},{"key":"ETag","value":"W/\"2c5-RrPtbGmVpVHrz/Jz6x9p2yyDEcQ\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:51:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"userId\": 21,\n    \"itemId\": 7,\n    \"type\": \"Return Issue\",\n    \"description\": \"Book was damaged\",\n    \"createdAt\": \"2024-11-03T16:47:27.000Z\",\n    \"updatedAt\": \"2024-11-03T16:47:27.000Z\",\n    \"user\": {\n        \"id\": 21,\n        \"username\": \"mkittani\",\n        \"password\": \"$2b$10$YB83h6.Fo0zDGV44x.LtO.0MK.aKb9Rw3bBrks9DR3Bpg7xVTbzme\",\n        \"fullName\": \"mohamad kittani\",\n        \"email\": \"mohamad.kittani0502@gmail.com\",\n        \"phoneNumber\": 594053864,\n        \"address\": \"nablus\",\n        \"createdAt\": \"2024-11-03T12:15:46.000Z\",\n        \"updatedAt\": \"2024-11-03T12:15:46.000Z\"\n    },\n    \"item\": {\n        \"id\": 7,\n        \"categoryId\": 2,\n        \"ownerId\": 21,\n        \"name\": \"DOS book\",\n        \"description\": \"a book to teach u all details, tips and tricks\",\n        \"pricePerDay\": 9.4,\n        \"availability\": false,\n        \"createdAt\": \"2024-11-03T15:07:17.000Z\",\n        \"updatedAt\": \"2024-11-03T15:07:17.000Z\"\n    }\n}"}],"_postman_id":"f082204e-f1ff-4322-a9f1-9749973912e9"},{"name":"update dispute using ID","id":"8aeeebf3-d0e7-47d7-ae40-50ef722a833f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"Refund \"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes/1","urlObject":{"protocol":"http","port":"8080","path":["api","disputes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1ac71ac1-088d-4250-aefd-2ed29d113834","name":"update_report_usingID","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"Refund Issue\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/disputes/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":"169"},{"key":"ETag","value":"W/\"a9-8ufznkL5hRhZnv4H+3RDKetRkZU\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:54:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"userId\": 7,\n    \"itemId\": 8,\n    \"type\": \"Refund Issue\",\n    \"description\": \"Misleading information\",\n    \"createdAt\": \"2024-11-03T16:52:28.000Z\",\n    \"updatedAt\": \"2024-11-03T16:54:01.365Z\"\n}"}],"_postman_id":"8aeeebf3-d0e7-47d7-ae40-50ef722a833f"},{"name":"delete dispute","id":"145f11c8-7f0e-4759-9976-8a18da9004cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/disputes/1","urlObject":{"protocol":"http","port":"8080","path":["api","disputes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"78a4bb27-f1bb-4cc4-bca6-2397c8bee788","name":"delete_report","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/disputes/4"},"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":"29"},{"key":"ETag","value":"W/\"1d-PE4X2wq4HJ9NsfjE1ryC4QUWV3o\""},{"key":"Date","value":"Sun, 03 Nov 2024 16:54:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dispute deleted\"\n}"}],"_postman_id":"145f11c8-7f0e-4759-9976-8a18da9004cb"}],"id":"895bd922-8205-4419-a122-26226d2caff7","_postman_id":"895bd922-8205-4419-a122-26226d2caff7","description":""}]}