{"info":{"_postman_id":"d1e7f9bc-99fd-47a4-a558-0dd611603232","name":"Barış Dalyan Emre - Getir Bootcamp Final Case","description":"<html><head></head><body><p>API collection for Library Management System allows users to register, borrow books, and librarians to manage the library inventory.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21670108","collectionId":"d1e7f9bc-99fd-47a4-a558-0dd611603232","publishedId":"2sB2qUmPZH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-13T21:07:42.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"b31584ed-8e00-4ed3-89a2-7507ad9a1c81","exec":[""],"type":"text/javascript","packages":{}}}],"id":"3eaf9766-dc7f-4d35-ae0c-0f0f857ded75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"password\": \"password123\",\n  \"contactDetails\": \"123 Main St, City\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/auth/register","urlObject":{"path":["api","v1","auth","register"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"3eaf9766-dc7f-4d35-ae0c-0f0f857ded75"},{"name":"Login","id":"ed02f8fb-b109-41b6-95af-a1ae9f222fc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@library.com\",\n    \"password\": \"admin123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/auth/login","urlObject":{"path":["api","v1","auth","login"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed02f8fb-b109-41b6-95af-a1ae9f222fc3"},{"name":"Promote to Librarian","id":"f7296040-f66e-40f6-b715-c134feaf9ef3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"localhost:8080/api/v1/auth/promote/3","urlObject":{"path":["api","v1","auth","promote","3"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7296040-f66e-40f6-b715-c134feaf9ef3"}],"id":"ff8d9d5c-2ea4-4ee8-b656-8a4aa3fa0a45","description":"<p>Endpoints for user registration, login, and authorization management.</p>\n","_postman_id":"ff8d9d5c-2ea4-4ee8-b656-8a4aa3fa0a45"},{"name":"Users","item":[{"name":"List Users","id":"01d1efae-e232-4dfc-b3a1-d7f21f13b421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"01d1efae-e232-4dfc-b3a1-d7f21f13b421"},{"name":"Get User by ID","id":"7134c670-f3fd-4b9a-8b73-e0f587d3434b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/users/2","urlObject":{"path":["api","v1","users","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"7134c670-f3fd-4b9a-8b73-e0f587d3434b"},{"name":"Update User","id":"bdc2dc68-72a7-47b5-b59e-5e5beba5d0d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 4,\n    \"firstName\": \"Dean\",\n    \"lastName\": \"Winchester\",\n    \"email\": \"john@example.com\",\n    \"role\": \"PATRON\",\n    \"contactDetails\": \"123 Main St\",\n    \"enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/users/2","urlObject":{"path":["api","v1","users","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"bdc2dc68-72a7-47b5-b59e-5e5beba5d0d6"},{"name":"Delete User","id":"9e7daebf-e4e1-4836-9323-2604f300b4a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:8080/api/v1/users/2","urlObject":{"path":["api","v1","users","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e7daebf-e4e1-4836-9323-2604f300b4a5"}],"id":"c34c64b2-8ca7-441e-bc92-199d7827dea4","description":"<p>User profile management and administration endpoints.</p>\n","_postman_id":"c34c64b2-8ca7-441e-bc92-199d7827dea4"},{"name":"Books","item":[{"name":"List Books","id":"0e072b05-f861-4dc9-988d-b2b0406cf049","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/books?page=0&size=10&sortBy=title&sortDir=asc","urlObject":{"path":["api","v1","books"],"host":["localhost:8080"],"query":[{"key":"page","value":"0"},{"key":"size","value":"10"},{"key":"sortBy","value":"title"},{"key":"sortDir","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"0e072b05-f861-4dc9-988d-b2b0406cf049"},{"name":"Create Book","id":"db66152a-8572-42d6-ba1c-d0fe076fbd79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Great Gatsby\",\n  \"author\": \"F. Scott Fitzgerald\",\n  \"isbn\": \"978-3-16-148410-0\",\n  \"publicationDate\": \"1925-04-10\",\n  \"genre\": \"Classic Fiction\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/books","urlObject":{"path":["api","v1","books"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"db66152a-8572-42d6-ba1c-d0fe076fbd79"},{"name":"Get Book by ID","id":"19a7a3df-57d5-4442-b90f-71ec9c3c5b8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/books/2","urlObject":{"path":["api","v1","books","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"19a7a3df-57d5-4442-b90f-71ec9c3c5b8f"},{"name":"Update Book","id":"be1536c8-30e6-40a0-b017-de834af8284f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Great Gatsby\",\n  \"author\": \"F. Scott Fitzgerald\",\n  \"genre\": \"American Literature\",\n  \"publicationDate\": \"1925-04-10\",\n  \"available\": true\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/books/2","urlObject":{"path":["api","v1","books","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"be1536c8-30e6-40a0-b017-de834af8284f"},{"name":"Delete Book","id":"4c5314c3-7293-44dc-bafa-7cd5c1b5fcc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:8080/api/v1/books/1","urlObject":{"path":["api","v1","books","1"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c5314c3-7293-44dc-bafa-7cd5c1b5fcc4"},{"name":"Get Book by ISBN","id":"45a057cd-dc51-4ecf-a185-32d5e61c33ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/books/isbn/978-0316769488","urlObject":{"path":["api","v1","books","isbn","978-0316769488"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"45a057cd-dc51-4ecf-a185-32d5e61c33ff"},{"name":"Search Books","id":"fce0fa3d-aa73-4274-a119-f4bfaa2b2424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/books/search?publishedAfter=1940-01-01&publishedBefore=1960-01-01","urlObject":{"path":["api","v1","books","search"],"host":["localhost:8080"],"query":[{"key":"publishedAfter","value":"1940-01-01"},{"key":"publishedBefore","value":"1960-01-01"}],"variable":[]}},"response":[],"_postman_id":"fce0fa3d-aa73-4274-a119-f4bfaa2b2424"},{"name":"Stream Availability","id":"f8d23c5b-146e-4cbc-9c49-3cac1ec89615","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/books/stream","urlObject":{"path":["api","v1","books","stream"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f8d23c5b-146e-4cbc-9c49-3cac1ec89615"},{"name":"Update Availability","id":"2be9fbf2-8ff4-4c2a-a22e-550d623f8527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"url":"localhost:8080/api/v1/books/3/availability?available=true","urlObject":{"path":["api","v1","books","3","availability"],"host":["localhost:8080"],"query":[{"key":"available","value":"true"}],"variable":[]}},"response":[],"_postman_id":"2be9fbf2-8ff4-4c2a-a22e-550d623f8527"}],"id":"feec9011-88c0-40e1-968a-e333cdc39318","description":"<p>Book inventory management, search and catalog operations.</p>\n","_postman_id":"feec9011-88c0-40e1-968a-e333cdc39318"},{"name":"Borrowing","item":[{"name":"Borrow Book","id":"7420852a-e90e-4d41-97a5-2d846c3fa38a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"localhost:8080/api/v1/borrow/3","urlObject":{"path":["api","v1","borrow","3"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"7420852a-e90e-4d41-97a5-2d846c3fa38a"},{"name":"Return Book","id":"f543b1a4-44a0-4206-a6c9-7e618be859a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"localhost:8080/api/v1/borrow/return/2","urlObject":{"path":["api","v1","borrow","return","2"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f543b1a4-44a0-4206-a6c9-7e618be859a9"},{"name":"User Borrowing History","id":"62a7f16d-6b0b-456e-96e3-51ac1aececae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/borrow/history","urlObject":{"path":["api","v1","borrow","history"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"62a7f16d-6b0b-456e-96e3-51ac1aececae"},{"name":"User Active Loans","id":"cf21d8e4-de66-4311-839c-4e0d62b8b22a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/borrow/active","urlObject":{"path":["api","v1","borrow","active"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf21d8e4-de66-4311-839c-4e0d62b8b22a"},{"name":"All Records","id":"08c6d79e-bc7c-4f7e-ab2a-d62da78a7a81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/borrow/history/all","urlObject":{"path":["api","v1","borrow","history","all"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"08c6d79e-bc7c-4f7e-ab2a-d62da78a7a81"},{"name":"Overdue Records","id":"a74954c2-f4e5-40ce-a69a-749b6c254a9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/borrow/overdue","urlObject":{"path":["api","v1","borrow","overdue"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"a74954c2-f4e5-40ce-a69a-749b6c254a9c"},{"name":"Overdue Report","id":"ec02eaa0-ea60-4ec2-8652-1d56f13c5509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/v1/borrow/overdue/report","urlObject":{"path":["api","v1","borrow","overdue","report"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec02eaa0-ea60-4ec2-8652-1d56f13c5509"}],"id":"eeb7f1a6-827a-47d0-9c0f-452693c5d883","description":"<p>Book borrowing, returns, and lending history management.</p>\n","_postman_id":"eeb7f1a6-827a-47d0-9c0f-452693c5d883"}],"event":[{"listen":"prerequest","script":{"id":"93afad1d-7235-40ae-9a84-67e93aa9650b","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"b7cd248a-62b1-4d1b-8812-3043dce66468","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"localhost:8080","type":"string"}]}