{"info":{"_postman_id":"93b76229-d678-4aaf-8ef9-eab4cb38a95b","name":"Movie Reviews and User Management API","description":"<html><head></head><body><h2 id=\"welcome-to-our-movie-and-user-management-api-documentation\">Welcome to our Movie and User Management API Documentation!</h2>\n<p>This API is designed to provide a seamless experience for users interested in managing and accessing movie-related information while incorporating user management functionalities like user signup and login. Built on the foundation of MongoDB and Express, this API delivers a powerful and versatile solution for movie enthusiasts.</p>\n<blockquote>\n<p>Base URL:<br><a href=\"https://assignment15movierevieweraasimd.aasimd.repl.co\">https://assignment15movierevieweraasimd.aasimd.repl.co</a> </p>\n</blockquote>\n<h3 id=\"movie-model\">Movie Model</h3>\n<p><strong>Key Properties:</strong></p>\n<ul>\n<li><code>title</code>: A required string field that represents the title of the movie.</li>\n<li><code>releaseYear</code>: A required number field that represents the release year of the movie.</li>\n<li><code>genre</code>: An array of strings representing the genre(s) of the movie. The <code>enum</code> option restricts the allowed values to a predefined list of genres.</li>\n<li><code>reviews</code>: An array of objects representing movie reviews. Each review has the following properties:<ul>\n<li><code>user</code>: A reference to a user (using their ObjectId) who wrote the review. This is linked to the \"User0\" model.</li>\n<li><code>rating</code>: A number field with a minimum value of 0 and a maximum value of 10. It has a default value of 0 and is required.</li>\n<li><code>text</code>: A string field representing the text of the review, which is also required.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"user-model\">User Model</h3>\n<p><strong>Key Properties:</strong></p>\n<ul>\n<li><code>username</code>: A required string field representing the username of the user. It is also set as unique, ensuring that each username is unique in the database.</li>\n<li><code>profilePicUrl</code>: A string field that can be used to store the URL of the user's profile picture.</li>\n<li><code>email</code>: A required string field representing the email address of the user. It is also set as unique, ensuring that each email address is unique in the database.</li>\n<li><code>password</code>: A required string field representing the user's password. It is typically used to store hashed or encrypted passwords for security reasons.</li>\n<li><code>fullName</code>: A required string field representing the full name of the user.</li>\n<li><code>address</code>: A string field that can be used to store the user's address.</li>\n<li><code>phoneNumber</code>: A required number field representing the user's phone number. It is also set as unique, ensuring that each phone number is unique in the database.</li>\n</ul>\n<h3 id=\"functionalities\">Functionalities:</h3>\n<h4 id=\"endpoints\"><strong>Endpoints:</strong></h4>\n<ul>\n<li><strong>Authentication Routes</strong><ul>\n<li><strong>Signup User</strong><ul>\n<li>POST <code>/api/auth/signup</code></li>\n</ul>\n</li>\n<li><strong>Login User</strong><ul>\n<li>POST <code>/api/auth/login</code></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>User Routes</strong><ul>\n<li>U<strong>pdate Contact Details</strong><ul>\n<li>POST <code>/api/user/update-contact/:email</code></li>\n</ul>\n</li>\n<li><strong>Change Password</strong><ul>\n<li>POST <code>/api/user/:userId/password</code></li>\n</ul>\n</li>\n<li><strong>Update Profile Picture</strong><ul>\n<li>POST <code>/api/user/:userId/profile</code></li>\n</ul>\n</li>\n<li><strong>Search User by phone number</strong><ul>\n<li>GET <code>/api/user/phone/:phoneNumber</code></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>Movie Reviews Routes</strong><ul>\n<li><strong>Get Users Reviews for a Specific Movie</strong><ul>\n<li>GET <code>/api/movies/:userId/reviews</code></li>\n</ul>\n</li>\n<li><strong>Add Review to a Movie</strong><ul>\n<li>POST <code>/api/movies/:userId/reviews</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24459577","collectionId":"93b76229-d678-4aaf-8ef9-eab4cb38a95b","publishedId":"2s9YJZ4jVS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-09-28T09:33:38.000Z"},"item":[{"name":"Signup User","id":"5a57b52e-2fbe-4cc5-b1c0-762ad3fd2d09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user8@example.com\",\r\n  \"password\": \"secretpassword\",\r\n  \"username\": \"exampleuser8\",\r\n  \"profilePicture\": \"https://example.com/profile.jpg\",\r\n  \"phoneNumber\": 8012345688,\r\n  \"fullName\":\"New User\"\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/signup","description":"<p><strong>Title: Signup User</strong></p>\n<p><strong>Description:</strong> This API endpoint allows new users to sign up and create an account within the application.</p>\n<p><strong>Endpoint:</strong> <strong>POST</strong><code>/api/auth/signup</code></p>\n<p><strong>Request Body:</strong> This should contain the user's registration information, including email, password, and any additional details required for sign-up.<br />username, email, password, fullName and phoneNumber are required fields, if not provided you'll get an error response.</p>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object containing the User's data that has Signed Up and an authentication token. If the details are not provided it returns an Error Response.</p>\n","urlObject":{"protocol":"https","path":["auth","signup"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"d3543b63-6fa0-4570-95bb-5dc35869290a","name":"Success Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user8@example.com\",\r\n  \"password\": \"secretpassword\",\r\n  \"username\": \"exampleuser8\",\r\n  \"profilePicture\": \"https://example.com/profile.jpg\",\r\n  \"phoneNumber\": 8012345688,\r\n  \"fullName\":\"New User\"\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"444"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:37:10 GMT"},{"key":"Etag","value":"W/\"1bc-kMMMaWuG/y8jvljGHZCz+dC+lqQ\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6906557; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Sign Up Successfull\",\n    \"data\": {\n        \"email\": \"user8@example.com\",\n        \"password\": \"$2b$10$YR8bfjFFx4j3/ds.MuQtOOMOeGrr1kE4Xggbs6fqaCWsR.E3ZdoQ.\",\n        \"username\": \"exampleuser8\",\n        \"profilePicture\": \"https://example.com/profile.jpg\",\n        \"phoneNumber\": 8012345688,\n        \"fullName\": \"New User\"\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk3NDMwLCJleHAiOjE2OTU5MDEwMzB9.aTdC4ckNyc2SO58Fcn9J6-n0L44hajiPtN964qKSQjg\"\n}"},{"id":"4240c939-66b6-4c96-9b6b-130d0473c140","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"email\":\"newuser@example.com\",\r\n\t\"password\":\"new123\",\r\n\t\"fullName\":\"New User\",\r\n\t\"phoneNumber\": 8012345678\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"68"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:28:39 GMT"},{"key":"Etag","value":"W/\"44-oGtZC8ZehWrgoy+JITmDA+ObK8s\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6907069; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error signing in user, try again with correct details.\"\n}"}],"_postman_id":"5a57b52e-2fbe-4cc5-b1c0-762ad3fd2d09"},{"name":"Login User","id":"af8c204c-9cee-4e82-b7b1-d38ba8334365","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user8@example.com\",\r\n  \"password\": \"secretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/login","description":"<p><strong>Title: Login User</strong></p>\n<p><strong>Description:</strong> This API endpoint allows registered users to sign in and access their accounts within the application.</p>\n<p><strong>Endpoint:</strong> <strong>POST</strong> <code>/api/auth/login</code></p>\n<p><strong>Request Body:</strong> Users provide their login credentials, including their email and password, to login.</p>\n<p><strong>Returns:</strong><br />Upon successful execution, this API responds with a JSON object containing the User's data that has Logged In and an authentication token. If the password is wrong it returns an Error Response.</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"890b64c5-a402-4954-93eb-34b4c28c465d","name":"Success Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user8@example.com\",\r\n  \"password\": \"secretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/login"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"512"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:46:15 GMT"},{"key":"Etag","value":"W/\"200-xEnl+oVkTAxEJ/TsEY4wAV0GWrY\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6906012; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successfull\",\n    \"data\": {\n        \"_id\": \"65155756dae511c7efae82c4\",\n        \"username\": \"exampleuser8\",\n        \"email\": \"user8@example.com\",\n        \"password\": \"secretpassword\",\n        \"fullName\": \"New User\",\n        \"phoneNumber\": 8012345688,\n        \"createdAt\": \"2023-09-28T10:37:10.405Z\",\n        \"updatedAt\": \"2023-09-28T10:37:10.405Z\",\n        \"__v\": 0\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk3OTc1LCJleHAiOjE2OTU5MDE1NzV9.lh8mseJi7AwOnjGqPsvN5U289veeuQ-b2-N7noTjmHg\"\n}"},{"id":"beb75581-d926-4c42-81c1-aed56d994ab1","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user8@example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"72"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:45:52 GMT"},{"key":"Etag","value":"W/\"48-U4QHF+0APyAU+URA13EQx7QEdZ4\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6906035; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error loggin in. Try again with correct details\",\n    \"error\": {}\n}"}],"_postman_id":"af8c204c-9cee-4e82-b7b1-d38ba8334365"},{"name":"Update Contact Details","id":"0e22794f-ebc7-41c4-9c4c-291590118720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\":7070707070\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/update-contact/user8@example.com","description":"<p><strong>Title: User Contact Details Change</strong></p>\n<p><strong>Description:</strong> This API endpoint allows authenticated users to update their contact details, such as their phone number and address, associated with their account.</p>\n<p><strong>Endpoint: POST</strong> <code>/api/user/updateContact/:email</code></p>\n<p><strong>Path Parameter:</strong></p>\n<ul>\n<li><strong>email</strong> (String, required): The email address associated with the user's account, used to identify the user for updating contact details.</li>\n</ul>\n<p><strong>Request Body:</strong> Users provide the updated contact details, including phone number or address.</p>\n<p><strong>Request Headers:</strong> authentication token recieved during signup or login.</p>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object confirming that the User data has been updated with new contact details.</p>\n","urlObject":{"protocol":"https","path":["user","update-contact","user8@example.com"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"60feab54-8feb-4160-8edb-2c3bf3648fae","name":"Error Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\":7070707070\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/update-contact/user8@example.co"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"28"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:11:16 GMT"},{"key":"Etag","value":"W/\"1c-ZEVVcvtFhxKX/QUvVKqKxwGbbNA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904511; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not found\"\n}"},{"id":"274e9f7a-7a17-4448-8179-b6030d93bf1a","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\":7070707070\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/update-contact/user8@example.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"391"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:11:39 GMT"},{"key":"Etag","value":"W/\"187-NC0Q+srOAoBNa5h+GlsrZ3g5Bk4\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904488; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contact Details Changed Successfully\",\n    \"data\": {\n        \"_id\": \"65155756dae511c7efae82c4\",\n        \"username\": \"exampleuser8\",\n        \"email\": \"user8@example.com\",\n        \"password\": \"$2b$10$l1F3t7qaanbCfyrpZAv91.ux4wFTL7i.92zEMeA2798E9PMZ1jMvW\",\n        \"fullName\": \"New User\",\n        \"phoneNumber\": 7070707070,\n        \"createdAt\": \"2023-09-28T10:37:10.405Z\",\n        \"updatedAt\": \"2023-09-28T11:06:23.074Z\",\n        \"__v\": 0,\n        \"profilePicUrl\": \"example.com/new.jpg\"\n    }\n}"}],"_postman_id":"0e22794f-ebc7-41c4-9c4c-291590118720"},{"name":"Change Password","id":"a8171f9b-e433-449a-a91b-19e251c2371e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"user8@example.com\",\r\n    \"currentPassword\":\"secretpassword\",\r\n    \"newPassword\":\"newPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/password","description":"<p><strong>Title: Change Password</strong></p>\n<p><strong>Description:</strong> This API endpoint allows authenticated users to change their password.</p>\n<p><strong>Endpoint:</strong> <strong>POST</strong><code>/api/user/:userId/password</code></p>\n<p><strong>Path Parameter:</strong></p>\n<ul>\n<li><strong>userId</strong> (String, required): The unique identity given to each user in _id.</li>\n</ul>\n<p><strong>Request Body:</strong> Users provide the email, currentPassword and newPassword of their account.<br /><strong>Request Headers:</strong> authentication token recieved during signup or login.</p>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object confirming that the User data has been updated with new password.</p>\n","urlObject":{"protocol":"https","path":["user","65155756dae511c7efae82c4","password"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"b88d7442-2138-4cb3-bbda-29d49014a88a","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"user8@example.com\",\r\n    \"currentPassword\":\"secretpassword\",\r\n    \"newPassword\":\"newPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"297"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:58:22 GMT"},{"key":"Etag","value":"W/\"129-yfKsG6MxTKNK1OhSToQIO71oScc\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6905286; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password Changed Successfully\",\n    \"data\": {\n        \"_id\": \"65155756dae511c7efae82c4\",\n        \"username\": \"exampleuser8\",\n        \"email\": \"user8@example.com\",\n        \"password\": \"newPassword\",\n        \"fullName\": \"New User\",\n        \"phoneNumber\": 8012345688,\n        \"createdAt\": \"2023-09-28T10:37:10.405Z\",\n        \"updatedAt\": \"2023-09-28T10:58:22.154Z\",\n        \"__v\": 0\n    }\n}"},{"id":"2126984f-4d8d-4416-8dd2-502bf2a6fbf5","name":"No Token Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"user8@example.com\",\r\n    \"currentPassword\":\"secretpassword\",\r\n    \"newPassword\":\"newPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/password"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:56:45 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6905382; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"},{"id":"2e77d018-4fdd-495a-bf8e-6ba4de90559d","name":"Error Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"user8@example.com\",\r\n    \"currentPassword\":\"secretpasswor\",\r\n    \"newPassword\":\"newPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"72"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:57:50 GMT"},{"key":"Etag","value":"W/\"48-bsFPnDS8ykxJBxx7sDFhZJkHTfc\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6905317; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unable to change password, try again with correct details.\"\n}"}],"_postman_id":"a8171f9b-e433-449a-a91b-19e251c2371e"},{"name":"Update Profile Picture","id":"287a9075-a73f-4ba6-9353-bc2335f53668","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"email\":\"user8@example.com\",\r\n    \"newProfilePicUrl\":\"example.com/new.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/profile","description":"<p><strong>Title: Update Profile Picture</strong></p>\n<p><strong>Description:</strong> This API endpoint allows authenticated users to change their profile picture.</p>\n<p><strong>Endpoint:</strong> <strong>POST</strong><code>/api/user/:userId/profile</code></p>\n<p><strong>Path Parameter:</strong></p>\n<ul>\n<li><strong>userId</strong> (String, required): The unique identity given to each user in _id.</li>\n</ul>\n<p><strong>Request Body:</strong> Users provide the URL of their new profile picture and email.<br /><strong>Request Headers:</strong> authentication token recieved during signup or login.</p>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object confirming that the User data has been updated with newProfilePicUrl in profilePicUrl.</p>\n","urlObject":{"protocol":"https","path":["user","65155756dae511c7efae82c4","profile"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"80332a8e-db83-4117-8cbc-d531220c34f3","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"email\":\"user8@example.com\",\r\n    \"newProfilePicUrl\":\"example.com/new.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"391"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:06:23 GMT"},{"key":"Etag","value":"W/\"187-LM9ZZb8MTAyqQqwC/8muIYiPGjg\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904804; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile Picture Changed Successfully\",\n    \"data\": {\n        \"_id\": \"65155756dae511c7efae82c4\",\n        \"username\": \"exampleuser8\",\n        \"email\": \"user8@example.com\",\n        \"password\": \"$2b$10$l1F3t7qaanbCfyrpZAv91.ux4wFTL7i.92zEMeA2798E9PMZ1jMvW\",\n        \"fullName\": \"New User\",\n        \"phoneNumber\": 8012345688,\n        \"createdAt\": \"2023-09-28T10:37:10.405Z\",\n        \"updatedAt\": \"2023-09-28T11:06:23.074Z\",\n        \"__v\": 0,\n        \"profilePicUrl\": \"example.com/new.jpg\"\n    }\n}"},{"id":"f647a74d-84ad-4eeb-932f-475c7c2cd9fd","name":"Error Response","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \r\n    \"newProfilePicUrl\":\"example.com/new.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/65155756dae511c7efae82c4/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"61"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:06:03 GMT"},{"key":"Etag","value":"W/\"3d-NMRbLkN6a4S8cw6GnuuKrSwYQNE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904824; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not found, try again with correct details.\"\n}"}],"_postman_id":"287a9075-a73f-4ba6-9353-bc2335f53668"},{"name":"Find User by Phone Number","id":"496b0e57-bcfc-41da-89b8-965ed4f4a3af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/phone/1234567891","description":"<p><strong>Title: Find User by Phone Number</strong></p>\n<p><strong>Description:</strong> This API endpoint allows users to search for a user by their phone number within the application.</p>\n<p><strong>Endpoint:</strong> <strong>GET</strong> <code>/api/user/phone/:phoneNumber</code></p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><strong>phoneNumber</strong> (String, required): The phone number of the user you want to find. It is typically provided as part of the URL.</li>\n</ul>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object containing User data with phone number provided in the endpoint.</p>\n","urlObject":{"protocol":"https","path":["user","phone","1234567891"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"b865245e-1963-4642-88ca-d4f54aed672c","name":"Success Response","originalRequest":{"method":"GET","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/phone/1234567891"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"407"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:18:23 GMT"},{"key":"Etag","value":"W/\"197-OUGxMRlaqQXJhkmQ8Yrur03HpRE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904084; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User found Successfully\",\n    \"data\": {\n        \"_id\": \"651427e259fc562814fb30f5\",\n        \"username\": \"user1\",\n        \"profilePicUrl\": \"https://example.com/userone.jpg\",\n        \"email\": \"user1@example.com\",\n        \"password\": \"$2b$10$wI7NAWeMpRlmAuHRR5M.JuyJ.1R/mUqhw1RK.3vZfgZ3nJCehyd36\",\n        \"fullName\": \"User One\",\n        \"address\": \"123 Main St\",\n        \"phoneNumber\": 1234567891,\n        \"createdAt\": \"2023-09-27T13:02:26.237Z\",\n        \"updatedAt\": \"2023-09-27T15:58:05.361Z\",\n        \"__v\": 0\n    }\n}"},{"id":"9a5d32c1-8842-4282-980f-4b54c419b39e","name":"Error Response","originalRequest":{"method":"GET","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE1NTc1NmRhZTUxMWM3ZWZhZTgyYzQiLCJlbWFpbCI6InVzZXI4QGV4YW1wbGUuY29tIiwiaWF0IjoxNjk1ODk4NTQ1LCJleHAiOjE2OTU5MDIxNDV9.bCFf5GYbQ6hrEIGpi2cC5ra7Q0LxoPpackFor6iE_4U","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/user/phone/707070707"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"61"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 11:19:08 GMT"},{"key":"Etag","value":"W/\"3d-NMRbLkN6a4S8cw6GnuuKrSwYQNE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6904039; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not found, try again with correct details.\"\n}"}],"_postman_id":"496b0e57-bcfc-41da-89b8-965ed4f4a3af"},{"name":"User Reviews for a specific movie","id":"a4826c19-4139-43b1-b0c2-4680b0030569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0db1edd233585c4a8f/reviews","description":"<p><strong>Title:</strong> Retrieve User Reviews for a Specific Movie</p>\n<p><strong>Endpoint: GET</strong><code>/api/movies/:movieId/reviews</code></p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to retrieve movie's reviews with top three ratings through movie id.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>movieId</strong> - The unique identifier of the movie for retrieving movie's reviews and ratings.</p>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object containing top 3 reviews and ratings for the movie.</p>\n","urlObject":{"protocol":"https","path":["movies","65146a0db1edd233585c4a8f","reviews"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"4f10b64d-39fc-4980-ba32-d90d2f396204","name":"Success Response","originalRequest":{"method":"GET","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE0MjA4ZjlhZjA1Mjc2ZDlkOTlmZmEiLCJlbWFpbCI6ImpvZTEyM0BnbWFpbC5jb20iLCJpYXQiOjE2OTU4MzQ2NjYsImV4cCI6MTY5NTgzODI2Nn0.TPGzrxmq62GP1X0QtUOv4-fB65p89FrMq7i49n61-No","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0db1edd233585c4a8f/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"555"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 09:35:21 GMT"},{"key":"Etag","value":"W/\"22b-0KuVynhs5X3YB41HIZZF2JcoE1Y\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6910266; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved movie reviews\",\n    \"data\": [\n        {\n            \"user\": {\n                \"_id\": \"651427e259fc562814fb30f5\",\n                \"username\": \"user1\",\n                \"profilePicUrl\": \"https://example.com/userone.jpg\"\n            },\n            \"rating\": 9,\n            \"text\": \"A must-watch!\",\n            \"_id\": \"65146a0db1edd233585c4a92\"\n        },\n        {\n            \"user\": {\n                \"_id\": \"651425e9310c08d0f4be5e70\",\n                \"username\": \"ted\"\n            },\n            \"rating\": 8.5,\n            \"text\": \"Great action scenes!\",\n            \"_id\": \"65146a0db1edd233585c4a90\"\n        },\n        {\n            \"user\": {\n                \"_id\": \"6514281759fc562814fb30f9\",\n                \"username\": \"user9\",\n                \"profilePicUrl\": \"https://example.com/user3.jpg\"\n            },\n            \"rating\": 8,\n            \"text\": \"Action-packed!\",\n            \"_id\": \"65146a0db1edd233585c4a94\"\n        }\n    ]\n}"},{"id":"5b684903-22cb-45fa-a054-a602b88f216a","name":"Error Response","originalRequest":{"method":"GET","header":[{"key":"authentication","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NTE0MjA4ZjlhZjA1Mjc2ZDlkOTlmZmEiLCJlbWFpbCI6ImpvZTEyM0BnbWFpbC5jb20iLCJpYXQiOjE2OTU4MzQ2NjYsImV4cCI6MTY5NTgzODI2Nn0.TPGzrxmq62GP1X0QtUOv4-fB65p89FrMq7i49n61-No","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0db1edd233585c4a8/reviews"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"43"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 09:35:56 GMT"},{"key":"Etag","value":"W/\"2b-s3vfD4ZSYh3YyK+R5LOs9UQtNNo\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6910231; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Movie for given id not found.\"\n}"}],"_postman_id":"a4826c19-4139-43b1-b0c2-4680b0030569"},{"name":"Add User's Review to a movie","id":"43b5418c-4b1d-4023-b79b-440f390b9adf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\":\"6514282759fc562814fb30fb\",\r\n    \"text\":\"New comment\",\r\n    \"rating\":9.5\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0eb1edd233585c4aa4/reviews","description":"<p><strong>Title:</strong> Add a User's Review for a Movie</p>\n<p><strong>Endpoint: POST</strong><code>/api/movies/:movieId/reviews</code></p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint enables users to contribute by adding their reviews and ratings for a movie. To use this feature, users need to specify the movie's unique identifier, their own user ID, the review text, and the numerical rating (usually on a scale of 1 to 10).</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>movieId</strong> - The unique identifier of the movie for which the review and rating should be added.</p>\n<p><strong>Request Body</strong> <strong>:</strong></p>\n<ul>\n<li><strong>text</strong> (String): The text of the review, providing insights and opinions about the restaurant. this is a required field.</li>\n<li><strong>user</strong> - The unique identifier of the user adding the review and rating. this is a required field.</li>\n<li><strong>rating</strong> (Number): A numerical rating assigned to the movie, typically on a scale of 1 to 10. this is a required field.</li>\n</ul>\n<p><strong>Returns:</strong> Upon successful execution, this API responds with a JSON object confirming that the review and rating have been added for the movie.</p>\n","urlObject":{"protocol":"https","path":["movies","65146a0eb1edd233585c4aa4","reviews"],"host":["assignment15movierevieweraasimd","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"707f9270-55d8-466a-90da-6a3118b5a8f7","name":"Success Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\":\"6514282759fc562814fb30fb\",\r\n    \"text\":\"New comment\",\r\n    \"rating\":9.5\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0eb1edd233585c4aa4/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1024"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:17:37 GMT"},{"key":"Etag","value":"W/\"400-SaPP4h3dUfnMvivLdxJLaU1OLVo\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6907731; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully added review to Movie\",\n    \"data\": {\n        \"_id\": \"65146a0eb1edd233585c4aa4\",\n        \"title\": \"Movie Three\",\n        \"releaseYear\": 2021,\n        \"genre\": [\n            \"Drama\",\n            \"Romance\"\n        ],\n        \"reviews\": [\n            {\n                \"user\": \"6514281759fc562814fb30f9\",\n                \"rating\": 8.3,\n                \"text\": \"Beautiful love story.\",\n                \"_id\": \"65146a0eb1edd233585c4aa5\"\n            },\n            {\n                \"user\": \"6514282759fc562814fb30fb\",\n                \"rating\": 7.7,\n                \"text\": \"Emotional journey.\",\n                \"_id\": \"65146a0eb1edd233585c4aa6\"\n            },\n            {\n                \"user\": \"6514283359fc562814fb30fd\",\n                \"rating\": 9.1,\n                \"text\": \"Outstanding performances.\",\n                \"_id\": \"65146a0eb1edd233585c4aa7\"\n            },\n            {\n                \"user\": \"6514285a00be88b78bd6f293\",\n                \"rating\": 8.6,\n                \"text\": \"Touching moments.\",\n                \"_id\": \"65146a0eb1edd233585c4aa8\"\n            },\n            {\n                \"user\": \"6514288400be88b78bd6f297\",\n                \"rating\": 7.2,\n                \"text\": \"Worth watching.\",\n                \"_id\": \"65146a0eb1edd233585c4aa9\"\n            },\n            {\n                \"user\": \"651425e9310c08d0f4be5e70\",\n                \"rating\": 8.8,\n                \"text\": \"Heartfelt drama.\",\n                \"_id\": \"65146a0eb1edd233585c4aaa\"\n            },\n            {\n                \"user\": \"6514282759fc562814fb30fb\",\n                \"rating\": 9.5,\n                \"text\": \"New comment\",\n                \"_id\": \"651552c17280ed38c6c341e7\"\n            }\n        ],\n        \"createdAt\": \"2023-09-27T17:44:46.380Z\",\n        \"updatedAt\": \"2023-09-28T10:17:37.097Z\",\n        \"__v\": 1\n    }\n}"},{"id":"06e83739-a031-4ad8-9a5d-0f1c73a33cf7","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\":\"6514282759fc562814fb30fb\",\r\n    \"text\":\"New comment\",\r\n    \"rating\":9.5\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment15movierevieweraasimd.aasimd.repl.co/movies/65146a0eb1edd233585c4aa/reviews"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"43"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 28 Sep 2023 10:18:07 GMT"},{"key":"Etag","value":"W/\"2b-s3vfD4ZSYh3YyK+R5LOs9UQtNNo\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-b"},{"key":"Strict-Transport-Security","value":"max-age=6907700; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Movie for given id not found.\"\n}"}],"_postman_id":"43b5418c-4b1d-4023-b79b-440f390b9adf"}]}