{"info":{"_postman_id":"0a734945-b503-4b08-975c-7c03f42ae899","name":"LibraryMan: Library Management Simplified 📚","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>LibraryMan is a user-friendly software solution for schools, companies, and libraries to efficiently manage book collections, track borrowing, and monitor due dates. It streamlines operations, reduces errors, and enhances the lending experience, making it easy to maintain a well-organized library.</p>\n<h2 id=\"💡links\">💡Links</h2>\n<p><a href=\"https://github.com/ajaynegi45/LibraryMan-API\">LibraryMan-API Project Github</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"28691426","collectionId":"0a734945-b503-4b08-975c-7c03f42ae899","publishedId":"2sAXjJ6D7L","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-28T09:50:36.000Z"},"item":[{"name":"Analytics","item":[{"name":"getBorrowingTrends","id":"083a2efc-9a17-4007-8955-6230e9576e59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/analytics/borrowing-trends","urlObject":{"protocol":"http","port":"8080","path":["api","analytics","borrowing-trends"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"083a2efc-9a17-4007-8955-6230e9576e59"},{"name":"getMemberActivityReport","id":"719c8377-dd1c-45ba-97de-5811ac050b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/analytics/member-activity","urlObject":{"protocol":"http","port":"8080","path":["api","analytics","member-activity"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"719c8377-dd1c-45ba-97de-5811ac050b3c"},{"name":"getLibraryOverview","id":"d6eb8792-023f-4af2-9cf0-ccf7f179d38b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/analytics/overview","urlObject":{"protocol":"http","port":"8080","path":["api","analytics","overview"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6eb8792-023f-4af2-9cf0-ccf7f179d38b"},{"name":"getPopularBooks","id":"dd9d92eb-f0ed-4ee0-979e-7329d7e01366","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/analytics/popular-books","urlObject":{"protocol":"http","port":"8080","path":["api","analytics","popular-books"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd9d92eb-f0ed-4ee0-979e-7329d7e01366"}],"id":"696f53fc-88de-476c-a51d-ffc078463b32","_postman_id":"696f53fc-88de-476c-a51d-ffc078463b32","description":""},{"name":"Books","item":[{"name":"Get All Books","id":"c70c0e45-8a22-42d1-a500-b8dd4c7d859d","protocolProfileBehavior":{"disableBodyPruning":true,"protocolVersion":"http1"},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-all-books?sortBy=publishedYear&sortDir=desc","urlObject":{"protocol":"http","port":"8080","path":["api","get-all-books"],"host":["localhost"],"query":[{"key":"sortBy","value":"publishedYear"},{"key":"sortDir","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"c70c0e45-8a22-42d1-a500-b8dd4c7d859d"},{"name":"Add Book","event":[{"listen":"test","script":{"id":"7e00d5a1-ebd6-4eef-9208-bf0a50f93621","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"de9c8073-c72a-43de-93b1-6f4b7a314542","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"title\": \"The Great Gatsby\",\n\t\"author\": \"F. Scott Fitzgerald\",\n\t\"isbn\": \"9780743273567\",\n\t\"publisher\": \"Charles Scribner's Sons\",\n\t\"publishedYear\": 1925,\n\t\"genre\": \"Novel\",\n\t\"copiesAvailable\": 3\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/add-book","description":"<p>Add a new book to the database. This is a POST request, submitting data to an API via the request body. This request submits JSON data.</p>\n<ul>\n<li><strong>Response code:</strong><ul>\n<li><code>201 Created</code>: Book added successfully</li>\n<li><code>409 CONFLICT</code>: if there is a conflict (e.g., book not able to store ).</li>\n<li><code>500 INTERNAL_SERVER_ERROR</code>: if there is an internal server error.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","add-book"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"de9c8073-c72a-43de-93b1-6f4b7a314542"},{"name":"Update Book Details by Id","id":"72a327a5-0d64-4b4d-b2e4-6b4d4ecbf611","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"title\": \"The Great Gatsby\",\n\t\"author\": \"F. Scott Fitzgerald\",\n\t\"isbn\": \"9780743273567\",\n\t\"publisher\": \"Charles Scribner's Sons\",\n\t\"publishedYear\": 1925,\n\t\"genre\": \"Novel\",\n\t\"copiesAvailable\": 3\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/update-book/1","urlObject":{"protocol":"http","port":"8080","path":["api","update-book","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"72a327a5-0d64-4b4d-b2e4-6b4d4ecbf611"},{"name":"Delete Book by Id","id":"bd582cee-333d-4ee2-8a00-85e11aa8b27e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/delete-book/1","urlObject":{"protocol":"http","port":"8080","path":["api","delete-book","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd582cee-333d-4ee2-8a00-85e11aa8b27e"},{"name":"Get book by Id","id":"7f237166-78ef-4578-b473-12374a0845e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-book-by-id/1","urlObject":{"protocol":"http","port":"8080","path":["api","get-book-by-id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f237166-78ef-4578-b473-12374a0845e7"},{"name":"Search Book by name","id":"67c81088-efc9-4487-afbd-d414127444e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/book/search?keyword=ajay","urlObject":{"protocol":"http","port":"8080","path":["api","book","search"],"host":["localhost"],"query":[{"key":"keyword","value":"ajay"}],"variable":[]}},"response":[],"_postman_id":"67c81088-efc9-4487-afbd-d414127444e0"}],"id":"563a9193-d04c-4573-80ec-41d7bb59c58c","_postman_id":"563a9193-d04c-4573-80ec-41d7bb59c58c","description":""},{"name":"Borrowing","item":[{"name":"Get All Borrowings","id":"03c2ee15-d99a-4c80-b6e3-4acfdc83ae7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/get-all-borrowings?sort=title","urlObject":{"protocol":"http","port":"8080","path":["api","get-all-borrowings"],"host":["localhost"],"query":[{"key":"sort","value":"title"}],"variable":[]}},"response":[],"_postman_id":"03c2ee15-d99a-4c80-b6e3-4acfdc83ae7f"},{"name":"Single Borrowing By Id","id":"620862cf-1212-48c4-87ea-87eabd0d37fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-borrowing-by-id/4","urlObject":{"protocol":"http","port":"8080","path":["api","get-borrowing-by-id","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"620862cf-1212-48c4-87ea-87eabd0d37fa"},{"name":"Borrow Book","event":[{"listen":"test","script":{"id":"7e00d5a1-ebd6-4eef-9208-bf0a50f93621","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"f7572516-926a-404a-9160-993e2439dcee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"book\": {\n        \"bookId\": 1\n    },\n    \"member\": {\n        \"memberId\": 2\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/borrow-book","description":"<p>Add a new book to the database. This is a POST request, submitting data to an API via the request body. This request submits JSON data.</p>\n<ul>\n<li><strong>Response code:</strong><ul>\n<li><code>201 Created</code>: Book added successfully</li>\n<li><code>409 CONFLICT</code>: if there is a conflict (e.g., book not able to store ).</li>\n<li><code>500 INTERNAL_SERVER_ERROR</code>: if there is an internal server error.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","borrow-book"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7572516-926a-404a-9160-993e2439dcee"},{"name":"Return Book","id":"8141790f-200a-4e3a-8541-6c44411345f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/10/return-borrow-book","urlObject":{"protocol":"http","port":"8080","path":["api","10","return-borrow-book"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8141790f-200a-4e3a-8541-6c44411345f3"},{"name":"Pay Fine","id":"516c65ef-ac38-423c-b841-e394993b8813","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/borrowing/4/pay-fine","urlObject":{"protocol":"http","port":"8080","path":["api","borrowing","4","pay-fine"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"516c65ef-ac38-423c-b841-e394993b8813"},{"name":"Borrowing of a Member","id":"9b56d0e0-0e04-477f-baef-ae7bd491a330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-all-borrowings-of-a-member/1?sortBy=member","urlObject":{"protocol":"http","port":"8080","path":["api","get-all-borrowings-of-a-member","1"],"host":["localhost"],"query":[{"key":"sortBy","value":"member"}],"variable":[]}},"response":[],"_postman_id":"9b56d0e0-0e04-477f-baef-ae7bd491a330"}],"id":"d80e4e92-2baf-4f2d-bebb-6ef57b9ce496","_postman_id":"d80e4e92-2baf-4f2d-bebb-6ef57b9ce496","description":""},{"name":"Member","item":[{"name":"Get All Members","id":"cfed1d79-b6a0-4eaa-97ce-49b5236e03bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-all-members","urlObject":{"protocol":"http","port":"8080","path":["api","get-all-members"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfed1d79-b6a0-4eaa-97ce-49b5236e03bd"},{"name":"Get Member by Id","id":"e8d0ddb6-61ea-4f11-9936-371c875c9a27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-member-by-id/1","urlObject":{"protocol":"http","port":"8080","path":["api","get-member-by-id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8d0ddb6-61ea-4f11-9936-371c875c9a27"},{"name":"Update Password","event":[{"listen":"test","script":{"id":"7e00d5a1-ebd6-4eef-9208-bf0a50f93621","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"57821725-cd22-425d-bfbe-feefdb93f252","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"Kinnu Singh Satyapal\",\n    \"newPassword\": \"kinnusinghsatyapal@gmail.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/update-password-by-id/1","description":"<p>Add a new book to the database. This is a POST request, submitting data to an API via the request body. This request submits JSON data.</p>\n<ul>\n<li><strong>Response code:</strong><ul>\n<li><code>201 Created</code>: Book added successfully</li>\n<li><code>409 CONFLICT</code>: if there is a conflict (e.g., book not able to store ).</li>\n<li><code>500 INTERNAL_SERVER_ERROR</code>: if there is an internal server error.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","update-password-by-id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"57821725-cd22-425d-bfbe-feefdb93f252"},{"name":"Update Member Details by Id","id":"2e4b6bf3-ba66-4deb-bcef-a474c025e09d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Ajay Negi\",\n    \"email\": \"ajay@aj.com\",\n    \"password\": \"pass\",\n    \"role\": \"USER\",\n    \"membershipDate\": \"2022-01-01\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/update-member-by-id/1","urlObject":{"protocol":"http","port":"8080","path":["api","update-member-by-id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e4b6bf3-ba66-4deb-bcef-a474c025e09d"},{"name":"Delete Member by Id","id":"5feafb92-32e1-4d04-b1ce-afb4a65e28ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/delete-member-by-id/1","urlObject":{"protocol":"http","port":"8080","path":["api","delete-member-by-id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5feafb92-32e1-4d04-b1ce-afb4a65e28ee"}],"id":"1228f18f-f37b-483f-b8fd-83ff096a464c","_postman_id":"1228f18f-f37b-483f-b8fd-83ff096a464c","description":""},{"name":"Newsletter","item":[{"name":"Subscribe","id":"1ab3a9d8-3d3f-4d65-b1e6-1f01e2276e91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8080/api/newsletter/subscribe?email=user@example.com","urlObject":{"protocol":"http","port":"8080","path":["api","newsletter","subscribe"],"host":["localhost"],"query":[{"key":"email","value":"user@example.com"}],"variable":[]}},"response":[],"_postman_id":"1ab3a9d8-3d3f-4d65-b1e6-1f01e2276e91"},{"name":"Unsubscribe","id":"e3308439-6bb5-439e-b599-acbf1a30d932","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/newsletter/unsubscribe?token=9b66d623-ce71-4be5-9f62-6600b0aa5e29","urlObject":{"protocol":"http","port":"8080","path":["api","newsletter","unsubscribe"],"host":["localhost"],"query":[{"key":"token","value":"9b66d623-ce71-4be5-9f62-6600b0aa5e29"}],"variable":[]}},"response":[],"_postman_id":"e3308439-6bb5-439e-b599-acbf1a30d932"}],"id":"05ae414e-16f9-400d-82e8-88a56dd10ce7","_postman_id":"05ae414e-16f9-400d-82e8-88a56dd10ce7","description":""},{"name":"Authentication","item":[{"name":"Signup","id":"a831b2fd-6a23-49d5-96a9-67667d53e972","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Kinnu Singh Satyapal\",\n  \"username\": \"kinnubhai\",\n  \"email\": \"kinnubhai@gmail.com\",\n  \"password\": \"password123\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/signup","urlObject":{"protocol":"http","port":"8080","path":["api","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a831b2fd-6a23-49d5-96a9-67667d53e972"},{"name":"Signup Admin","id":"a31a7514-e0c6-42e7-9128-f912eee64348","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Admin User\",\n  \"username\": \"adminuser\",\n  \"email\": \"admin@example.com\",\n  \"password\": \"adminpassword\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/signup/admin","urlObject":{"protocol":"http","port":"8080","path":["api","signup","admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a31a7514-e0c6-42e7-9128-f912eee64348"},{"name":"Signup Librarian","id":"75069a8a-938d-46a6-bad1-75ebf6c394c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Librarian User\",\n  \"username\": \"librarianuser\",\n  \"email\": \"librarian@example.com\",\n  \"password\": \"librarianpassword\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/signup/librarian","urlObject":{"protocol":"http","port":"8080","path":["api","signup","librarian"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"75069a8a-938d-46a6-bad1-75ebf6c394c3"},{"name":"Login","id":"28a717aa-1d14-4aee-a72e-4a0b50404302","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"kinnubhai\",\n  \"password\": \"password123\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/login","urlObject":{"protocol":"http","port":"8080","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"28a717aa-1d14-4aee-a72e-4a0b50404302"},{"name":"New Request","id":"7afe7fe5-71e8-43e7-8c87-b3853f40faf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8080/api/logout","urlObject":{"protocol":"http","port":"8080","path":["api","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7afe7fe5-71e8-43e7-8c87-b3853f40faf1"}],"id":"fe099463-4dd0-4a38-b924-5a9534badee5","_postman_id":"fe099463-4dd0-4a38-b924-5a9534badee5","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"key":"id","value":"1"},{"key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"}]}