{"info":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","description":"<html><head></head><body><p><strong>Hotel Reservation API:</strong> This API is used for hotel room management and reservations. In this API there are 2 actors, namely Admin and Customer. Admins can access all features, while customers can only access Reservations, Payments and other features using the GET method.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17589555","collectionId":"3bdb0446-86c0-40f5-9852-617cf5291491","publishedId":"2sA35Eb3nY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-28T13:31:18.000Z"},"item":[{"name":"Facility","item":[{"name":"Get All Facility","id":"ba4a2d94-acc2-40d8-aec4-4e425c6e2de4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/facility","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["facility"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba4a2d94-acc2-40d8-aec4-4e425c6e2de4"},{"name":"Get Facility By Id","id":"dc8f5453-8d44-4e3b-afec-732b05cea6fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/facility/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["facility","3"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc8f5453-8d44-4e3b-afec-732b05cea6fe"},{"name":"Create Facility","id":"1f6cbf37-90d6-4e28-9fad-391700e1ac6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Television\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/facility","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["facility"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f6cbf37-90d6-4e28-9fad-391700e1ac6d"},{"name":"Update Facility","id":"0333c1ff-34be-4670-abfa-3acea5213ce7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" : 3,\r\n    \"name\" : \"Television 24 Inch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/facility","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["facility"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0333c1ff-34be-4670-abfa-3acea5213ce7"},{"name":"Delete Facility","id":"7f7d8391-25b4-44a5-b784-397965dfc899","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/facility/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["facility","2"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f7d8391-25b4-44a5-b784-397965dfc899"}],"id":"ca5dcec2-db4b-43a0-80f5-fbf2f018a95b","description":"<p><strong>Facilities</strong> represent the facilities provided by the hotel in each room. Each facility can be used by multiple room types.</p>\n","_postman_id":"ca5dcec2-db4b-43a0-80f5-fbf2f018a95b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Room Type","item":[{"name":"Get All Room Type","id":"21554f6e-fb2f-4507-adc2-f54b2c848b90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room-type","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room-type"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"21554f6e-fb2f-4507-adc2-f54b2c848b90"},{"name":"Get Room Type By Id","id":"0d16b551-6e69-437a-aac6-79f5fe339618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room-type/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room-type","2"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d16b551-6e69-437a-aac6-79f5fe339618"},{"name":"Create Room Type","id":"5d5e30a6-6288-42b6-904b-b4c9e788d78c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Mini Room\",\r\n    \"bedType\" : \"single\",\r\n    \"bedCount\" : 1,\r\n    \"facilitiesId\" : [1,3]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/room-type","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room-type"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d5e30a6-6288-42b6-904b-b4c9e788d78c"},{"name":"Update Room Type","id":"d66ace58-4a55-4b42-9b4f-fb58d7d24c63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" : \"2\",\r\n    \"name\" : \"Mini Twin Room\",\r\n    \"bedType\" : \"single\",\r\n    \"bedCount\" : 2,\r\n    \"facilitiesId\" : [1,3]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/room-type","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room-type"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d66ace58-4a55-4b42-9b4f-fb58d7d24c63"},{"name":"Delete Room Type","id":"849429b5-47b1-46d5-a1a3-0d190c3607ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/room-type/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room-type","3"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"849429b5-47b1-46d5-a1a3-0d190c3607ab"}],"id":"c102e532-8b54-4af4-9da9-10c9fba8038a","description":"<p>Room Type represents the type of room provided by the hotel. Each room type can have many facilities.</p>\n","_postman_id":"c102e532-8b54-4af4-9da9-10c9fba8038a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Room","item":[{"name":"Get All Room","id":"d2acc70e-5be7-40af-bdfa-e8dbb1bed516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2acc70e-5be7-40af-bdfa-e8dbb1bed516"},{"name":"Get Room By Id","id":"b8fad0db-2f7f-4b81-8861-569500b60118","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room","3"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8fad0db-2f7f-4b81-8861-569500b60118"},{"name":"Create Room","id":"92e92ef8-8122-40d9-9b66-0c09941e1cf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"roomTypeId\" : 2,\r\n    \"roomNumber\" : 3,\r\n    \"price\" : 200000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/room","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"92e92ef8-8122-40d9-9b66-0c09941e1cf5"},{"name":"Update Room","id":"e14ccb3e-fbca-4c85-a49a-cdcaf885fe47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" : 3,\r\n    \"roomTypeId\" : 2,\r\n    \"roomNumber\" : 10,\r\n    \"price\" : 500000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/room","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e14ccb3e-fbca-4c85-a49a-cdcaf885fe47"},{"name":"Delete Room","id":"f920676b-baa5-4a32-89e0-b36cc50b3009","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/room/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["room","2"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f920676b-baa5-4a32-89e0-b36cc50b3009"}],"id":"355b3239-8784-4c7a-97e9-eab065520526","description":"<p><strong>Room</strong> represents the product for which the transaction will be carried out. Room has 1 Room Type and many Room Prices (but only 1 price is active).</p>\n","_postman_id":"355b3239-8784-4c7a-97e9-eab065520526","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Auth","item":[{"name":"Register Admin","id":"ffbcd538-0540-49bf-9ffa-a780336d1420","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"admin\",\r\n    \"password\" : \"admin\",\r\n    \"name\" : \"Akhmad Rizaldi\",\r\n    \"address\" : \"Jl. Perak Barat No. 17\",\r\n    \"email\" : \"admin@admin.id\",\r\n    \"phoneNumber\" : \"088123123123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/register/admin","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9983a47a-9561-4cd8-8c95-2f832f867101","id":"9983a47a-9561-4cd8-8c95-2f832f867101","name":"Auth","type":"folder"}},"urlObject":{"path":["auth","register","admin"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffbcd538-0540-49bf-9ffa-a780336d1420"},{"name":"Register Customer","id":"06645e39-0f9c-4860-a18d-fb17485fcd11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"customer\",\r\n    \"password\" : \"customer\",\r\n    \"name\" : \"Zaldi Irvana\",\r\n    \"address\" : \"Jl. Perak\",\r\n    \"email\" : \"customer@customer.id\",\r\n    \"identityNumber\" : \"3524111122223333\",\r\n    \"phoneNumber\" : \"085111222333\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/register/customer","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9983a47a-9561-4cd8-8c95-2f832f867101","id":"9983a47a-9561-4cd8-8c95-2f832f867101","name":"Auth","type":"folder"}},"urlObject":{"path":["auth","register","customer"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"06645e39-0f9c-4860-a18d-fb17485fcd11"},{"name":"Login","id":"346c2849-3d72-4ac6-a7c9-1f1a374dc184","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"admin\",\r\n    \"password\" : \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9983a47a-9561-4cd8-8c95-2f832f867101","id":"9983a47a-9561-4cd8-8c95-2f832f867101","name":"Auth","type":"folder"}},"urlObject":{"path":["auth","login"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"346c2849-3d72-4ac6-a7c9-1f1a374dc184"}],"id":"9983a47a-9561-4cd8-8c95-2f832f867101","description":"<p><strong>Auth</strong> is a feature for registration and login. Using Auth does not require a bearer token when accessed.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ba0d828b-f63e-4eb0-abae-dd0941fdf4e9","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"b35224de-8d8c-402e-bb19-d46fe56ecb79","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"9983a47a-9561-4cd8-8c95-2f832f867101"},{"name":"Reservation","item":[{"name":"Get All Reservation","id":"4cc40080-7a81-4c5d-92ef-dcf1bc58a277","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/reservation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["reservation"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cc40080-7a81-4c5d-92ef-dcf1bc58a277"},{"name":"Get Reservation By Id","id":"26a76f63-3f3e-4f34-a4d9-7902a444a407","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/reservation/012","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["reservation","012"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"26a76f63-3f3e-4f34-a4d9-7902a444a407"},{"name":"Create Reservation","id":"db725070-1f85-425a-9698-7bed33f0efcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"roomId\" : \"1\",\r\n    \"customerId\" : \"1\",\r\n    \"checkinDate\" : \"2024-12-12\",\r\n    \"checkoutDate\" : \"2024-12-13\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/reservation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["reservation"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"db725070-1f85-425a-9698-7bed33f0efcc"},{"name":"Cancel Reservation","id":"7c3445b1-953e-4ff4-9bce-500c990673dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:8080/api/reservation/3/cancel","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["reservation","3","cancel"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c3445b1-953e-4ff4-9bce-500c990673dd"},{"name":"Pay Reservation","id":"041b78bf-28e5-438a-a501-150459e2da05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/Lenovo/Downloads/bukti tf.jpg"}]},"url":"http://localhost:8080/api/reservation/5/pay","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["reservation","5","pay"],"host":["http://localhost:8080/api"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"041b78bf-28e5-438a-a501-150459e2da05"}],"id":"4e44fa12-6aa6-455a-abbd-b50844c1a2e2","description":"<p>Reservation is the main feature in this API. When making a reservation, you need to enter customer ID, Room ID, Checking Date and Checkout Date.</p>\n","_postman_id":"4e44fa12-6aa6-455a-abbd-b50844c1a2e2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Payment","item":[{"name":"Get All Payments","id":"8d27e74c-f03b-4c7c-bfc2-fe41d9d6775f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/payment?status=payment_invalid","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["payment"],"host":["http://localhost:8080/api"],"query":[{"key":"status","value":"payment_invalid"}],"variable":[]}},"response":[],"_postman_id":"8d27e74c-f03b-4c7c-bfc2-fe41d9d6775f"},{"name":"Get Payment By Id","id":"34cdba4d-0669-48a2-9650-9073859773a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/payment/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["payment","1"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"34cdba4d-0669-48a2-9650-9073859773a9"},{"name":"Approve Payments","id":"cbcf0dd4-49f9-412f-8571-da3031747d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:8080/api/payment/1/approve","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["payment","1","approve"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbcf0dd4-49f9-412f-8571-da3031747d29"},{"name":"Reject Payments","id":"f0c2fb77-1aab-45ad-a02b-ad85fe8304ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:8080/api/payment/2/reject","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["payment","2","reject"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0c2fb77-1aab-45ad-a02b-ad85fe8304ea"},{"name":"Download Payment Attachment","id":"b629f3b8-e175-40c1-b46a-de356e380898","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/payment/1/download","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["payment","1","download"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b629f3b8-e175-40c1-b46a-de356e380898"}],"id":"bb15aed0-785a-41a9-bc9b-4c9810765df7","description":"<p>Payment is a feature for handling payments such as approve, reject and get payments (the payment process is done in the Reservation menu).</p>\n","_postman_id":"bb15aed0-785a-41a9-bc9b-4c9810765df7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Customer","item":[{"name":"Get All","id":"4c61273d-50ad-4ba0-a975-9523655ff29d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/customer","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["customer"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c61273d-50ad-4ba0-a975-9523655ff29d"},{"name":"Get Customer By Id","id":"2dd2f60e-d106-4b99-9c6c-2e55d04ba20b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/customer/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["customer","1"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2dd2f60e-d106-4b99-9c6c-2e55d04ba20b"},{"name":"Update Customer","id":"27722a00-5fa3-435d-83fd-842a5646b30f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"identityNumber\": \"3524111122229999\",\r\n    \"name\": \"Rizaldi Irvana\",\r\n    \"address\": \"Jl. Perak Timur 99\",\r\n    \"phoneNumber\": \"088123123123\",\r\n    \"email\": \"customer@customer.id\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/customer","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["customer"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"27722a00-5fa3-435d-83fd-842a5646b30f"}],"id":"b7c26b6e-45e9-41b8-a3f2-0d049c579c40","description":"<p>Customer represents the actor who will make reservations and payments</p>\n","_postman_id":"b7c26b6e-45e9-41b8-a3f2-0d049c579c40","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}},{"name":"Admin","item":[{"name":"Get All Admin","id":"9261b4ab-2ba0-46c0-8219-0cbd2dcac812","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/admin","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["admin"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9261b4ab-2ba0-46c0-8219-0cbd2dcac812"},{"name":"Get Admin By Id","id":"323c83ca-3b1d-46fb-b5a8-c972f6bbdec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/admin/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["admin","1"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"323c83ca-3b1d-46fb-b5a8-c972f6bbdec1"},{"name":"Update Admin","id":"977ee10b-7b41-4513-9555-ba033cdd20c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n        \"name\": \"Akhmad Rizaldi\",\r\n        \"address\": \"Jl. Perak Barat No. 33\",\r\n        \"phoneNumber\": \"088123123123\",\r\n        \"email\": \"admin@admin.id\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/admin","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}},"urlObject":{"path":["admin"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"977ee10b-7b41-4513-9555-ba033cdd20c6"}],"id":"4413c6ae-0e9d-4fec-ba2c-522b95ffb279","description":"<p>Admin represents the actor who manages hotel data, approves reservations/payments</p>\n","_postman_id":"4413c6ae-0e9d-4fec-ba2c-522b95ffb279","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3bdb0446-86c0-40f5-9852-617cf5291491","id":"3bdb0446-86c0-40f5-9852-617cf5291491","name":"Hotel Reservation","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"ef2ef1d9-123e-43ce-a600-7cf7e8c7c6c3","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"8007b6b9-2d41-49ff-8c16-9144fb6df7a7","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"http://localhost:8080/api","type":"string"}]}