{"info":{"_postman_id":"afb53c5d-d407-4b80-b75b-eef347aead38","name":"Rent me","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17756817","collectionId":"afb53c5d-d407-4b80-b75b-eef347aead38","publishedId":"UzBgup9u","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-13T22:21:21.000Z"},"item":[{"name":"localhost:3001/v1/signup","id":"610310f4-9a74-4ad9-9c8c-292546d66d07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\": {\r\n    \t\"username\": \"test2345\",\r\n        \"email\": \"test2345@collier.net\",\r\n        \"password\": \"llllllopl\"\r\n    }\r\n}\r\n"},"url":"https://aqueous-temple-36685.herokuapp.com/v1/signup","description":"<p>Api endpoint to register a new user in the system</p>\n<blockquote>\n<p>A successful registration will result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["v1","signup"],"host":["aqueous-temple-36685","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"6f583dc2-b7e3-40c2-aee5-ccf9d9ffe46d","name":"localhost:3001/v1/signup","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\": {\r\n    \t\"username\": \"test2345\",\r\n        \"email\": \"test2345@collier.net\",\r\n        \"password\": \"llllllopl\"\r\n    }\r\n}\r\n"},"url":"https://aqueous-temple-36685.herokuapp.com/v1/signup"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"610310f4-9a74-4ad9-9c8c-292546d66d07"},{"name":"localhost:3001/v1/login","id":"0bd8ab76-56e7-4bd4-9dbf-ccb729311157","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNGVlYTZiOC0zNTRjLTQxYTMtYWZjNS1kYTlkZWE0YTg5MGMiLCJzdWIiOiI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTUyNjQ1LCJleHAiOjE2NTUxNTQ0NDV9.UG0zVI26j_gWzD-r_waFhYtlyInZZ5k8yt4Hief1iEM"}],"body":{"mode":"raw","raw":"{\r    \"user\": {\r        \"email\": \"reemoz@collier.net\",\r        \"password\": \"llllll\"\r    }\r}\r"},"url":"localhost:3001/v1/login","description":"<p>Api endpoint to register new user in the system</p>\n<blockquote>\n<p>A successful registration will result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0bd8ab76-56e7-4bd4-9dbf-ccb729311157"},{"name":"localhost:3001/v1/houses","id":"5b9c01ba-4e7b-43a9-9b05-c9e948b3b0ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNGVlYTZiOC0zNTRjLTQxYTMtYWZjNS1kYTlkZWE0YTg5MGMiLCJzdWIiOiI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTUyNzE4LCJleHAiOjE2NTUxNTQ1MTh9.CUy81rR1JPsYZXuewgfSTHCnP_K9aYFMt-F8BeOQqmE"}],"url":"localhost:3001/v1/houses","description":"<p>Api endpoint to Get all the houses</p>\n<blockquote>\n<p>A successful response Gets all the houses and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","houses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b9c01ba-4e7b-43a9-9b05-c9e948b3b0ae"},{"name":"localhost:3001/v1/houses/:id","id":"af3755b1-ffa6-43b4-9443-fd820af0bf80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNGVlYTZiOC0zNTRjLTQxYTMtYWZjNS1kYTlkZWE0YTg5MGMiLCJzdWIiOiI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTUyNzE4LCJleHAiOjE2NTUxNTQ1MTh9.CUy81rR1JPsYZXuewgfSTHCnP_K9aYFMt-F8BeOQqmE"}],"url":"localhost:3001/v1/houses/1?=","description":"<p>Api endpoint to Get one house data</p>\n<blockquote>\n<p>A successful response Gets one house data and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","houses","1"],"host":["localhost"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"af3755b1-ffa6-43b4-9443-fd820af0bf80"},{"name":"localhost:3001/v1/houses","id":"6d13f620-2dc4-4117-a7e4-bde7be06310c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNGVlYTZiOC0zNTRjLTQxYTMtYWZjNS1kYTlkZWE0YTg5MGMiLCJzdWIiOiI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTUyNzE4LCJleHAiOjE2NTUxNTQ1MTh9.CUy81rR1JPsYZXuewgfSTHCnP_K9aYFMt-F8BeOQqmE"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"address\": \"st 33/10\",\n    \"city\": \"ciaro\",\n    \"zip_code\": 126645,\n    \"image\": \"https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\",\n    \"rooms\": 15,\n    \"bathrooms\": 5,\n    \"surroundings\": \"sea\",\n    \"price\": \"20\",\n    \"construction_year\": 1994\n  }\n"},"url":"localhost:3001/v1/houses","description":"<p>Api endpoint to create a new house.</p>\n<blockquote>\n<p>A successful response creates a new house and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","houses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d13f620-2dc4-4117-a7e4-bde7be06310c"},{"name":"localhost:3001/v1/houses/:id","id":"a879c476-6e43-4289-8f64-f77c986d8398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNGVlYTZiOC0zNTRjLTQxYTMtYWZjNS1kYTlkZWE0YTg5MGMiLCJzdWIiOiI2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTUyNzE4LCJleHAiOjE2NTUxNTQ1MTh9.CUy81rR1JPsYZXuewgfSTHCnP_K9aYFMt-F8BeOQqmE"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"localhost:3001/v1/houses/2","description":"<p>Api endpoint to delete a new house.</p>\n<blockquote>\n<p>A successful response delete a house and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","houses","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a879c476-6e43-4289-8f64-f77c986d8398"},{"name":"localhost:3001/v1/reservations","id":"305d46d7-8df4-4617-8567-7055ba974664","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhY2NiZWFmNi1kNWI2LTQwYzYtYWI4ZC02NjE5ODNlNmM2ZWEiLCJzdWIiOiI5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTYwNTc0LCJleHAiOjE2NTUxNjIzNzR9.W8qvqQjpM-fKvwQ5Dd9-zIJMlkRxOJRnXALGZ3aGNgQ"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:3001/v1/reservations","description":"<p>Api endpoint to Get all reservations.</p>\n<blockquote>\n<p>A successful response to get all reservations and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","reservations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"305d46d7-8df4-4617-8567-7055ba974664"},{"name":"localhost:3001/v1/reservations","id":"e3afae9b-5d5f-4a27-b61d-280ea9c7985e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI4YzM4N2Y1My01N2RkLTQ1MTAtOTFlZS1jNDYxN2MzM2M5MTkiLCJzdWIiOiI3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTU3NTY5LCJleHAiOjE2NTUxNTkzNjl9.ZaRMrasjpN4eg4IZFvZGNLEdXivDeIeD2kUMfiuvg1Y"}],"body":{"mode":"raw","raw":"{\n\t\"house_id\": 1,\n\t\"user_id\": 1,\n\t\"date\": \"17/9/2023\"\n}"},"url":"localhost:3001/v1/reservations","description":"<p>Api endpoint to Create a new reservation.</p>\n<blockquote>\n<p>A successful response to create a new reservation and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","reservations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3afae9b-5d5f-4a27-b61d-280ea9c7985e"},{"name":"localhost:3001/v1/current_user","id":"c4ff179a-5701-4867-a753-1198808704c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkNzgzZmEwMC1jZTkyLTRhODgtOTZjMS01OGViYjFmOGNjNmUiLCJzdWIiOiI4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTU5NjAyLCJleHAiOjE2NTUxNjE0MDJ9.5OAiHmXbqvpTVJe6cK8z2hCLTR-QnxVpb1WQIZ0Z-uE","type":"text"}],"url":"localhost:3001/v1/current_user","description":"<p>Api endpoint to get the current user.</p>\n<blockquote>\n<p>A successful response to get the current user and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","current_user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4ff179a-5701-4867-a753-1198808704c7"},{"name":"localhost:3001/v1/logout","id":"d85bd370-257f-464b-83f5-f11b9c7a973f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhY2NiZWFmNi1kNWI2LTQwYzYtYWI4ZC02NjE5ODNlNmM2ZWEiLCJzdWIiOiI5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjU1MTYwNTc0LCJleHAiOjE2NTUxNjIzNzR9.W8qvqQjpM-fKvwQ5Dd9-zIJMlkRxOJRnXALGZ3aGNgQ","type":"text"}],"url":"localhost:3001/v1/logout","description":"<p>Api endpoint to logout the current user.</p>\n<blockquote>\n<p>A successful response logout the user and result in a HTTP 200 Status code </p>\n</blockquote>\n","urlObject":{"port":"3001","path":["v1","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d85bd370-257f-464b-83f5-f11b9c7a973f"}]}