{"info":{"_postman_id":"e75e904a-11d1-4141-8f22-c2c70df2957e","name":"Melifera-Revamp","description":"<html><head></head><body><p><em>A web platform meticulously designed to facilitate users in uploading advertisements for various bee-related products, services, and related items. This project seeks to create a secure and controlled environment where bee enthusiasts and businesses can connect and share their offerings with the community.</em></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"19542842","collectionId":"e75e904a-11d1-4141-8f22-c2c70df2957e","publishedId":"2s9YJhyLJL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"1E90FF"},"publishDate":"2023-10-10T20:47:08.000Z"},"item":[{"name":"Authenticate Collection","item":[{"name":"authenticate","id":"7e6874ce-e55c-42e0-a1c9-bd43e3a41160","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"dzhan_rafetov\",\n  \"password\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/authenticate","description":"<p>This is the authentication section. When entering the correct details of an existing user, it will provide a JWT token that is valid for 24 hours.</p>\n<p>The JWT token is stored for 24 hours in Redis Cache. In the photo, we can see both the JWT token and the estimated time of the token.</p>\n<img src=\"https://content.pstmn.io/77f23cc4-161b-4d83-a574-d1ce497959eb/U2NyZWVuc2hvdCAyMDIzLTEwLTEwIGF0IDE3LjI4LjA4LnBuZw==\" width=\"590\" height=\"162\" />","urlObject":{"path":["authenticate"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"4500b27e-4d3a-4445-b6b3-ca567c14db64","name":"authenticate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"dzhan_rafetov\",\n  \"password\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/authenticate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 05 Oct 2023 13:38:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"jwt\": \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkemhhbl9yYWZldG92IiwiaWF0IjoxNjk2NTEzMTAyLCJleHAiOjE2OTY1OTk1MDJ9.1CNZu3xOYQ9ybhtIPtmqunPWc-llnGG53AkqBpszqdc\"\n}"},{"id":"cffe156a-9b6f-4888-8080-0c82fa347848","name":"bad credentials","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"dzhanproba\",\n  \"password\": \"canimorandi33Af\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/authenticate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 09 Oct 2023 19:29:45 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Bad credentials"}],"_postman_id":"7e6874ce-e55c-42e0-a1c9-bd43e3a41160"},{"name":"logout","id":"21edb39b-8719-4d5f-95dd-25841b572d9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/logout/","description":"<p>When you input your token into the Token Field, it will be removed from the Redis Cache.</p>\n","urlObject":{"path":["logout",""],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"9611d1d3-1838-4ae4-84d2-0b50e0ac5a35","name":"logout","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/logout/"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"Logged out successfully"}],"_postman_id":"21edb39b-8719-4d5f-95dd-25841b572d9f"}],"id":"44ad0e97-6fb7-4267-9dc7-92952820fae5","description":"<p>This collection contains endpoints related to authentication .</p>\n","_postman_id":"44ad0e97-6fb7-4267-9dc7-92952820fae5"},{"name":"User Collection","item":[{"name":"Admin Role","item":[{"name":"activateUser","id":"bd18af07-03a6-48c1-a5ac-f7fb41b6dc8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/activateUserById/:id","description":"<p>This will activate the currently inactive user by passing its ID.</p>\n","urlObject":{"path":["v1","user","admin","activateUserById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"038a7562-6389-4720-8fe0-7a7f68fb1d02","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"e3442dcb-d0fe-4439-80eb-1bf09e1d89c2","name":"activateUser","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/activateUserById/6"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Sat, 07 Oct 2023 15:21:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"c91b1689-4191-4d0f-a6bd-c3780f8b5847","name":"user not found","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/activateUserById/5"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"28"},{"key":"Date","value":"Sat, 07 Oct 2023 15:20:41 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User couldn't found by id: 5"}],"_postman_id":"bd18af07-03a6-48c1-a5ac-f7fb41b6dc8c"},{"name":"deactivateUser","id":"f23b9aa4-931c-46d4-a7dd-b54521cc46a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/deactivateUserById/:id","description":"<p>This will deactivate the currently active user by passing its ID.</p>\n","urlObject":{"path":["v1","user","admin","deactivateUserById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"362f9138-26e8-4e47-b372-2ae9d07627ec","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"a4847eab-c52e-4810-8acf-8aba3109b5bf","name":"deactivateUser","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/deactivateUserById/6"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Sat, 07 Oct 2023 15:21:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"d15e3410-a9ed-4484-9589-2976d9d813da","name":"user not found","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/user/admin/deactivateUserById/123"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"30"},{"key":"Date","value":"Sat, 07 Oct 2023 15:21:54 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User couldn't found by id: 123"}],"_postman_id":"f23b9aa4-931c-46d4-a7dd-b54521cc46a1"},{"name":"updateUserPassword","id":"2808b523-0653-4e72-aa65-642a656b9e55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"newPassword\": \"canimorandi33AAA\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/admin/updateUserPasswordById/6","description":"<p>This will update the password of the user identified by their ID.</p>\n","urlObject":{"path":["v1","user","admin","updateUserPasswordById","6"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"99a9fd26-4bff-442c-b2b0-2944e2c46aac","name":"updateUserPassword","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"newPassword\": \"canimorandi33AAA\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/admin/updateUserPasswordById/6"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Mon, 09 Oct 2023 18:50:48 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2808b523-0653-4e72-aa65-642a656b9e55"},{"name":"deleteUser","id":"0f4edf22-520d-42dd-9d15-75a3e421ef65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/v1/user/admin/deleteUserById/:id","description":"<p>This will delete the user based on their ID.</p>\n","urlObject":{"path":["v1","user","admin","deleteUserById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"24dd1a84-865f-441d-9dc1-d6bfe887c57f","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"d4f8037d-d53c-4126-929d-74b3b8135601","name":"deleteUser","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/user/admin/deleteUserById/28"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Mon, 09 Oct 2023 18:55:34 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"2f47cab9-f829-4631-946b-6b5a31705d6f","name":"user not found","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/user/admin/deleteUserById/45"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"59"},{"key":"Date","value":"Mon, 09 Oct 2023 18:53:20 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Deletion error! User couldn't be found by following id:  45"}],"_postman_id":"0f4edf22-520d-42dd-9d15-75a3e421ef65"},{"name":"getActiveUsers","id":"94abd5ee-b575-46d5-9d2b-00b95e858026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getActiveUsers","description":"<p>This will return all active users</p>\n","urlObject":{"path":["v1","user","admin","getActiveUsers"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"dcb74b2a-440e-444e-89a8-f32e3e762620","name":"getActiveUsers","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getActiveUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:00:58 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"username\": \"dzhan\",\n        \"password\": \"$2a$10$aHar0N8S2kya8rmOcRUkfuhXx8WjD220OLM.UcWzEuweurvu2cVk2\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"creationTime\": \"2023-07-29T18:52:40\",\n        \"userDetails\": [],\n        \"advertisements\": [\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    },\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    }\n                ],\n                \"archived\": false\n            }\n        ],\n        \"active\": true\n    },\n    {\n        \"id\": 27,\n        \"username\": \"test\",\n        \"password\": \"$2a$10$/r2Jb5TGkhnL294fr9FkyuTgYyIbzKWmHwiG1QZ8eQQBeGszp1esq\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"dzhanrafetov@gmail.com\",\n        \"creationTime\": \"2023-08-19T15:22:49\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": true\n    },\n    {\n        \"id\": 30,\n        \"username\": \"admin\",\n        \"password\": \"$2a$10$bQqVsCHfUHjKUiW.s7OjWuxaPbKgAATtLO2l4ualzpcM2K1YwU8h.\",\n        \"role\": \"ROLE_ADMIN\",\n        \"mail\": \"can.33@abv.bg\",\n        \"creationTime\": \"2023-08-19T22:36:00\",\n        \"userDetails\": [],\n        \"advertisements\": [\n            {\n                \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n                \"title\": \"Titleee title\",\n                \"description\": \"description on\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-10-07T11:33:19\",\n                \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": true\n            },\n            {\n                \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n                \"title\": \"The Title title\",\n                \"description\": \"The Description \",\n                \"price\": 54,\n                \"categoryName\": \"Newname\",\n                \"creationDate\": \"2023-10-07T11:33:29\",\n                \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"active\": true\n    },\n    {\n        \"id\": 61,\n        \"username\": \"dzhan_rafetov\",\n        \"password\": \"$2a$10$9IVJRqffoHxocC7o4TGD5.MbFoobmhpvApSgSjiyjivRLI4NbXXzK\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"18510@uktc-bg.com\",\n        \"creationTime\": \"2023-09-30T10:18:00\",\n        \"userDetails\": [\n            {\n                \"phoneNumber\": \"+701491969657\",\n                \"address\": \"Marko Nikolov 45\",\n                \"city\": \"Popovo\",\n                \"state\": \"Targovishte\",\n                \"postCode\": \"6420\",\n                \"country\": \"Bulgaria\",\n                \"userDetailsId\": 1\n            }\n        ],\n        \"advertisements\": [\n            {\n                \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-30T10:23:27\",\n                \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n                \"createdByUserId\": 61,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"active\": true\n    }\n]"}],"_postman_id":"94abd5ee-b575-46d5-9d2b-00b95e858026"},{"name":"getAllUsers","id":"3f33526b-e1da-41ec-9abf-056e326b6bcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getAllUsers","description":"<p>This will return all (active and inactive) users</p>\n","urlObject":{"path":["v1","user","admin","getAllUsers"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"71a713f5-a716-4b68-b3d5-25187b0cb878","name":"getAllUsers","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getAllUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:02:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"username\": \"dzhan\",\n        \"password\": \"$2a$10$aHar0N8S2kya8rmOcRUkfuhXx8WjD220OLM.UcWzEuweurvu2cVk2\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"creationTime\": \"2023-07-29T18:52:40\",\n        \"userDetails\": [],\n        \"advertisements\": [\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    }\n                ],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"active\": true\n    },\n    {\n        \"id\": 17,\n        \"username\": \"dzhannr\",\n        \"password\": \"$2a$10$3trjy4feHOrzHr9b8.zAB.G93d1/ZCf3iFo7v1xeJZuKP8XVdOev6\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.111@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:37:43\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 20,\n        \"username\": \"dzhanddnr\",\n        \"password\": \"$2a$10$bfiVBST3CHkPNH1LMYabSuoq0FLAQhbKTC0IAu0hd6Nobi7YHC6lS\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.1111@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:46:33\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 21,\n        \"username\": \"dzhanddfdnr\",\n        \"password\": \"$2a$10$pTQY8Os8WMg5/mLtDzQT1uCsWikQ8sDnFYyxQh6JwFCDiiC/P2T9C\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.111dfd1@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:54:53\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 25,\n        \"username\": \"dzhannn\",\n        \"password\": \"$2a$10$68dCa6hvuPtkrSoCY8Q5xurobvOnHadk5SphoQQ44KEurA37V6Jxe\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.99@abv.bg\",\n        \"creationTime\": \"2023-08-12T16:13:34\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 27,\n        \"username\": \"test\",\n        \"password\": \"$2a$10$/r2Jb5TGkhnL294fr9FkyuTgYyIbzKWmHwiG1QZ8eQQBeGszp1esq\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"dzhanrafetov@gmail.com\",\n        \"creationTime\": \"2023-08-19T15:22:49\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": true\n    },\n    {\n        \"id\": 29,\n        \"username\": \"nov1121\",\n        \"password\": \"$2a$10$PuptAiKFtHK1pDz8qdqpJOu2sc7zszQr8Ak2oVl3TKmr4oRf.uWM2\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"dzhanrafetov21@gmail.com\",\n        \"creationTime\": \"2023-08-19T22:25:25\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 30,\n        \"username\": \"admin\",\n        \"password\": \"$2a$10$bQqVsCHfUHjKUiW.s7OjWuxaPbKgAATtLO2l4ualzpcM2K1YwU8h.\",\n        \"role\": \"ROLE_ADMIN\",\n        \"mail\": \"can.33@abv.bg\",\n        \"creationTime\": \"2023-08-19T22:36:00\",\n        \"userDetails\": [],\n        \"advertisements\": [\n            {\n                \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n                \"title\": \"The Title title\",\n                \"description\": \"The Description \",\n                \"price\": 54,\n                \"categoryName\": \"Newname\",\n                \"creationDate\": \"2023-10-07T11:33:29\",\n                \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n                \"title\": \"Titleee title\",\n                \"description\": \"description on\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-10-07T11:33:19\",\n                \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": true\n            }\n        ],\n        \"active\": true\n    },\n    {\n        \"id\": 61,\n        \"username\": \"dzhan_rafetov\",\n        \"password\": \"$2a$10$9IVJRqffoHxocC7o4TGD5.MbFoobmhpvApSgSjiyjivRLI4NbXXzK\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"18510@uktc-bg.com\",\n        \"creationTime\": \"2023-09-30T10:18:00\",\n        \"userDetails\": [\n            {\n                \"phoneNumber\": \"+701491969657\",\n                \"address\": \"Marko Nikolov 45\",\n                \"city\": \"Popovo\",\n                \"state\": \"Targovishte\",\n                \"postCode\": \"6420\",\n                \"country\": \"Bulgaria\",\n                \"userDetailsId\": 1\n            }\n        ],\n        \"advertisements\": [\n            {\n                \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-30T10:23:27\",\n                \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n                \"createdByUserId\": 61,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"active\": true\n    }\n]"}],"_postman_id":"3f33526b-e1da-41ec-9abf-056e326b6bcb"},{"name":"getInActiveUsers","id":"79d12595-8bef-4a70-a48a-3f0042028425","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getInActiveUsers","description":"<p>This will return all inactive users</p>\n","urlObject":{"path":["v1","user","admin","getInActiveUsers"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"1f91343e-80a1-40fa-a477-dbcb06e91f10","name":"getInActiveUsers","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getInActiveUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:02:34 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 17,\n        \"username\": \"dzhannr\",\n        \"password\": \"$2a$10$3trjy4feHOrzHr9b8.zAB.G93d1/ZCf3iFo7v1xeJZuKP8XVdOev6\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.111@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:37:43\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 20,\n        \"username\": \"dzhanddnr\",\n        \"password\": \"$2a$10$bfiVBST3CHkPNH1LMYabSuoq0FLAQhbKTC0IAu0hd6Nobi7YHC6lS\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.1111@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:46:33\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 21,\n        \"username\": \"dzhanddfdnr\",\n        \"password\": \"$2a$10$pTQY8Os8WMg5/mLtDzQT1uCsWikQ8sDnFYyxQh6JwFCDiiC/P2T9C\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.111dfd1@abv.bg\",\n        \"creationTime\": \"2023-07-29T21:54:53\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 25,\n        \"username\": \"dzhannn\",\n        \"password\": \"$2a$10$68dCa6hvuPtkrSoCY8Q5xurobvOnHadk5SphoQQ44KEurA37V6Jxe\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"can.99@abv.bg\",\n        \"creationTime\": \"2023-08-12T16:13:34\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    },\n    {\n        \"id\": 29,\n        \"username\": \"nov1121\",\n        \"password\": \"$2a$10$PuptAiKFtHK1pDz8qdqpJOu2sc7zszQr8Ak2oVl3TKmr4oRf.uWM2\",\n        \"role\": \"ROLE_USER\",\n        \"mail\": \"dzhanrafetov21@gmail.com\",\n        \"creationTime\": \"2023-08-19T22:25:25\",\n        \"userDetails\": [],\n        \"advertisements\": [],\n        \"active\": false\n    }\n]"}],"_postman_id":"79d12595-8bef-4a70-a48a-3f0042028425"},{"name":"getUserById","id":"9e3d1a14-0ebb-4e60-9fc3-bbd447adfec5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserById/:id","description":"<p>This will return the user specified by its ID.</p>\n","urlObject":{"path":["v1","user","admin","getUserById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"b22b41d8-873f-4753-86b9-964e1386d293","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"1030e9ba-51ea-45ba-bddf-4629b7776b1d","name":"getUserById","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserById/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:03:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 30,\n    \"username\": \"admin\",\n    \"password\": \"$2a$10$bQqVsCHfUHjKUiW.s7OjWuxaPbKgAATtLO2l4ualzpcM2K1YwU8h.\",\n    \"role\": \"ROLE_ADMIN\",\n    \"mail\": \"can.33@abv.bg\",\n    \"creationTime\": \"2023-08-19T22:36:00\",\n    \"userDetails\": [],\n    \"advertisements\": [\n        {\n            \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n            \"title\": \"Titleee title\",\n            \"description\": \"description on\",\n            \"price\": 3,\n            \"categoryName\": \"TestCategory\",\n            \"creationDate\": \"2023-10-07T11:33:19\",\n            \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": true\n        },\n        {\n            \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n            \"title\": \"The Title title\",\n            \"description\": \"The Description \",\n            \"price\": 54,\n            \"categoryName\": \"Newname\",\n            \"creationDate\": \"2023-10-07T11:33:29\",\n            \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": false\n        }\n    ],\n    \"active\": true\n}"},{"id":"543a249c-9582-4772-a9bd-138449ca4894","name":"user not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserById/3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Date","value":"Mon, 09 Oct 2023 19:03:14 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User couldn't found by id: 3"}],"_postman_id":"9e3d1a14-0ebb-4e60-9fc3-bbd447adfec5"},{"name":"getUserByMail","id":"ff1f6670-bba7-4e6a-bd40-7c4f4ca773d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserByMail/:mail","description":"<p>This will return the user specified by its mail.</p>\n","urlObject":{"path":["v1","user","admin","getUserByMail",":mail"],"host":["localhost:8080"],"query":[],"variable":[{"id":"961580be-8d21-4aae-8885-cadfe3f8a463","type":"any","value":"<string>","key":"mail"}]}},"response":[{"id":"03142d65-b1b7-4a1c-b366-a382e1100855","name":"getUserByMail","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserByMail/dzhanrafetov@gmail.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Disposition","value":"inline;filename=f.txt"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:04:25 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 27,\n    \"username\": \"test\",\n    \"password\": \"$2a$10$/r2Jb5TGkhnL294fr9FkyuTgYyIbzKWmHwiG1QZ8eQQBeGszp1esq\",\n    \"role\": \"ROLE_USER\",\n    \"mail\": \"dzhanrafetov@gmail.com\",\n    \"creationTime\": \"2023-08-19T15:22:49\",\n    \"userDetails\": [],\n    \"advertisements\": [],\n    \"active\": true\n}"},{"id":"47a810b5-fc74-4f2e-b889-ab0939613664","name":"user not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/getUserByMail/dzhanrafetov@gmail.co"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Disposition","value":"inline;filename=f.txt"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Date","value":"Mon, 09 Oct 2023 19:04:31 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User couldn't found by mail: dzhanrafetov@gmail.co"}],"_postman_id":"ff1f6670-bba7-4e6a-bd40-7c4f4ca773d0"},{"name":"isUserIdExist","id":"a88ff90f-ae11-4ff0-9b9d-1fbad8eee715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/isUserIdExistById/:id","description":"<p>This will return whether the user exists based on its ID.Its will return true or false.</p>\n","urlObject":{"path":["v1","user","admin","isUserIdExistById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"042287db-846b-482c-af2e-aef2ce282541","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"c41cdbbc-2ffe-4a49-aca3-e81e7e1b12d1","name":"user exists","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/isUserIdExistById/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:06:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"},{"id":"cb69f147-7b59-4547-bc04-b79f766f7a8f","name":"user not exists","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/admin/isUserIdExistById/15"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:05:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"false"}],"_postman_id":"a88ff90f-ae11-4ff0-9b9d-1fbad8eee715"}],"id":"d62fd2f6-a8f6-4a82-8ef9-cb2b2c897ba4","description":"<p>These endpoints are accessible exclusively by admin.</p>\n","_postman_id":"d62fd2f6-a8f6-4a82-8ef9-cb2b2c897ba4"},{"name":"Both roles (user & admin)","item":[{"name":"getUser","id":"9857e040-292f-44ab-b866-befc552e5c6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/getUserDetails","description":"<p>This will provide information about the currently logged-in user (in session).</p>\n","urlObject":{"path":["v1","user","getUserDetails"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"d8c7c711-7577-4c1b-9a6a-cf96298d57f8","name":"getUser","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/getUserDetails"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:08:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 30,\n    \"username\": \"admin\",\n    \"password\": \"$2a$10$bQqVsCHfUHjKUiW.s7OjWuxaPbKgAATtLO2l4ualzpcM2K1YwU8h.\",\n    \"role\": \"ROLE_ADMIN\",\n    \"mail\": \"can.33@abv.bg\",\n    \"creationTime\": \"2023-08-19T22:36:00\",\n    \"userDetails\": [],\n    \"advertisements\": [\n        {\n            \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n            \"title\": \"The Title title\",\n            \"description\": \"The Description \",\n            \"price\": 54,\n            \"categoryName\": \"Newname\",\n            \"creationDate\": \"2023-10-07T11:33:29\",\n            \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": false\n        },\n        {\n            \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n            \"title\": \"Titleee title\",\n            \"description\": \"description on\",\n            \"price\": 3,\n            \"categoryName\": \"TestCategory\",\n            \"creationDate\": \"2023-10-07T11:33:19\",\n            \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": true\n        }\n    ],\n    \"active\": true\n}"}],"_postman_id":"9857e040-292f-44ab-b866-befc552e5c6e"},{"name":"New Request","id":"8a334ff8-fdbf-4bdd-bc95-e6c13bada9b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"8a334ff8-fdbf-4bdd-bc95-e6c13bada9b5"}],"id":"423d4c81-c8ef-4ad6-a13d-e30fbca7ae31","description":"<p>User endpoints for both user and admin roles.</p>\n","_postman_id":"423d4c81-c8ef-4ad6-a13d-e30fbca7ae31"},{"name":"Unauthorized access","item":[{"name":"createUser","id":"24ee43c3-bd5f-44ac-9fe5-25885a25fb2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"mail\": \"can.11@abv.bg\",\n  \"username\": \"dzhanproba\",\n  \"password\": \"canimorandi33A\"\n  \n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/","description":"<p>This is the endpoint where you create a account. Upon correctly passing the inputs (username, password, and email) through the validations, an email confirmation will be sent to the specified email address after the creation process.</p>\n<p>You will find this in your inbox:</p>\n<img src=\"https://content.pstmn.io/46d5902c-b1b0-4086-bd9d-12d79515b8c6/U2NyZWVuc2hvdCAyMDIzLTEwLTA5IGF0IDIyLjIyLjM5LnBuZw==\" width=\"554\" height=\"142\" />\n\n<p>The confirmation token in the link will expire in 3 minutes. After this period, the token will no longer be valid, and you will need to resend the confirmation token to activate your account</p>\n","urlObject":{"path":["v1","user",""],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"b07d5dfc-e590-4e43-a318-a724666562b7","name":"createUser","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"mail\": \"can.11@abv.bg\",\n  \"username\": \"dzhanproba\",\n  \"password\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:11:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 62,\n    \"username\": \"dzhanproba\",\n    \"password\": \"$2a$10$duAL9mMRj8EoxMB0VCYlf.7U7v6NL1uJoTtIhSxTzmmZiPzg8oKJy\",\n    \"role\": \"ROLE_USER\",\n    \"mail\": \"can.11@abv.bg\",\n    \"creationTime\": \"2023-10-09T22:11:49.405925\",\n    \"userDetails\": [],\n    \"advertisements\": [],\n    \"active\": false\n}"},{"id":"d580ece9-a83a-431a-b1f9-41ebd9ecffc3","name":"duplicate data","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"mail\": \"can.11@abv.bg\",\n  \"username\": \"dzhan\",\n  \"password\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"32"},{"key":"Date","value":"Mon, 09 Oct 2023 19:11:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Username or email already exists"}],"_postman_id":"24ee43c3-bd5f-44ac-9fe5-25885a25fb2f"},{"name":"confirm","id":"54d9d3c9-e458-4468-af34-9e8c7dbd69cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/confirm?token=<string>","description":"<img src=\"https://content.pstmn.io/e61f0c9e-fa8e-40ff-b97c-b5dc4bbd1352/U2NyZWVuc2hvdCAyMDIzLTEwLTA5IGF0IDIyLjIyLjM5LnBuZw==\" width=\"568\" height=\"146\" />\n\n<p>After clicking the confirmation link in your email, you will be redirected to this endpoint. It will validate the token, and if it is valid, your account will be confirmed and activated. If the token has expired or is not found, your account will remain inactive.</p>\n","urlObject":{"path":["v1","user","confirm"],"host":["localhost:8080"],"query":[{"description":{"content":"<p>(Required) token</p>\n","type":"text/plain"},"key":"token","value":"<string>"}],"variable":[]}},"response":[{"id":"9e47b7ed-db0a-401a-997b-f32b846b8987","name":"confirm","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/confirm?token=018df906-63de-4d8b-84b6-abb985719717","host":["localhost:8080"],"path":["v1","user","confirm"],"query":[{"key":"token","value":"018df906-63de-4d8b-84b6-abb985719717","description":"(Required) token"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"25"},{"key":"Date","value":"Mon, 09 Oct 2023 19:14:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Your account is confirmed"},{"id":"c16e2328-7733-4ef0-b4ee-59123053a1eb","name":"token not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/confirm?token=6c5d6dc9-fc90-4f35-9e12-60db426be7f9","host":["localhost:8080"],"path":["v1","user","confirm"],"query":[{"key":"token","value":"6c5d6dc9-fc90-4f35-9e12-60db426be7f9","description":"(Required) token"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 09 Oct 2023 19:13:19 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"token not found"}],"_postman_id":"54d9d3c9-e458-4468-af34-9e8c7dbd69cb"},{"name":"resendConfirmationToken","id":"03d5b16d-696d-42a9-a16a-45a87f073952","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/resend-confirmation?mail=<string>","description":"<p>If the token has expired, you can request a new confirmation token to be sent to your email.\"</p>\n","urlObject":{"path":["v1","user","resend-confirmation"],"host":["localhost:8080"],"query":[{"description":{"content":"<p>(Required) mail</p>\n","type":"text/plain"},"key":"mail","value":"<string>"}],"variable":[]}},"response":[{"id":"be4559a5-7898-4b68-bccf-e916608a9ee1","name":"resendConfirmationToken","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/resend-confirmation?mail=can.11@abv.bg","host":["localhost:8080"],"path":["v1","user","resend-confirmation"],"query":[{"key":"mail","value":"can.11@abv.bg","description":"(Required) mail"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"34"},{"key":"Date","value":"Mon, 09 Oct 2023 19:24:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Confirmation token has been resent"},{"id":"36af8589-fefb-4c26-9ae1-7793db26d15a","name":"user is already active","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/resend-confirmation?mail=can.11@abv.bg","host":["localhost:8080"],"path":["v1","user","resend-confirmation"],"query":[{"key":"mail","value":"can.11@abv.bg","description":"(Required) mail"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"22"},{"key":"Date","value":"Mon, 09 Oct 2023 19:14:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"User is already active"},{"id":"ca9844fb-ce84-4e0f-862c-d79ba432e307","name":"user not found by this mail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/resend-confirmation?mail=can.11@abv.bg","host":["localhost:8080"],"path":["v1","user","resend-confirmation"],"query":[{"key":"mail","value":"can.11@abv.bg","description":"(Required) mail"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"42"},{"key":"Date","value":"Mon, 09 Oct 2023 19:15:38 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User couldn't found by mail: can.11@abv.bg"}],"_postman_id":"03d5b16d-696d-42a9-a16a-45a87f073952"},{"name":"sendPasswordResetLink","id":"a0de3963-b89b-4df0-9c7b-c773224c8931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/user/send-password-reset-link?mail=<string>","description":"<p>If you have forgotten your password, you can reset it via email by clicking on the password reset link sent to your mailbox.</p>\n<img src=\"https://content.pstmn.io/69547f4c-95e1-430c-a570-212741ec074b/U2NyZWVuc2hvdCAyMDIzLTEwLTA5IGF0IDIyLjQwLjA2LnBuZw==\" alt />","urlObject":{"path":["v1","user","send-password-reset-link"],"host":["localhost:8080"],"query":[{"description":{"content":"<p>(Required) mail</p>\n","type":"text/plain"},"key":"mail","value":"<string>"}],"variable":[]}},"response":[{"id":"16691826-1975-416e-b946-f11a3b81a4a8","name":"sendPasswordResetLink","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/user/send-password-reset-link?mail=can.11@abv.bg","host":["localhost:8080"],"path":["v1","user","send-password-reset-link"],"query":[{"key":"mail","value":"can.11@abv.bg","description":"(Required) mail"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"},{"key":"Date","value":"Mon, 09 Oct 2023 19:33:48 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Password reset link has been sent to your email."}],"_postman_id":"a0de3963-b89b-4df0-9c7b-c773224c8931"},{"name":"resetPassword","id":"12338862-34ee-4633-8a16-00ee5c8da547","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"newPassword\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/reset-password?token=c96edd00-e576-45eb-a84d-05cb18c73c38","description":"<img src=\"https://content.pstmn.io/54729467-270d-4107-889c-5e97dce2a9e3/U2NyZWVuc2hvdCAyMDIzLTEwLTA5IGF0IDIyLjQwLjA2LnBuZw==\" alt />\n\n<p>When you click on the password reset link, you will be redirected to this endpoint. Here, it will verify the correctness of the token, and you will need to specify your new password.</p>\n","urlObject":{"path":["v1","user","reset-password"],"host":["localhost:8080"],"query":[{"key":"token","value":"c96edd00-e576-45eb-a84d-05cb18c73c38"}],"variable":[]}},"response":[{"id":"1c9c9e72-8fa9-4516-bf4f-3c37ae3b13a7","name":"resetPassword","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"newPassword\": \"canimorandi33A\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"localhost:8080/v1/user/reset-password?token=c96edd00-e576-45eb-a84d-05cb18c73c38","host":["localhost:8080"],"path":["v1","user","reset-password"],"query":[{"key":"token","value":"c96edd00-e576-45eb-a84d-05cb18c73c38"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:35:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 64,\n    \"username\": \"dzhanproba\",\n    \"password\": \"$2a$10$pB3qxE1KlKnpm1np2I2G5Ouhj03PUdy7PaviiH5nApeGud3DKdSqe\",\n    \"role\": \"ROLE_USER\",\n    \"mail\": \"can.11@abv.bg\",\n    \"creationTime\": \"2023-10-09T22:16:04\",\n    \"userDetails\": [],\n    \"advertisements\": [],\n    \"active\": false\n}"}],"_postman_id":"12338862-34ee-4633-8a16-00ee5c8da547"},{"name":"updateUserPasswordWithOldPassword","id":"92c592ca-f2a7-4cdf-ba7f-a34b9258c45f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"oldPassword\": \"canimorandi33A\",\n  \"newPassword\": \"canimorandi33AA\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/updateUserPasswordWithOldPassword","description":"<p>This is the endpoint where you can change your password by providing the old password along with the new one. The user requesting the password change is identified through the JWT token passed.</p>\n","urlObject":{"path":["v1","user","updateUserPasswordWithOldPassword"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"ad272ade-02fb-487a-b668-ccad51c93b23","name":"updateUserPasswordWithOldPassword","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"oldPassword\": \"canimorandi33A\",\n  \"newPassword\": \"canimorandi33AA\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/updateUserPasswordWithOldPassword"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:31:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 64,\n    \"username\": \"dzhanproba\",\n    \"password\": \"$2a$10$kwDF4r/ltftZvdaXa/Ks/eQsA8ACJUgn/pqC/pHQoXn3dl65eJBGK\",\n    \"role\": \"ROLE_USER\",\n    \"mail\": \"can.11@abv.bg\",\n    \"creationTime\": \"2023-10-09T22:16:04\",\n    \"userDetails\": [],\n    \"advertisements\": [],\n    \"active\": false\n}"},{"id":"3007de14-dc07-4e3c-aff9-a9bd0d2b8900","name":"the old password is incorrect","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"oldPassword\": \"^:xe7dMegda\",\n  \"newPassword\": \"|w[CIx..hD4&IG@X>c\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/user/updateUserPasswordWithOldPassword"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"29"},{"key":"Date","value":"Mon, 09 Oct 2023 19:30:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"The Old password is incorrect"}],"_postman_id":"92c592ca-f2a7-4cdf-ba7f-a34b9258c45f"}],"id":"48812a55-3d63-4ac1-b8b6-e3b9d9cf7ca4","description":"<p>This collection includes endpoints that do not require explicit authorization. It covers public access points and functionalities that can be accessed without authentication or specific user roles.</p>\n","_postman_id":"48812a55-3d63-4ac1-b8b6-e3b9d9cf7ca4"}],"id":"e29f63bd-8dcd-48f4-9b49-12d0d8c9891a","description":"<p>This collection includes endpoints related to the user.</p>\n","_postman_id":"e29f63bd-8dcd-48f4-9b49-12d0d8c9891a"},{"name":"User Details Collection","item":[{"name":"createUserDetails","id":"3dbaf53b-9e5c-43a5-bc0d-3207ac0a9bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"Studentski grad\",\n  \"city\": \"Sofia\",\n  \"country\": \"Bulgaria\",\n  \"phoneNumber\": \"+701491969657\",\n  \"postCode\": \"0222\",\n  \"state\": \"Sofia\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/userdetails","description":"<p>This is the endpoint where you create user details when you specify the user id.</p>\n","urlObject":{"path":["v1","userdetails"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"21879bf4-5d6e-4b37-ad1e-0691a7a0f337","name":"createUserDetails","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"Studentski grad\",\n  \"city\": \"Sofia\",\n  \"country\": \"Bulgaria\",\n  \"phoneNumber\": \"+701491969657\",\n  \"postCode\": \"0222\",\n  \"state\": \"Sofia\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/userdetails"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:46:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumber\": \"+701491969657\",\n    \"address\": \"Studentski grad\",\n    \"city\": \"Sofia\",\n    \"state\": \"Sofia\",\n    \"postCode\": \"0222\",\n    \"country\": \"Bulgaria\",\n    \"userDetailsId\": 2\n}"},{"id":"51699ba3-3f45-4a7a-9349-0518a0e4dcfc","name":"invalid format","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"Studentski grad\",\n  \"city\": \"Sofia\",\n  \"country\": \"Bulgaria\",\n  \"phoneNumber\": \"+701491969657\",\n  \"postCode\": \"022\",\n  \"state\": \"Sofia\"\n//   \"userId\": \"<long>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/userdetails"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 19:45:56 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"postCode\": \"Invalid PostCode format \"\n}"}],"_postman_id":"3dbaf53b-9e5c-43a5-bc0d-3207ac0a9bd1"},{"name":"deleteUserDetails","id":"5a6ab887-ee97-475a-8f5b-c2421fc03e92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/v1/userdetails/deleteUserDetailsById/:id","description":"<p>This is the endpoint where you can delete user details by specifying the user details ID</p>\n","urlObject":{"path":["v1","userdetails","deleteUserDetailsById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"5dee0a38-f06c-42de-b1b7-a44ce8e4fd19","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"4205bd16-e293-489d-be38-6e56a1762aac","name":"deleteUserDetails","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/userdetails/deleteUserDetailsById/1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 09 Oct 2023 19:46:59 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"1251cbbc-f67c-4c83-bada-c983d35e5b92","name":"user not found","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/userdetails/deleteUserDetailsById/155"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"51"},{"key":"Date","value":"Mon, 09 Oct 2023 19:56:53 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"User details couldn't be found by following id: 155"}],"_postman_id":"5a6ab887-ee97-475a-8f5b-c2421fc03e92"},{"name":"updateUserDetails","id":"19a567af-dd74-4805-a319-71c7a2ff8453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"Studentski grad\",\n  \"city\": \"Sofia\",\n  \"country\": \"Bulgaria\",\n  \"phoneNumber\": \"+701491969657\",\n  \"postCode\": \"0222\",\n  \"state\": \"Sofiaa\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/userdetails/updateUserDetailsByUserId/2","description":"<p>This is the endpoint where you can update user details by specifying the user details ID</p>\n","urlObject":{"path":["v1","userdetails","updateUserDetailsByUserId","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"2d62d839-e67a-4c83-b8b0-2eadf7370443","name":"updateUserDetails","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"Studentski grad\",\n  \"city\": \"Sofia\",\n  \"country\": \"Bulgaria\",\n  \"phoneNumber\": \"+701491969657\",\n  \"postCode\": \"0222\",\n  \"state\": \"Sofiaa\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/userdetails/updateUserDetailsByUserId/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 09 Oct 2023 20:10:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumber\": \"+701491969657\",\n    \"address\": \"Studentski grad\",\n    \"city\": \"Sofia\",\n    \"state\": \"Sofiaa\",\n    \"postCode\": \"0222\",\n    \"country\": \"Bulgaria\",\n    \"userDetailsId\": 2\n}"}],"_postman_id":"19a567af-dd74-4805-a319-71c7a2ff8453"}],"id":"cb8ccd84-8fba-4829-a786-b8b9296cfbeb","description":"<p>This collection includes endpoints related to the user details of the user.</p>\n","_postman_id":"cb8ccd84-8fba-4829-a786-b8b9296cfbeb"},{"name":"Advertisement Collection","item":[{"name":"Admin Role","item":[{"name":"activateAdvertisement","id":"15545dc2-d569-45f5-bd7d-23b83913b2f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/admin/activateAdvertisementById/:advId","description":"<p>This will activate the currently inactive advertisement by passing its ID.</p>\n","urlObject":{"path":["v1","advertisement","admin","activateAdvertisementById",":advId"],"host":["localhost:8080"],"query":[],"variable":[{"id":"ed69be94-17fe-4feb-bfbf-7b676b75447b","type":"any","value":"<string>","key":"advId"}]}},"response":[{"id":"2b82b2f6-8549-466d-a68e-8c36959e27c0","name":"activateAdvertisement","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/admin/activateAdvertisementById/5e463a95-0e2f-4c40-9d18-8a88701c520b"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"15545dc2-d569-45f5-bd7d-23b83913b2f5"},{"name":"archiveAdvertisement","id":"9d385a9b-799e-4f03-baf4-b73476d90d74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/admin/archiveAdvertisementById/:advId","description":"<p>This will archive the currently active advertisement by passing its ID.</p>\n","urlObject":{"path":["v1","advertisement","admin","archiveAdvertisementById",":advId"],"host":["localhost:8080"],"query":[],"variable":[{"id":"58d30470-44df-4dc4-a6ec-c499513eae45","type":"any","value":"<string>","key":"advId"}]}},"response":[{"id":"b5a78c41-6ccd-45e4-b869-4111c088c2e1","name":"archiveAdvertisement","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/admin/archiveAdvertisementById/5e463a95-0e2f-4c40-9d18-8a88701c520b"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 07 Oct 2023 08:10:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9d385a9b-799e-4f03-baf4-b73476d90d74"},{"name":"deleteAdvertisement","id":"daba37a5-0f04-444e-9fb6-a276a02a66fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/v1/advertisement/admin/deleteAdvertisementById/:id","description":"<p>This will delete the advertisement by passing its ID. However, for the deletion to occur, it needs to be first archived. If the advertisement is active, it will not be deleted.</p>\n","urlObject":{"path":["v1","advertisement","admin","deleteAdvertisementById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"873a8eb7-e686-4001-a494-c52587b6dade","type":"any","value":"<string>","key":"id"}]}},"response":[{"id":"2b4a5d55-fa81-4ad8-9e97-7e1a1645f746","name":"deleteAdvertisement","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/advertisement/admin/deleteAdvertisementById/5e463a95-0e2f-4c40-9d18-8a88701c520b"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 07 Oct 2023 08:10:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"17e48529-97d3-41f7-bf65-972a533e2390","name":"When the advertisement not archived","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/advertisement/admin/deleteAdvertisementById/5e463a95-0e2f-4c40-9d18-8a88701c520b"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"71"},{"key":"Date","value":"Sat, 07 Oct 2023 08:09:21 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"You can't delete advertisement when the advertisement is not archived !"}],"_postman_id":"daba37a5-0f04-444e-9fb6-a276a02a66fb"},{"name":"getAllAdvertisements [ARCHIVED&ACTIVE]","id":"7387d571-6dc7-484a-bedf-52e654e9a49c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/admin/getAllAdvertisementsV1","description":"<p>This will show all currently active and inactive (archived) advertisements.</p>\n","urlObject":{"path":["v1","advertisement","admin","getAllAdvertisementsV1"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"050e60d7-a051-4f67-aabb-4d1a3c090d3a","name":"getAllAdvertisements [ARCHIVED&ACTIVE]","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/admin/getAllAdvertisementsV1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 08:03:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"5e463a95-0e2f-4c40-9d18-8a88701c520b\",\n        \"title\": \"prome3nih te\",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 1,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-09-10T22:41:17\",\n        \"lastModifiedDate\": \"2023-10-06T23:41:54\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-09-30T10:23:27\",\n        \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n        \"createdByUserId\": 61,\n        \"images\": [],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n        \"title\": \"rabotaaa\",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 1,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-08-20T14:15:58\",\n        \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n        \"createdByUserId\": 6,\n        \"images\": [\n            {\n                \"image_id\": 16,\n                \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n            },\n            {\n                \"image_id\": 17,\n                \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n            },\n            {\n                \"image_id\": 19,\n                \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n            },\n            {\n                \"image_id\": 18,\n                \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n            },\n            {\n                \"image_id\": 13,\n                \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n            }\n        ],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-09-27T15:50:29\",\n        \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n        \"createdByUserId\": 6,\n        \"images\": [],\n        \"archived\": false\n    }\n]"}],"_postman_id":"7387d571-6dc7-484a-bedf-52e654e9a49c"},{"name":"getAllAdvertisementsUser [ARCHIVED&ACTIVE]","id":"ec77eda1-0285-4ea8-93e1-eefadb69f96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/admin/getAllAdvertisementsV2","description":"<p>This will retrieve all currently active and inactive (archived) advertisements, and in addition, it will provide user details and information about other advertisements added by this user.</p>\n","urlObject":{"path":["v1","advertisement","admin","getAllAdvertisementsV2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"f2c302fc-e0db-4b87-9189-e5640510603d","name":"getAllAdvertisementsUser [ARCHIVED&ACTIVE]","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/admin/getAllAdvertisementsV2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 08:18:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"advertisementId\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 3,\n        \"creationDate\": \"2023-09-30T10:23:27\",\n        \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n        \"username\": \"dzhan_rafetov\",\n        \"mail\": \"18510@uktc-bg.com\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-30T10:23:27\",\n                \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n                \"createdByUserId\": 61,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": [\n            {\n                \"phoneNumber\": \"+701491969657\",\n                \"address\": \"Marko Nikolov 45\",\n                \"city\": \"Popovo\",\n                \"state\": \"Targovishte\",\n                \"postCode\": \"6420\",\n                \"country\": \"Bulgaria\",\n                \"userDetailsId\": 1\n            }\n        ]\n    },\n    {\n        \"advertisementId\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n        \"title\": \"rabotaaa\",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 1,\n        \"creationDate\": \"2023-08-20T14:15:58\",\n        \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n        \"username\": \"dzhan\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"images\": [\n            {\n                \"image_id\": 13,\n                \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n            },\n            {\n                \"image_id\": 17,\n                \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n            },\n            {\n                \"image_id\": 18,\n                \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n            },\n            {\n                \"image_id\": 16,\n                \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n            },\n            {\n                \"image_id\": 19,\n                \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n            }\n        ],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 13,\n                        \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n                    },\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    }\n                ],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": []\n    },\n    {\n        \"advertisementId\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 3,\n        \"creationDate\": \"2023-09-27T15:50:29\",\n        \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n        \"username\": \"dzhan\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 13,\n                        \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n                    },\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    }\n                ],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": []\n    }\n]"}],"_postman_id":"ec77eda1-0285-4ea8-93e1-eefadb69f96d"}],"id":"bb23ff2c-9c60-416e-9806-b88bb03e6683","description":"<p>These endpoints are accessible exclusively by admin.</p>\n","_postman_id":"bb23ff2c-9c60-416e-9806-b88bb03e6683"},{"name":"Both roles (user & admin)","item":[{"name":"createAdvertisement","id":"9aff12ab-3b68-4fd0-a162-0a41fd3dda69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"title\": \"The Title title\",\n  \"description\": \"The Description \",\n  \"price\": \"54.00\",\n  \"categoryId\": \"3\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/advertisement","urlObject":{"path":["v1","advertisement"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"06afd625-a0cd-4415-ad01-1689a71cbf21","name":"createAdvertisement","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"title\": \"The Title title\",\n  \"description\": \"The Description \",\n  \"price\": \"54.00\",\n  \"categoryId\": \"1\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/advertisement"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 08:33:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n    \"title\": \"The Title title\",\n    \"description\": \"The Description \",\n    \"price\": 54,\n    \"categoryName\": \"TestCategory\",\n    \"creationDate\": \"2023-10-07T11:33:18.918962\",\n    \"lastModifiedDate\": \"2023-10-07T11:33:18.919046\",\n    \"createdByUserId\": 30,\n    \"images\": [],\n    \"archived\": false\n}"},{"id":"54f5e118-2b17-4ff8-84b2-a820bc1afa06","name":"validation in Title and Description","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"title\": \"The Ttle\",\n  \"description\": \"The Des \",\n  \"price\": \"54.00\",\n  \"categoryId\": \"1\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/advertisement"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 08:32:26 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"Error Advertisement description format\",\n    \"title\": \"Error Advertisement title format\"\n}"},{"id":"237a9479-87b3-433d-87d0-e3a905192f61","name":"category not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"title\": \"The Title title\",\n  \"description\": \"The Description \",\n  \"price\": \"54.00\",\n  \"categoryId\": \"3\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/advertisement"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"33"},{"key":"Date","value":"Sat, 07 Oct 2023 08:33:33 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Category couldn't found by id:  3"}],"_postman_id":"9aff12ab-3b68-4fd0-a162-0a41fd3dda69"},{"name":"archiveAdvertisementByUser","id":"20031f0d-9ecc-45f9-ae97-ad525d3c2ae0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/archiveAdvertisementByUser/:id","description":"<p>By passing the JWT token in the Bearer Token field, we identify the user. When the user provides the advertisement ID to archive it, we verify ownership. If the advertisement exists and belongs to the user, we archive it; otherwise, we return \"Advertisement not found\".</p>\n","urlObject":{"path":["v1","advertisement","archiveAdvertisementByUser",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"78d70891-a338-4368-80a7-3e965a3b0868","type":"any","value":"<string>","key":"id"}]}},"response":[{"id":"d630487c-5bf8-45ad-b1a9-01add91ade31","name":"archiveAdvertisementByUser","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/archiveAdvertisementByUser/80162662-6840-4bfc-8e32-c2bb9f574cdf"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 07 Oct 2023 08:43:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"15d98a04-89b9-4a36-8fd8-e1fde347a82b","name":"If the advertisement is not found.","originalRequest":{"method":"PATCH","header":[],"url":"localhost:8080/v1/advertisement/archiveAdvertisementByUser/ddae60dd-f851-4b81-bb8b-afb845835f94"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"73"},{"key":"Date","value":"Sat, 07 Oct 2023 08:41:30 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Advertisement couldn't found by id:  ddae60dd-f851-4b81-bb8b-afb845835f94"}],"_postman_id":"20031f0d-9ecc-45f9-ae97-ad525d3c2ae0"},{"name":"updateAdvertisement","id":"65cf714b-433a-447f-a98c-30318d107fbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"title\": \"Titlee\",\n   \"description\": \"Description\",\n    \"price\": \"34.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/advertisement/updateAdvertisementById/:id","description":"<p>By passing the JWT token in the Bearer Token field, we identify the user . When the user provides the advertisement ID to update it, we verify ownership. If the advertisement exists and belongs to the user, we update it; otherwise, we return \"Advertisement not found\".</p>\n","urlObject":{"path":["v1","advertisement","updateAdvertisementById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"e8d860db-ab4c-4b18-b544-0892194aea64","type":"any","value":"<string>","key":"id"}]}},"response":[{"id":"d65535ff-1aba-4e5d-a96b-7fb97229f277","name":"updateAdvertisement","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n      \"title\": \"Titleee title\",\n  \"description\": \"description on\",\n  \"price\": \"3\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"localhost:8080/v1/advertisement/updateAdvertisementById/:id","host":["localhost:8080"],"path":["v1","advertisement","updateAdvertisementById",":id"],"variable":[{"key":"id","value":"80162662-6840-4bfc-8e32-c2bb9f574cdf"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 09:40:58 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n    \"title\": \"Titleee title\",\n    \"description\": \"description on\",\n    \"price\": 3,\n    \"categoryName\": \"TestCategory\",\n    \"creationDate\": \"2023-10-07T11:33:19\",\n    \"lastModifiedDate\": \"2023-10-07T12:40:58.903071\",\n    \"createdByUserId\": 30,\n    \"images\": [],\n    \"archived\": true\n}"},{"id":"1f6c72bb-e5a3-4c64-ba24-1eb32814bc06","name":"validation error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"\",\n  \"price\": \"\",\n  \"title\": \"\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"localhost:8080/v1/advertisement/updateAdvertisementById/:id","host":["localhost:8080"],"path":["v1","advertisement","updateAdvertisementById",":id"],"variable":[{"id":"e8d860db-ab4c-4b18-b544-0892194aea64","key":"id","value":"<string>"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 09:38:03 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"price\": \"must not be null\",\n    \"description\": \"Error Advertisement description format\",\n    \"title\": \"Error Advertisement title format\"\n}"},{"id":"1f274837-95e8-4eb0-9bff-73cf79055650","name":"If the advertisement is not found.","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n      \"title\": \"Titleee title\",\n  \"description\": \"description on\",\n  \"price\": \"3\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"localhost:8080/v1/advertisement/updateAdvertisementById/:id","host":["localhost:8080"],"path":["v1","advertisement","updateAdvertisementById",":id"],"variable":[{"key":"id","value":"ddae60dd-f851-4b81-bb8b-afb845835f94"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Date","value":"Sat, 07 Oct 2023 09:39:42 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Advertisement couldn't found by id:  ddae60dd-f851-4b81-bb8b-afb845835f94"}],"_postman_id":"65cf714b-433a-447f-a98c-30318d107fbd"},{"name":"getArchivedAdvertisementsAddedByUser","id":"3077d1fa-86b0-4e1f-9b08-ced0ad6e1f59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getArchivedAdvertisementsAddedByUser","description":"<p>This shows archived advertisements created by the user.</p>\n","urlObject":{"path":["v1","advertisement","getArchivedAdvertisementsAddedByUser"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"61ee3cfe-4c22-4a5b-b39e-92e51f63ed4b","name":"getArchivedAdvertisementsAddedByUser","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getArchivedAdvertisementsAddedByUser"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 09:51:15 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-10-07T11:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": true\n    }\n]"}],"_postman_id":"3077d1fa-86b0-4e1f-9b08-ced0ad6e1f59"},{"name":"getAdvertisementsAddedByUser (active & archive)","id":"9ed3cd94-066a-4512-8cbf-dc48dd1c47e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getAdvertisementsAddedByUser","description":"<p>This returns all advertisements (active and archived) created by the user.</p>\n","urlObject":{"path":["v1","advertisement","getAdvertisementsAddedByUser"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"e8677874-4021-4354-8e66-cbf957e22941","name":"getAdvertisementsAddedByUser","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getAdvertisementsAddedByUser"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 09:55:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-10-07T11:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": true\n    },\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"categoryName\": \"Test \",\n        \"creationDate\": \"2023-10-07T11:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": false\n    }\n]"}],"_postman_id":"9ed3cd94-066a-4512-8cbf-dc48dd1c47e0"},{"name":"getActiveAdvertisementsAddedByUser","id":"e9ec8c92-ac58-4bb9-af69-742c26a9dc8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/v1/advertisement/getActiveAdvertisementsAddedByUser","description":"<p>This returns active advertisements created by the user.</p>\n","urlObject":{"path":["v1","advertisement","getActiveAdvertisementsAddedByUser"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"75ec770b-0afd-4ec8-a969-771413ed7750","name":"getActiveAdvertisementsAddedByUser","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/v1/advertisement/getActiveAdvertisementsAddedByUser"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:10:38 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"categoryName\": \"Test \",\n        \"creationDate\": \"2023-10-07T11:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": false\n    }\n]"}],"_postman_id":"e9ec8c92-ac58-4bb9-af69-742c26a9dc8c"},{"name":"getAdvertisementAddedByUser_V2","id":"33f94141-4e13-4bb2-bc16-f658e2b0d359","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/v1/advertisement/getAdvertisementAddedByUser_V2","description":"<p>This returns all advertisements (active and archived) uploaded by the user, including other advertisements added by the user and user details.</p>\n","urlObject":{"path":["v1","advertisement","getAdvertisementAddedByUser_V2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"670bdc7a-fa0f-44fd-a9bc-04299ad5c403","name":"getAdvertisementAddedByUser_V2","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/v1/advertisement/getAdvertisementAddedByUser_V2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:11:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"advertisementId\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 3,\n        \"creationDate\": \"2023-10-07T11:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n        \"username\": \"admin\",\n        \"mail\": \"can.33@abv.bg\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n                \"title\": \"The Title title\",\n                \"description\": \"The Description \",\n                \"price\": 54,\n                \"categoryName\": \"Test \",\n                \"creationDate\": \"2023-10-07T11:33:29\",\n                \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n                \"title\": \"Titleee title\",\n                \"description\": \"description on\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-10-07T11:33:19\",\n                \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": true\n            }\n        ],\n        \"userdetails\": []\n    },\n    {\n        \"advertisementId\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"categoryName\": \"Test \",\n        \"price\": 54,\n        \"creationDate\": \"2023-10-07T11:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n        \"username\": \"admin\",\n        \"mail\": \"can.33@abv.bg\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n                \"title\": \"The Title title\",\n                \"description\": \"The Description \",\n                \"price\": 54,\n                \"categoryName\": \"Test \",\n                \"creationDate\": \"2023-10-07T11:33:29\",\n                \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": false\n            },\n            {\n                \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n                \"title\": \"Titleee title\",\n                \"description\": \"description on\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-10-07T11:33:19\",\n                \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n                \"createdByUserId\": 30,\n                \"images\": [],\n                \"archived\": true\n            }\n        ],\n        \"userdetails\": []\n    }\n]"}],"_postman_id":"33f94141-4e13-4bb2-bc16-f658e2b0d359"},{"name":"getAdvertisementById","id":"c24826c4-3cda-4a5c-a212-4d9c04aee425","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getAdvertisementById/:id","description":"<p>This will return the advertisement by its ID.</p>\n","urlObject":{"path":["v1","advertisement","getAdvertisementById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"5fb8afca-f9d4-46f8-ad58-e62b944a2c6f","type":"any","value":"<string>","key":"id"}]}},"response":[{"id":"92bf169b-e151-4d37-bfa6-693fe6f959d1","name":"getAdvertisementById","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getAdvertisementById/80162662-6840-4bfc-8e32-c2bb9f574cdf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:27:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n    \"title\": \"Titleee title\",\n    \"description\": \"description on\",\n    \"price\": 3,\n    \"categoryName\": \"TestCategory\",\n    \"creationDate\": \"2023-10-07T11:33:19\",\n    \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n    \"createdByUserId\": 30,\n    \"images\": [],\n    \"archived\": true\n}"},{"id":"65be7867-1012-4439-9b31-c5fec9b37313","name":"advertisement is not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/getAdvertisementById/80162662-6840-4bfc-8e32-c2bb9f574cdff"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"74"},{"key":"Date","value":"Sat, 07 Oct 2023 10:27:36 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Advertisement couldn't found by id:  80162662-6840-4bfc-8e32-c2bb9f574cdff"}],"_postman_id":"c24826c4-3cda-4a5c-a212-4d9c04aee425"}],"id":"88e16e20-0b79-439a-8c2e-92fbd6dbc3a3","description":"<p>Advertisement endpoints for both user and admin roles.</p>\n","_postman_id":"88e16e20-0b79-439a-8c2e-92fbd6dbc3a3"},{"name":"Unauthorized access","item":[{"name":"getAdvertisementUserById","id":"89db28b5-2854-4829-86e0-ea6d950e91d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/all/getAdvertisementUserById/:id","description":"<p>This will return the advertisement specified by its ID, along with other advertisements added by the user, including user details.</p>\n","urlObject":{"path":["v1","advertisement","all","getAdvertisementUserById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"d1c61175-e613-4654-b745-66ac8428d0a2","name":"getAdvertisementUserById","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/advertisement/all/getAdvertisementUserById/:id","host":["localhost:8080"],"path":["v1","advertisement","all","getAdvertisementUserById",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:31:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"advertisementId\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n    \"title\": \"Titleee title\",\n    \"description\": \"description on\",\n    \"categoryName\": \"TestCategory\",\n    \"price\": 3,\n    \"creationDate\": \"2023-10-07T11:33:19\",\n    \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n    \"username\": \"admin\",\n    \"mail\": \"can.33@abv.bg\",\n    \"images\": [],\n    \"advertisementsAddedByUser\": [\n        {\n            \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n            \"title\": \"Titleee title\",\n            \"description\": \"description on\",\n            \"price\": 3,\n            \"categoryName\": \"TestCategory\",\n            \"creationDate\": \"2023-10-07T11:33:19\",\n            \"lastModifiedDate\": \"2023-10-07T12:40:59\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": true\n        },\n        {\n            \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n            \"title\": \"The Title title\",\n            \"description\": \"The Description \",\n            \"price\": 54,\n            \"categoryName\": \"Test \",\n            \"creationDate\": \"2023-10-07T11:33:29\",\n            \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n            \"createdByUserId\": 30,\n            \"images\": [],\n            \"archived\": false\n        }\n    ],\n    \"userdetails\": []\n}"}],"_postman_id":"89db28b5-2854-4829-86e0-ea6d950e91d9"},{"name":"getActiveAdvertisements","id":"435d4982-e5d9-4cca-a2c7-ce36d387668d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/all/getActiveAdvertisements","description":"<p>This will return all active advertisements added by users.</p>\n","urlObject":{"path":["v1","advertisement","all","getActiveAdvertisements"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"f1d1c255-e983-4481-81e2-7b2e009e8f91","name":"getActiveAdvertisements","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/all/getActiveAdvertisements"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:38:27 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"categoryName\": \"Test \",\n        \"creationDate\": \"2023-10-07T11:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T11:33:29\",\n        \"createdByUserId\": 30,\n        \"images\": [],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-09-30T10:23:27\",\n        \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n        \"createdByUserId\": 61,\n        \"images\": [],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n        \"title\": \"rabotaaa\",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 1,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-08-20T14:15:58\",\n        \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n        \"createdByUserId\": 6,\n        \"images\": [\n            {\n                \"image_id\": 19,\n                \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n            },\n            {\n                \"image_id\": 18,\n                \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n            },\n            {\n                \"image_id\": 13,\n                \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n            },\n            {\n                \"image_id\": 16,\n                \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n            },\n            {\n                \"image_id\": 17,\n                \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n            }\n        ],\n        \"archived\": false\n    },\n    {\n        \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"price\": 3,\n        \"categoryName\": \"TestCategory\",\n        \"creationDate\": \"2023-09-27T15:50:29\",\n        \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n        \"createdByUserId\": 6,\n        \"images\": [],\n        \"archived\": false\n    }\n]"}],"_postman_id":"435d4982-e5d9-4cca-a2c7-ce36d387668d"},{"name":"getActiveAdvertisementsByCategoryIdV1","id":"0ff50c6c-b537-4286-b8d1-188a3058bb00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/all/getActiveAdvertisementsByCategoryId-v1/:categoryId","description":"<p>This will return all advertisements for the specified category ID.</p>\n","urlObject":{"path":["v1","advertisement","all","getActiveAdvertisementsByCategoryId-v1",":categoryId"],"host":["localhost:8080"],"query":[],"variable":[{"id":"e0bcd460-c543-4eae-8560-5e0cdaea2b92","type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"11440840-e890-48a6-b5be-ef762f20dfc7","name":"getActiveAdvertisementsByCategoryIdV1","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement/all/getActiveAdvertisementsByCategoryId-v1/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:42:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"advertisementId\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 3,\n        \"creationDate\": \"2023-09-30T10:23:27\",\n        \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n        \"username\": \"dzhan_rafetov\",\n        \"mail\": \"18510@uktc-bg.com\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ce98753a-8240-4511-a8a1-334ea2f99d73\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-30T10:23:27\",\n                \"lastModifiedDate\": \"2023-09-30T10:23:27\",\n                \"createdByUserId\": 61,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": [\n            {\n                \"phoneNumber\": \"+701491969657\",\n                \"address\": \"Marko Nikolov 45\",\n                \"city\": \"Popovo\",\n                \"state\": \"Targovishte\",\n                \"postCode\": \"6420\",\n                \"country\": \"Bulgaria\",\n                \"userDetailsId\": 1\n            }\n        ]\n    },\n    {\n        \"advertisementId\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n        \"title\": \"rabotaaa\",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 1,\n        \"creationDate\": \"2023-08-20T14:15:58\",\n        \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n        \"username\": \"dzhan\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"images\": [\n            {\n                \"image_id\": 17,\n                \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n            },\n            {\n                \"image_id\": 13,\n                \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n            },\n            {\n                \"image_id\": 16,\n                \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n            },\n            {\n                \"image_id\": 18,\n                \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n            },\n            {\n                \"image_id\": 19,\n                \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n            }\n        ],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 13,\n                        \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    },\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    }\n                ],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": []\n    },\n    {\n        \"advertisementId\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n        \"title\": \"Zaglavie fds \",\n        \"description\": \"Tesff4t sad as 2020\",\n        \"categoryName\": \"TestCategory\",\n        \"price\": 3,\n        \"creationDate\": \"2023-09-27T15:50:29\",\n        \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n        \"username\": \"dzhan\",\n        \"mail\": \"canrafet0@gmail.com\",\n        \"images\": [],\n        \"advertisementsAddedByUser\": [\n            {\n                \"id\": \"ddae60dd-f851-4b81-bb8b-afb845835f94\",\n                \"title\": \"rabotaaa\",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 1,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-08-20T14:15:58\",\n                \"lastModifiedDate\": \"2023-08-20T14:15:58\",\n                \"createdByUserId\": 6,\n                \"images\": [\n                    {\n                        \"image_id\": 17,\n                        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n                    },\n                    {\n                        \"image_id\": 13,\n                        \"name\": \"Screenshot 2023-08-12 at 14.15.35.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-12 at 14.15.35.png\"\n                    },\n                    {\n                        \"image_id\": 16,\n                        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n                    },\n                    {\n                        \"image_id\": 18,\n                        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n                    },\n                    {\n                        \"image_id\": 19,\n                        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n                        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n                    }\n                ],\n                \"archived\": false\n            },\n            {\n                \"id\": \"ee3d9a02-2724-4adc-a4b3-0fc999ffe295\",\n                \"title\": \"Zaglavie fds \",\n                \"description\": \"Tesff4t sad as 2020\",\n                \"price\": 3,\n                \"categoryName\": \"TestCategory\",\n                \"creationDate\": \"2023-09-27T15:50:29\",\n                \"lastModifiedDate\": \"2023-09-27T15:50:29\",\n                \"createdByUserId\": 6,\n                \"images\": [],\n                \"archived\": false\n            }\n        ],\n        \"userdetails\": []\n    }\n]"}],"_postman_id":"0ff50c6c-b537-4286-b8d1-188a3058bb00"}],"id":"0985ad29-4c25-4931-be04-9a07773de13e","description":"<p>This collection includes endpoints that do not require explicit authorization. It covers public access points and functionalities that can be accessed without authentication or specific user roles.</p>\n","_postman_id":"0985ad29-4c25-4931-be04-9a07773de13e"}],"id":"4e38fb50-d6a7-43cd-aa77-b34a4083e3f6","description":"<p>This collection contains endpoints related to advertisements.</p>\n","_postman_id":"4e38fb50-d6a7-43cd-aa77-b34a4083e3f6"},{"name":"Category Collection","item":[{"name":"Admin Role","item":[{"name":"createCategory","id":"85debcde-443a-40b9-8573-a1918f65e27b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"Test\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/createCategory","description":"<p>The category name undergoes validation.</p>\n","urlObject":{"path":["v1","category","admin","createCategory"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"e27b79ea-6601-40ee-84a7-125e4ba5629c","name":"createCategory","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"Categorytest\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/createCategory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:19:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"categoryName\": \"Categorytest\"\n}"},{"id":"ce392c31-ed75-4dd2-9e20-b75a7a61accc","name":"category name validation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"CategoryTestt\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/createCategory"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:18:46 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"categoryName\": \"Error Category name format , Category name must contain min. 4 characters and max 40 characters and first letter must be upper case\"\n}"}],"_postman_id":"85debcde-443a-40b9-8573-a1918f65e27b"},{"name":"deleteCategory","id":"545f053b-625a-4634-8675-f7ac622c1f4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/v1/category/admin/deleteCategoryById/:id","description":"<p>This deletes a category by its ID.</p>\n","urlObject":{"path":["v1","category","admin","deleteCategoryById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"3e573a76-cec1-4521-abac-98d5030d8914","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"24924f0f-4925-4238-8f22-f3466baabd9e","name":"deleteCategory","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/category/admin/deleteCategoryById/3"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 07 Oct 2023 11:20:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"545f053b-625a-4634-8675-f7ac622c1f4a"},{"name":"getCategoryById","id":"38a0ef53-4aba-4184-bb48-946e482cbfdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/admin/getCategoryById/:id","description":"<p>This returns a category by its ID.</p>\n","urlObject":{"path":["v1","category","admin","getCategoryById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"29dc4177-8abd-409c-850f-49b0d9acba5a","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"fb382b22-e3fe-4e66-9f37-8f1eb193477d","name":"getCategoryById","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/admin/getCategoryById/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:20:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"categoryName\": \"Test \"\n}"},{"id":"711a2106-2658-4923-93c9-a6f875ef95ce","name":"category not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/admin/getCategoryById/3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"33"},{"key":"Date","value":"Sat, 07 Oct 2023 11:20:25 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Category couldn't found by id:  3"}],"_postman_id":"38a0ef53-4aba-4184-bb48-946e482cbfdc"},{"name":"getCategoryByName","id":"8842ecd8-b4d4-44eb-ac31-7b27e20adce0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/admin/getCategoryByName/:name","description":"<p>This returns a category by its name.</p>\n","urlObject":{"path":["v1","category","admin","getCategoryByName",":name"],"host":["localhost:8080"],"query":[],"variable":[{"id":"944c8acf-5932-473e-8d25-e1c0a107e251","type":"any","value":"<string>","key":"name"}]}},"response":[{"id":"6b25a558-6761-4bf3-a4b8-ab672ff733d1","name":"getCategoryById","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/admin/getCategoryByName/Testcategory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:26:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"categoryName\": \"TestCategory\"\n    }\n]"}],"_postman_id":"8842ecd8-b4d4-44eb-ac31-7b27e20adce0"},{"name":"updateCategory","id":"26b06a6f-e7bb-4ede-9ca3-7502eb305537","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"Newname\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/updateCategoryById/2","description":"<p>This updates a category by its ID.</p>\n","urlObject":{"path":["v1","category","admin","updateCategoryById","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"efb379ec-1409-4aad-9157-bdb50c901171","name":"updateCategory","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"Newname\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/updateCategoryById/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:28:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"categoryName\": \"Newname\"\n}"},{"id":"ffb801c9-6a22-47da-a77f-a3ef795b604b","name":"category name validation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"NewName\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/updateCategoryById/4"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:27:20 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"categoryName\": \"Error Category name format , Category name must contain min. 4 characters and max 40 characters and first letter must be upper case\"\n}"},{"id":"72241fb7-05e8-4e0e-bbb8-b55eb9117584","name":"category not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"categoryName\": \"Nameeee\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"localhost:8080/v1/category/admin/updateCategoryById/4"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"33"},{"key":"Date","value":"Sat, 07 Oct 2023 11:27:29 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Category couldn't found by id:  4"}],"_postman_id":"26b06a6f-e7bb-4ede-9ca3-7502eb305537"}],"id":"d3c65f3e-552d-4ee3-9fa2-6108fd850679","description":"<p>These endpoints are accessible exclusively by admin.</p>\n","_postman_id":"d3c65f3e-552d-4ee3-9fa2-6108fd850679"},{"name":"Unauthorized access","item":[{"name":"getAllCategories","id":"de8ce1c4-5280-48ba-acff-b1f0dc49ef68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/categories/","description":"<p>This returns all categories</p>\n","urlObject":{"path":["v1","category","categories",""],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"1f580697-37ea-4a87-be8a-49f052e23814","name":"getAllCategories","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/category/categories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:28:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"categoryName\": \"Newname\"\n    },\n    {\n        \"id\": 1,\n        \"categoryName\": \"TestCategory\"\n    }\n]"}],"_postman_id":"de8ce1c4-5280-48ba-acff-b1f0dc49ef68"}],"id":"31f04a7d-b317-4f51-8963-41cef9acdd71","description":"<p>This collection includes endpoints that do not require explicit authorization. It covers public access points and functionalities that can be accessed without authentication or specific user roles.</p>\n","_postman_id":"31f04a7d-b317-4f51-8963-41cef9acdd71"}],"id":"7f723f83-afac-4958-8c9e-bcdf5135f5fc","description":"<p>This collection includes endpoints related to the categories of advertisements.</p>\n","_postman_id":"7f723f83-afac-4958-8c9e-bcdf5135f5fc"},{"name":"Image Collection","item":[{"name":"uploadImage","id":"49d4f740-7f47-4783-bd11-817c5c2af4be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/dzhan/Downloads/sublimator.jpg"}]},"url":"localhost:8080/v1/image/uploadImageByAdvertisementId/:id","description":"<p>This endpoint, facilitates the upload of an image to a specific advertisement. Users can upload up to 5 different images, and the system checks for duplicates before processing the upload. Additionally, it verifies whether the user has ownership of the advertisement before allowing the upload.</p>\n","urlObject":{"path":["v1","image","uploadImageByAdvertisementId",":id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"dbdc8639-e7bc-43b8-bc81-8003238dc0c3","name":"uploadImage","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/dzhan/Downloads/sublimator.jpg"}]},"url":"localhost:8080/v1/image/uploadImageByAdvertisementId/80162662-6840-4bfc-8e32-c2bb9f574cdf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 12:18:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"image_id\": 22,\n    \"name\": \"sublimator.jpg\",\n    \"url\": \"/images/uploads/30-admin/80162662-6840-4bfc-8e32-c2bb9f574cdf/sublimator.jpg\"\n}"},{"id":"48a7e207-c121-4d3b-a138-41b2401ee9d5","name":"invalid advertisement ownership","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/dzhan/Downloads/sublimator.jpg"}]},"url":"localhost:8080/v1/image/uploadImageByAdvertisementId/ddae60dd-f851-4b81-bb8b-afb845835f94"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"60"},{"key":"Date","value":"Sat, 07 Oct 2023 12:18:47 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"You are not allowed to upload images for this advertisement."},{"id":"de59ddcb-efc7-446a-91c9-47f1d09865c1","name":"duplicate image upload","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/dzhan/Downloads/sublimator.jpg"}]},"url":"localhost:8080/v1/image/uploadImageByAdvertisementId/80162662-6840-4bfc-8e32-c2bb9f574cdf"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"},{"key":"Date","value":"Sat, 07 Oct 2023 12:19:53 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"The image is already uploaded for this advertisement."}],"_postman_id":"49d4f740-7f47-4783-bd11-817c5c2af4be"},{"name":"deleteImage","id":"5876d47e-4bdb-424c-ad6a-4ecee0bb473b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/v1/image/deleteImageById/:id","description":"<p>This deletes an image by its ID.</p>\n","urlObject":{"path":["v1","image","deleteImageById",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"cd924e52-92ea-4d9a-868b-dcf21bb89204","type":"any","value":"<long>","key":"id"}]}},"response":[{"id":"09c0babe-6a35-47ab-99b8-45d9dec30ae6","name":"deleteImage","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/image/deleteImageById/13"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 07 Oct 2023 12:35:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"2f41181f-f98d-476f-85db-4fb9c962faec","name":"image not found","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/v1/image/deleteImageById/3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"30"},{"key":"Date","value":"Sat, 07 Oct 2023 12:33:22 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Image couldn't found by id:  3"}],"_postman_id":"5876d47e-4bdb-424c-ad6a-4ecee0bb473b"},{"name":"getAll Images","id":"78d7c6a3-e4e3-497f-9e88-2be86763050d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/image/images","description":"<p>This will return all images</p>\n","urlObject":{"path":["v1","image","images"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"e03568fb-cd9a-4515-b062-f678a276a927","name":"getAllImages","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/image/images"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 12:38:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"image_id\": 16,\n        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n    },\n    {\n        \"image_id\": 17,\n        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n    },\n    {\n        \"image_id\": 18,\n        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n    },\n    {\n        \"image_id\": 19,\n        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n    }\n]"}],"_postman_id":"78d7c6a3-e4e3-497f-9e88-2be86763050d"},{"name":"getImagesByAdvertisementId","id":"afa58f35-7c60-4c3a-a0a8-036bae3b4ab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/image/getImagesByAdvertisementId/:id","description":"<p>This will return all images of the advertisement based on its ID.</p>\n","urlObject":{"path":["v1","image","getImagesByAdvertisementId",":id"],"host":["localhost:8080"],"query":[],"variable":[{"id":"09a6c5ac-90c1-45e0-bf42-365b6ad95a09","type":"any","value":"<string>","key":"id"}]}},"response":[{"id":"e2dbbe94-0686-448c-87d5-7ed387c505c7","name":"getImagesByAdvertisementId","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/image/getImagesByAdvertisementId/ddae60dd-f851-4b81-bb8b-afb845835f94"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 12:39:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"image_id\": 16,\n        \"name\": \"Screenshot 2023-08-13 at 17.45.17.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-13 at 17.45.17.png\"\n    },\n    {\n        \"image_id\": 17,\n        \"name\": \"Screenshot 2023-08-16 at 15.42.36.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-16 at 15.42.36.png\"\n    },\n    {\n        \"image_id\": 18,\n        \"name\": \"Screenshot 2023-07-24 at 11.00.13.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-07-24 at 11.00.13.png\"\n    },\n    {\n        \"image_id\": 19,\n        \"name\": \"Screenshot 2023-08-17 at 15.01.59.png\",\n        \"url\": \"/images/uploads/6-dzhan/ddae60dd-f851-4b81-bb8b-afb845835f94/Screenshot 2023-08-17 at 15.01.59.png\"\n    }\n]"}],"_postman_id":"afa58f35-7c60-4c3a-a0a8-036bae3b4ab1"}],"id":"3b68d726-743f-4d0f-b573-ee815639196f","description":"<p>This collection includes endpoints related to the images.</p>\n","_postman_id":"3b68d726-743f-4d0f-b573-ee815639196f"},{"name":"Advertisement  (Elastic Search) Collection","item":[{"name":"searchByTitleAndDescriptionWithFuzziness","id":"eaeac6a1-6eda-4576-bc2f-b346bf648162","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement-documents/search?query=<string>","description":"<p>This retrieves advertisements by searching for titles and descriptions with fuzziness, allowing for approximate matches. Fuzziness considers variations in spelling or minor differences, making the search more flexible and accommodating potential typos or slight variations in wording. This means you can search by either title or description with a tolerance for small differences in the provided search terms.</p>\n","urlObject":{"path":["v1","advertisement-documents","search"],"host":["localhost:8080"],"query":[{"description":{"content":"<p>(Required) query</p>\n","type":"text/plain"},"key":"query","value":"<string>"}],"variable":[]}},"response":[{"id":"4a216eaf-1c20-496b-8858-c6d82152b167","name":"Search by Description","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/advertisement-documents/search?query=Description","host":["localhost:8080"],"path":["v1","advertisement-documents","search"],"query":[{"key":"query","value":"Description","description":"(Required) query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:55:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"creationDate\": \"2023-10-07T08:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T08:33:29\",\n        \"categoryId\": 2,\n        \"userId\": 30,\n        \"archived\": false\n    },\n    {\n        \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"price\": 3,\n        \"creationDate\": \"2023-10-07T08:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T09:40:59\",\n        \"categoryId\": 1,\n        \"userId\": 30,\n        \"archived\": true\n    }\n]"},{"id":"d782f758-ead2-464f-9756-16aee43147b6","name":"Search by Title","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/advertisement-documents/search?query=Title","host":["localhost:8080"],"path":["v1","advertisement-documents","search"],"query":[{"key":"query","value":"Title","description":"(Required) query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:55:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"creationDate\": \"2023-10-07T08:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T08:33:29\",\n        \"categoryId\": 2,\n        \"userId\": 30,\n        \"archived\": false\n    },\n    {\n        \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"price\": 3,\n        \"creationDate\": \"2023-10-07T08:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T09:40:59\",\n        \"categoryId\": 1,\n        \"userId\": 30,\n        \"archived\": true\n    }\n]"}],"_postman_id":"eaeac6a1-6eda-4576-bc2f-b346bf648162"},{"name":"searchByTitleWithFuzziness","id":"7512c7ab-a869-4704-bec1-9803af064358","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/advertisement-documents/search_title?query=<string>","description":"<p>This retrieves advertisements by searching for titles with fuzziness, allowing for approximate matches.</p>\n","urlObject":{"path":["v1","advertisement-documents","search_title"],"host":["localhost:8080"],"query":[{"description":{"content":"<p>(Required) query</p>\n","type":"text/plain"},"key":"query","value":"<string>"}],"variable":[]}},"response":[{"id":"78bf3e4e-9093-4151-8d0e-956e5ee036f0","name":"search by Title","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8080/v1/advertisement-documents/search_title?query=Title","host":["localhost:8080"],"path":["v1","advertisement-documents","search_title"],"query":[{"key":"query","value":"Title","description":"(Required) query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 10:56:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ce5c9cd0-9266-4dba-85b8-d47f840f5eb3\",\n        \"title\": \"The Title title\",\n        \"description\": \"The Description \",\n        \"price\": 54,\n        \"creationDate\": \"2023-10-07T08:33:29\",\n        \"lastModifiedDate\": \"2023-10-07T08:33:29\",\n        \"categoryId\": 2,\n        \"userId\": 30,\n        \"archived\": false\n    },\n    {\n        \"id\": \"80162662-6840-4bfc-8e32-c2bb9f574cdf\",\n        \"title\": \"Titleee title\",\n        \"description\": \"description on\",\n        \"price\": 3,\n        \"creationDate\": \"2023-10-07T08:33:19\",\n        \"lastModifiedDate\": \"2023-10-07T09:40:59\",\n        \"categoryId\": 1,\n        \"userId\": 30,\n        \"archived\": true\n    }\n]"}],"_postman_id":"7512c7ab-a869-4704-bec1-9803af064358"}],"id":"80840d30-61f7-4322-befe-3b79de8b6f10","description":"<p>This collection encompasses endpoints related to advertisement, specifically designed for search operations with Elasticsearch.</p>\n","_postman_id":"80840d30-61f7-4322-befe-3b79de8b6f10"},{"name":"API (OpenFeign) Collection","item":[{"name":"getBulgarianCities","id":"f127d365-d153-4e52-89c3-fd9d8bc11b2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/api/bulgarianCities","description":"<p>Fetching API data from an external database using OpenFeign. It will return all cities from Bulgaria.</p>\n","urlObject":{"path":["v1","api","bulgarianCities"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"80d78894-b1d1-4498-9457-d3ee3b103aa1","name":"getBulgarianCities","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/api/bulgarianCities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 07 Oct 2023 11:08:07 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Akhtopol\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Aksakovo\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Aleksandriya\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Alfatar\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Anton\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Antonovo\"\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Ardino\"\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Asenovgrad\"\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Aytos\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Babovo\"\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Baltchik\"\n    },\n    {\n        \"id\": 12,\n        \"name\": \"Banite\"\n    },\n    {\n        \"id\": 13,\n        \"name\": \"Bankya\"\n    },\n    {\n        \"id\": 14,\n        \"name\": \"Bansko\"\n    },\n    {\n        \"id\": 15,\n        \"name\": \"Barutin\"\n    },\n    {\n        \"id\": 16,\n        \"name\": \"Batak\"\n    },\n    {\n        \"id\": 17,\n        \"name\": \"Belene\"\n    },\n    {\n        \"id\": 18,\n        \"name\": \"Belogradchik\"\n    },\n    {\n        \"id\": 19,\n        \"name\": \"Beloslav\"\n    },\n    {\n        \"id\": 20,\n        \"name\": \"Belovo\"\n    },\n    {\n        \"id\": 21,\n        \"name\": \"Berkovitsa\"\n    },\n    {\n        \"id\": 22,\n        \"name\": \"Bistritsa\"\n    },\n    {\n        \"id\": 23,\n        \"name\": \"Blagoevgrad\"\n    },\n    {\n        \"id\": 24,\n        \"name\": \"Boboshevo\"\n    },\n    {\n        \"id\": 25,\n        \"name\": \"Bobovdol\"\n    },\n    {\n        \"id\": 26,\n        \"name\": \"Borovan\"\n    },\n    {\n        \"id\": 27,\n        \"name\": \"Borovo\"\n    },\n    {\n        \"id\": 28,\n        \"name\": \"Botevgrad\"\n    },\n    {\n        \"id\": 29,\n        \"name\": \"Bratsigovo\"\n    },\n    {\n        \"id\": 30,\n        \"name\": \"Bregare\"\n    },\n    {\n        \"id\": 31,\n        \"name\": \"Bukovo\"\n    },\n    {\n        \"id\": 32,\n        \"name\": \"Burgas\"\n    },\n    {\n        \"id\": 33,\n        \"name\": \"Byala\"\n    },\n    {\n        \"id\": 34,\n        \"name\": \"Byala Slatina\"\n    },\n    {\n        \"id\": 35,\n        \"name\": \"Chakalarovo\"\n    },\n    {\n        \"id\": 36,\n        \"name\": \"Chernolik\"\n    },\n    {\n        \"id\": 37,\n        \"name\": \"Chernomorets\"\n    },\n    {\n        \"id\": 38,\n        \"name\": \"Cherven\"\n    },\n    {\n        \"id\": 39,\n        \"name\": \"Cherven Bryag\"\n    },\n    {\n        \"id\": 40,\n        \"name\": \"Chiprovtsi\"\n    },\n    {\n        \"id\": 41,\n        \"name\": \"Chirpan\"\n    },\n    {\n        \"id\": 42,\n        \"name\": \"Choba\"\n    },\n    {\n        \"id\": 43,\n        \"name\": \"Debelets\"\n    },\n    {\n        \"id\": 44,\n        \"name\": \"Devin\"\n    },\n    {\n        \"id\": 45,\n        \"name\": \"Dimitrovgrad\"\n    },\n    {\n        \"id\": 46,\n        \"name\": \"Dobrich\"\n    },\n    {\n        \"id\": 47,\n        \"name\": \"Dolna Banya\"\n    },\n    {\n        \"id\": 48,\n        \"name\": \"Dolna Mitropoliya\"\n    },\n    {\n        \"id\": 49,\n        \"name\": \"Dolna Oryakhovitsa\"\n    },\n    {\n        \"id\": 50,\n        \"name\": \"Dospat\"\n    },\n    {\n        \"id\": 51,\n        \"name\": \"Dragash Voyvoda\"\n    },\n    {\n        \"id\": 52,\n        \"name\": \"Draginovo\"\n    },\n    {\n        \"id\": 53,\n        \"name\": \"Dragizhevo\"\n    },\n    {\n        \"id\": 54,\n        \"name\": \"Dryanovo\"\n    },\n    {\n        \"id\": 55,\n        \"name\": \"Dulgopol\"\n    },\n    {\n        \"id\": 56,\n        \"name\": \"Dulovo\"\n    },\n    {\n        \"id\": 57,\n        \"name\": \"Dupnitsa\"\n    },\n    {\n        \"id\": 58,\n        \"name\": \"Elena\"\n    },\n    {\n        \"id\": 59,\n        \"name\": \"Elin Pelin\"\n    },\n    {\n        \"id\": 60,\n        \"name\": \"Elkhovo\"\n    },\n    {\n        \"id\": 61,\n        \"name\": \"Etropole\"\n    },\n    {\n        \"id\": 62,\n        \"name\": \"Gabrovo\"\n    },\n    {\n        \"id\": 63,\n        \"name\": \"Ganchovo\"\n    },\n    {\n        \"id\": 64,\n        \"name\": \"General-Toshevo\"\n    },\n    {\n        \"id\": 65,\n        \"name\": \"Glogovo\"\n    },\n    {\n        \"id\": 66,\n        \"name\": \"Godech\"\n    },\n    {\n        \"id\": 67,\n        \"name\": \"Gorna Oryakhovitsa\"\n    },\n    {\n        \"id\": 68,\n        \"name\": \"Gotse Delchev\"\n    },\n    {\n        \"id\": 69,\n        \"name\": \"Gulubovo\"\n    },\n    {\n        \"id\": 70,\n        \"name\": \"Gurkovo\"\n    },\n    {\n        \"id\": 71,\n        \"name\": \"Gurmazovo\"\n    },\n    {\n        \"id\": 72,\n        \"name\": \"Haskovo\"\n    },\n    {\n        \"id\": 73,\n        \"name\": \"Ikhtiman\"\n    },\n    {\n        \"id\": 74,\n        \"name\": \"Iskrets\"\n    },\n    {\n        \"id\": 75,\n        \"name\": \"Isperikh\"\n    },\n    {\n        \"id\": 76,\n        \"name\": \"Isperikhovo\"\n    },\n    {\n        \"id\": 77,\n        \"name\": \"Ivaylovgrad\"\n    },\n    {\n        \"id\": 78,\n        \"name\": \"Kableshkovo\"\n    },\n    {\n        \"id\": 79,\n        \"name\": \"Kamenovo\"\n    },\n    {\n        \"id\": 80,\n        \"name\": \"Kardzhali\"\n    },\n    {\n        \"id\": 81,\n        \"name\": \"Karlovo\"\n    },\n    {\n        \"id\": 82,\n        \"name\": \"Karnobat\"\n    },\n    {\n        \"id\": 83,\n        \"name\": \"Kavarna\"\n    },\n    {\n        \"id\": 84,\n        \"name\": \"Kazanlak\"\n    },\n    {\n        \"id\": 85,\n        \"name\": \"Kazashka Reka\"\n    },\n    {\n        \"id\": 86,\n        \"name\": \"Kharmanli\"\n    },\n    {\n        \"id\": 87,\n        \"name\": \"Khisarya\"\n    },\n    {\n        \"id\": 88,\n        \"name\": \"Knezha\"\n    },\n    {\n        \"id\": 89,\n        \"name\": \"Konush\"\n    },\n    {\n        \"id\": 90,\n        \"name\": \"Koprivets\"\n    },\n    {\n        \"id\": 91,\n        \"name\": \"Koprivlen\"\n    },\n    {\n        \"id\": 92,\n        \"name\": \"Kostenets\"\n    },\n    {\n        \"id\": 93,\n        \"name\": \"Kostievo\"\n    },\n    {\n        \"id\": 94,\n        \"name\": \"Kostinbrod\"\n    },\n    {\n        \"id\": 95,\n        \"name\": \"Kovachite\"\n    },\n    {\n        \"id\": 96,\n        \"name\": \"Kozloduy\"\n    },\n    {\n        \"id\": 97,\n        \"name\": \"Kran\"\n    },\n    {\n        \"id\": 98,\n        \"name\": \"Krichim\"\n    },\n    {\n        \"id\": 99,\n        \"name\": \"Krivodol\"\n    },\n    {\n        \"id\": 100,\n        \"name\": \"Krumovgrad\"\n    },\n    {\n        \"id\": 101,\n        \"name\": \"Krupnik\"\n    },\n    {\n        \"id\": 102,\n        \"name\": \"Kula\"\n    },\n    {\n        \"id\": 103,\n        \"name\": \"Kyustendil\"\n    },\n    {\n        \"id\": 104,\n        \"name\": \"Lom\"\n    },\n    {\n        \"id\": 105,\n        \"name\": \"Lovech\"\n    },\n    {\n        \"id\": 106,\n        \"name\": \"Lozno\"\n    },\n    {\n        \"id\": 107,\n        \"name\": \"Lukovit\"\n    },\n    {\n        \"id\": 108,\n        \"name\": \"Lyaskovets\"\n    },\n    {\n        \"id\": 109,\n        \"name\": \"Lyulyakovo\"\n    },\n    {\n        \"id\": 110,\n        \"name\": \"Madan\"\n    },\n    {\n        \"id\": 111,\n        \"name\": \"Malo Konare\"\n    },\n    {\n        \"id\": 112,\n        \"name\": \"Marikostinovo\"\n    },\n    {\n        \"id\": 113,\n        \"name\": \"Markovo\"\n    },\n    {\n        \"id\": 114,\n        \"name\": \"Mesta\"\n    },\n    {\n        \"id\": 115,\n        \"name\": \"Mezdra\"\n    },\n    {\n        \"id\": 116,\n        \"name\": \"Mikrevo\"\n    },\n    {\n        \"id\": 117,\n        \"name\": \"Moderno Predgradie\"\n    },\n    {\n        \"id\": 118,\n        \"name\": \"Momchilgrad\"\n    },\n    {\n        \"id\": 119,\n        \"name\": \"Montana\"\n    },\n    {\n        \"id\": 120,\n        \"name\": \"Moravka\"\n    },\n    {\n        \"id\": 121,\n        \"name\": \"Muglizh\"\n    },\n    {\n        \"id\": 122,\n        \"name\": \"Nesebar\"\n    },\n    {\n        \"id\": 123,\n        \"name\": \"Nikopol\"\n    },\n    {\n        \"id\": 124,\n        \"name\": \"Nova Zagora\"\n    },\n    {\n        \"id\": 125,\n        \"name\": \"Novi Iskur\"\n    },\n    {\n        \"id\": 126,\n        \"name\": \"Novi Pazar\"\n    },\n    {\n        \"id\": 127,\n        \"name\": \"Obzor\"\n    },\n    {\n        \"id\": 128,\n        \"name\": \"Omurtag\"\n    },\n    {\n        \"id\": 129,\n        \"name\": \"Orizovo\"\n    },\n    {\n        \"id\": 130,\n        \"name\": \"Orlovets\"\n    },\n    {\n        \"id\": 131,\n        \"name\": \"Oryakhovets\"\n    },\n    {\n        \"id\": 132,\n        \"name\": \"Oryakhovitsa\"\n    },\n    {\n        \"id\": 133,\n        \"name\": \"Ovoshtnik\"\n    },\n    {\n        \"id\": 134,\n        \"name\": \"Panagyurishte\"\n    },\n    {\n        \"id\": 135,\n        \"name\": \"Pavel Banya\"\n    },\n    {\n        \"id\": 136,\n        \"name\": \"Pavlikeni\"\n    },\n    {\n        \"id\": 137,\n        \"name\": \"Pazardzhik\"\n    },\n    {\n        \"id\": 138,\n        \"name\": \"Pchelishte\"\n    },\n    {\n        \"id\": 139,\n        \"name\": \"Pernik\"\n    },\n    {\n        \"id\": 140,\n        \"name\": \"Peshtera\"\n    },\n    {\n        \"id\": 141,\n        \"name\": \"Petrich\"\n    },\n    {\n        \"id\": 142,\n        \"name\": \"Pleven\"\n    },\n    {\n        \"id\": 143,\n        \"name\": \"Plovdiv\"\n    },\n    {\n        \"id\": 144,\n        \"name\": \"Poleto\"\n    },\n    {\n        \"id\": 145,\n        \"name\": \"Polski Trumbesh\"\n    },\n    {\n        \"id\": 146,\n        \"name\": \"Pomorie\"\n    },\n    {\n        \"id\": 147,\n        \"name\": \"Popovo\"\n    },\n    {\n        \"id\": 148,\n        \"name\": \"Pravets\"\n    },\n    {\n        \"id\": 149,\n        \"name\": \"Prespa\"\n    },\n    {\n        \"id\": 150,\n        \"name\": \"Provadiya\"\n    },\n    {\n        \"id\": 151,\n        \"name\": \"Radnevo\"\n    },\n    {\n        \"id\": 152,\n        \"name\": \"Raduil\"\n    },\n    {\n        \"id\": 153,\n        \"name\": \"Rakitovo\"\n    },\n    {\n        \"id\": 154,\n        \"name\": \"Rakovski\"\n    },\n    {\n        \"id\": 155,\n        \"name\": \"Ravda\"\n    },\n    {\n        \"id\": 156,\n        \"name\": \"Razgrad\"\n    },\n    {\n        \"id\": 157,\n        \"name\": \"Razlog\"\n    },\n    {\n        \"id\": 158,\n        \"name\": \"Rila\"\n    },\n    {\n        \"id\": 159,\n        \"name\": \"Rodopi\"\n    },\n    {\n        \"id\": 160,\n        \"name\": \"Rousse\"\n    },\n    {\n        \"id\": 161,\n        \"name\": \"Rozino\"\n    },\n    {\n        \"id\": 162,\n        \"name\": \"Rudozem\"\n    },\n    {\n        \"id\": 163,\n        \"name\": \"Ruen\"\n    },\n    {\n        \"id\": 164,\n        \"name\": \"Samokov\"\n    },\n    {\n        \"id\": 165,\n        \"name\": \"Samovodene\"\n    },\n    {\n        \"id\": 166,\n        \"name\": \"Samuil\"\n    },\n    {\n        \"id\": 167,\n        \"name\": \"Sandanski\"\n    },\n    {\n        \"id\": 168,\n        \"name\": \"Sandrovo\"\n    },\n    {\n        \"id\": 169,\n        \"name\": \"Septemvri\"\n    },\n    {\n        \"id\": 170,\n        \"name\": \"Sevlievo\"\n    },\n    {\n        \"id\": 171,\n        \"name\": \"Shabla\"\n    },\n    {\n        \"id\": 172,\n        \"name\": \"Shivachevo\"\n    },\n    {\n        \"id\": 173,\n        \"name\": \"Shumen\"\n    },\n    {\n        \"id\": 174,\n        \"name\": \"Silistra\"\n    },\n    {\n        \"id\": 175,\n        \"name\": \"Simeonovgrad\"\n    },\n    {\n        \"id\": 176,\n        \"name\": \"Simitli\"\n    },\n    {\n        \"id\": 177,\n        \"name\": \"Skravena\"\n    },\n    {\n        \"id\": 178,\n        \"name\": \"Slatina\"\n    },\n    {\n        \"id\": 179,\n        \"name\": \"Sliven\"\n    },\n    {\n        \"id\": 180,\n        \"name\": \"Slivnitsa\"\n    },\n    {\n        \"id\": 181,\n        \"name\": \"Smolyan\"\n    },\n    {\n        \"id\": 182,\n        \"name\": \"Smyadovo\"\n    },\n    {\n        \"id\": 183,\n        \"name\": \"Sofia\"\n    },\n    {\n        \"id\": 184,\n        \"name\": \"Sofronievo\"\n    },\n    {\n        \"id\": 185,\n        \"name\": \"Sokolets\"\n    },\n    {\n        \"id\": 186,\n        \"name\": \"Sopot\"\n    },\n    {\n        \"id\": 187,\n        \"name\": \"Sozopol\"\n    },\n    {\n        \"id\": 188,\n        \"name\": \"Sredets\"\n    },\n    {\n        \"id\": 189,\n        \"name\": \"Stamboliyski\"\n    },\n    {\n        \"id\": 190,\n        \"name\": \"Stara Zagora\"\n    },\n    {\n        \"id\": 191,\n        \"name\": \"Strazhitsa\"\n    },\n    {\n        \"id\": 192,\n        \"name\": \"Strelcha\"\n    },\n    {\n        \"id\": 193,\n        \"name\": \"Suedinenie\"\n    },\n    {\n        \"id\": 194,\n        \"name\": \"Svilengrad\"\n    },\n    {\n        \"id\": 195,\n        \"name\": \"Svishtov\"\n    },\n    {\n        \"id\": 196,\n        \"name\": \"Svoge\"\n    },\n    {\n        \"id\": 197,\n        \"name\": \"Targovishte\"\n    },\n    {\n        \"id\": 198,\n        \"name\": \"Tervel\"\n    },\n    {\n        \"id\": 199,\n        \"name\": \"Tochilari\"\n    },\n    {\n        \"id\": 200,\n        \"name\": \"Topoli\"\n    },\n    {\n        \"id\": 201,\n        \"name\": \"Topolovo\"\n    },\n    {\n        \"id\": 202,\n        \"name\": \"Troyan\"\n    },\n    {\n        \"id\": 203,\n        \"name\": \"Trustenik\"\n    },\n    {\n        \"id\": 204,\n        \"name\": \"Tryavna\"\n    },\n    {\n        \"id\": 205,\n        \"name\": \"Tutrakan\"\n    },\n    {\n        \"id\": 206,\n        \"name\": \"Varna\"\n    },\n    {\n        \"id\": 207,\n        \"name\": \"Veliko\"\n    },\n    {\n        \"id\": 208,\n        \"name\": \"Veliko Tarnovo\"\n    },\n    {\n        \"id\": 209,\n        \"name\": \"Velingrad\"\n    },\n    {\n        \"id\": 210,\n        \"name\": \"Vetren\"\n    },\n    {\n        \"id\": 211,\n        \"name\": \"Vidin\"\n    },\n    {\n        \"id\": 212,\n        \"name\": \"Vievo\"\n    },\n    {\n        \"id\": 213,\n        \"name\": \"Vlado Trichkov\"\n    },\n    {\n        \"id\": 214,\n        \"name\": \"Vrachesh\"\n    },\n    {\n        \"id\": 215,\n        \"name\": \"Vratsa\"\n    },\n    {\n        \"id\": 216,\n        \"name\": \"Yakoruda\"\n    },\n    {\n        \"id\": 217,\n        \"name\": \"Yambol\"\n    },\n    {\n        \"id\": 218,\n        \"name\": \"Zavet\"\n    },\n    {\n        \"id\": 219,\n        \"name\": \"Zlatitrap\"\n    },\n    {\n        \"id\": 220,\n        \"name\": \"Zlatograd\"\n    }\n]"}],"_postman_id":"f127d365-d153-4e52-89c3-fd9d8bc11b2c"}],"id":"5746b297-ee15-462a-aa7a-e328050b0dde","description":"<p>Fetching API data from an external database using OpenFeign.</p>\n","_postman_id":"5746b297-ee15-462a-aa7a-e328050b0dde"},{"name":"Email Collection","item":[{"name":"sendEmail","id":"e3e38404-571e-4e63-8de5-d3f084e20bd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/email/sendmail","description":"<p>This is a test endpoint that sends a test email, defined in the code, to check if the email server is working correctly.</p>\n","urlObject":{"path":["v1","email","sendmail"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"a21f65e6-af0a-46a9-9bb6-59ba3da0fb0e","name":"sendEmail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8080/v1/email/sendmail"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"12"},{"key":"Date","value":"Sat, 07 Oct 2023 12:08:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Message sent"}],"_postman_id":"e3e38404-571e-4e63-8de5-d3f084e20bd2"}],"id":"5241ef1d-86a1-4a02-95d3-019f729e0104","_postman_id":"5241ef1d-86a1-4a02-95d3-019f729e0104","description":""}],"event":[{"listen":"prerequest","script":{"id":"333792f7-7836-4dee-8219-9c91cbaba915","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e342f683-31c9-45bf-80ef-3a72c458ab88","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"localhost:8080","type":"string"}]}