{"info":{"_postman_id":"673c79cc-5cbe-4594-a51c-ad72f525fe7f","name":"Rapid review api","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14864737","collectionId":"673c79cc-5cbe-4594-a51c-ad72f525fe7f","publishedId":"UVJkAtHs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-12-08T12:55:40.000Z"},"item":[{"name":"ReviewsResource","item":[{"name":"Getting all reviews","id":"49d71f64-7b26-470e-b00d-f7e3438c3953","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/reviews","description":"<p>Will fetch all the reviews from the review resources </p>\n","urlObject":{"path":["reviews"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"select","value":"title,author"},{"disabled":true,"key":"sort","value":"author"},{"disabled":true,"key":"sort","value":"-star"}],"variable":[]}},"response":[],"_postman_id":"49d71f64-7b26-470e-b00d-f7e3438c3953"},{"name":"Creating a review","id":"bb054178-a0b0-46bf-8d41-ef4ba5719b1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxOWE5ZmYwMTg2MTYyYjkzZGQ1ZTU2YiIsImlhdCI6MTYzODgwNzYyMCwiZXhwIjoxNjQxMzk5NjIwfQ.GRWEXQhSfVxyuiHzye1lHa40pOcW6M9i0diKhhhBwIY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"The Red notice\",\r\n    \"subtitle\":\"Dumb fun\",\r\n    \"author\":\"Jeremy Jahns\",\r\n    \"description\":\"This is another cliche movie made by Dwayne Jhonson and Ryan Reynolds.\",\r\n    \"ratingType\":\"positive\",\r\n    \"star\":3\r\n\r\n\r\n}"},"url":"{{URL}}/reviews","description":"<p>Will create a single review</p>\n","urlObject":{"path":["reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb054178-a0b0-46bf-8d41-ef4ba5719b1c"},{"name":"Getting a single review","id":"c3d57f42-28a9-4b7b-8266-0bc003a8e7e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxOWE5ZmYwMTg2MTYyYjkzZGQ1ZTU2YiIsImlhdCI6MTYzODgwNTc0NSwiZXhwIjoxNjQxMzk3NzQ1fQ.lcXZ65FQVl4SiCEb5tZlvoZ81aajgz9b_FxS1DOs1nw","type":"text"}],"url":"{{URL}}/reviews/61ae316ac8c3a520afbdedb9","description":"<p>will fetch a single review based on id.</p>\n","urlObject":{"path":["reviews","61ae316ac8c3a520afbdedb9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3d57f42-28a9-4b7b-8266-0bc003a8e7e4"},{"name":"Updating single review","id":"c5fb0f9e-ebb0-44db-898a-b6cbb8384955","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxOWE5ZmYwMTg2MTYyYjkzZGQ1ZTU2YiIsImlhdCI6MTYzODgwNzYyMCwiZXhwIjoxNjQxMzk5NjIwfQ.GRWEXQhSfVxyuiHzye1lHa40pOcW6M9i0diKhhhBwIY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Robinson crusso\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/reviews/61ae3235c8c3a520afbdedc4","urlObject":{"path":["reviews","61ae3235c8c3a520afbdedc4"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5fb0f9e-ebb0-44db-898a-b6cbb8384955"},{"name":"Deleting single review","id":"fb66adf2-b980-4641-be5e-bcbd7b6d9bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxYWUzNzk4MTMxZTcyNjQ5MzM2NDFiNiIsImlhdCI6MTYzODgwODQ1MiwiZXhwIjoxNjQxNDAwNDUyfQ.9CM4O6y2uENxnP47erPeSBEBvRvJZW36u9M-zWHbV1I","type":"text"}],"url":"{{URL}}/reviews/61ae3b62f87cbf82584ce8b6","description":"<p>will delete a single review.</p>\n","urlObject":{"path":["reviews","61ae3b62f87cbf82584ce8b6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb66adf2-b980-4641-be5e-bcbd7b6d9bec"}],"id":"9d8b9489-b368-427a-9c25-d04130d99421","_postman_id":"9d8b9489-b368-427a-9c25-d04130d99421","description":""},{"name":"AuthResource","item":[{"name":"register user","id":"c7639214-8a3c-4d33-982d-7d185dbd2833","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jim Break\",\r\n    \"email\": \"Jim123@gmail.com\",\r\n    \"password\":\"jim123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/auth/register","description":"<p>for registering new users</p>\n","urlObject":{"path":["auth","register"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7639214-8a3c-4d33-982d-7d185dbd2833"},{"name":"login user","id":"67dcc152-6d44-4749-85fe-e38ea52789d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"Jim123@gmail.com\",\r\n    \"password\": \"jim1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/auth/login","description":"<p>get token for existing user</p>\n","urlObject":{"path":["auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"67dcc152-6d44-4749-85fe-e38ea52789d5"},{"name":"get user details (private)","id":"ede28821-6d51-4866-ac17-0695c1cd4482","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxOWE5ZmYwMTg2MTYyYjkzZGQ1ZTU2YiIsImlhdCI6MTYzODgwNTc0NSwiZXhwIjoxNjQxMzk3NzQ1fQ.lcXZ65FQVl4SiCEb5tZlvoZ81aajgz9b_FxS1DOs1nw","type":"text"}],"url":"{{URL}}/auth/me","description":"<p>for getting currently logged in user detail</p>\n","urlObject":{"path":["auth","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ede28821-6d51-4866-ac17-0695c1cd4482"},{"name":"forget password token","id":"26fc7f54-7077-45f0-b963-158bddd7609a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"Jim123@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/auth/forgetpassword","description":"<p>for sending request to generate reset password token.</p>\n","urlObject":{"path":["auth","forgetpassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26fc7f54-7077-45f0-b963-158bddd7609a"},{"name":"reset password and get token","id":"1be98ac4-02f3-4949-b978-aa492fffed7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"jim1234\"\r\n}"},"url":"{{URL}}/auth/resetpassword/27b6e6e77eaa39d49674d6e16d71bf6e6f5e9e83","description":"<p>This route will allow registered user to reset his password in the database.</p>\n","urlObject":{"path":["auth","resetpassword","27b6e6e77eaa39d49674d6e16d71bf6e6f5e9e83"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1be98ac4-02f3-4949-b978-aa492fffed7e"},{"name":"update loggedin user details","id":"f743d8d8-00c3-4650-aee4-13a41b7d4b0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxYWUzNzk4MTMxZTcyNjQ5MzM2NDFiNiIsImlhdCI6MTYzODk1OTIxOCwiZXhwIjoxNjQxNTUxMjE4fQ.OSfRMzMAuMsfLtd7TB_SA01-QY6kmIr5ek_ggFc4kcM","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jim Crook\",\r\n    \"email\": \"Jim123@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/auth/updatedetails","urlObject":{"path":["auth","updatedetails"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f743d8d8-00c3-4650-aee4-13a41b7d4b0c"}],"id":"8f08902a-5033-4441-a0ef-0a288d8a2805","_postman_id":"8f08902a-5033-4441-a0ef-0a288d8a2805","description":""}]}