{"info":{"_postman_id":"504f3501-1c46-46d3-b92f-d0c1967776b5","name":"Fast Library","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"12450883","collectionId":"504f3501-1c46-46d3-b92f-d0c1967776b5","publishedId":"2sAYdZuE7f","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-19T11:56:58.000Z"},"item":[{"name":"Admin API","item":[{"name":"Index","id":"9aeee5e3-193a-4d8f-8f12-328b0ec9dd51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8001","urlObject":{"host":["http://127.0.0.1:8001"],"query":[],"variable":[]}},"response":[],"_postman_id":"9aeee5e3-193a-4d8f-8f12-328b0ec9dd51"},{"name":"Add Book","id":"5cbb5e38-27c8-4e56-907e-0b8d335559b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"bimbooo\",\n    \"author\": \"chimamanda\",\n    \"publisher\": \"Wiley\",\n    \"category\": \"fiction\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8001/books","urlObject":{"path":["books"],"host":["http://127.0.0.1:8001"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cbb5e38-27c8-4e56-907e-0b8d335559b9"},{"name":"Remove Book","id":"c0b72b9e-b236-4574-8af8-9844fb492aa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8001/books/29","urlObject":{"path":["books","29"],"host":["http://127.0.0.1:8001"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0b72b9e-b236-4574-8af8-9844fb492aa6"},{"name":"Get Users","id":"ba39ec11-989a-4366-bbaa-569f41d85699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8001/users","urlObject":{"path":["users"],"host":["http://127.0.0.1:8001"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba39ec11-989a-4366-bbaa-569f41d85699"},{"name":"List Borrowed Book","id":"2667bc9d-0589-462c-b436-224199247263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8001/loans","urlObject":{"path":["loans"],"host":["http://127.0.0.1:8001"],"query":[],"variable":[]}},"response":[{"id":"dcc3aa40-3587-4486-a8b8-8ae5caff68b5","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8001/loans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:57:59 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"458"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 10,\n        \"borrow_date\": \"2025-02-19 08:41:24\",\n        \"return_date\": \"2025-02-24\",\n        \"returned\": false,\n        \"user\": {\n            \"id\": 3,\n            \"firstname\": \"alayo\",\n            \"lastname\": \"Koyejo\",\n            \"email\": \"alayo@koye.com\"\n        },\n        \"book\": {\n            \"id\": 19,\n            \"title\": \"koyejo\",\n            \"author\": \"chimamanda\"\n        }\n    },\n    {\n        \"id\": 11,\n        \"borrow_date\": \"2025-02-19 11:43:52\",\n        \"return_date\": \"2025-02-24\",\n        \"returned\": false,\n        \"user\": {\n            \"id\": 3,\n            \"firstname\": \"alayo\",\n            \"lastname\": \"Koyejo\",\n            \"email\": \"alayo@koye.com\"\n        },\n        \"book\": {\n            \"id\": 20,\n            \"title\": \"koyejo mo\",\n            \"author\": \"chimamanda\"\n        }\n    }\n]"}],"_postman_id":"2667bc9d-0589-462c-b436-224199247263"}],"id":"ffb8f8f8-68f9-49c5-8182-97eb138546ca","_postman_id":"ffb8f8f8-68f9-49c5-8182-97eb138546ca","description":""},{"name":"Frontend API","item":[{"name":"Index","id":"c261e3c7-e938-49af-8b8a-d132c3453d02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8002","urlObject":{"host":["http://127.0.0.1:8002"],"query":[],"variable":[]}},"response":[],"_postman_id":"c261e3c7-e938-49af-8b8a-d132c3453d02"},{"name":"Enroll Users","id":"3b273d6e-7120-4b56-9829-1ebb0fb6f3ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstname\" : \"mayo\",\n    \"lastname\": \"Koyejo\",\n    \"email\": \"mayooo@koye.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8002/users","urlObject":{"path":["users"],"host":["http://127.0.0.1:8002"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b273d6e-7120-4b56-9829-1ebb0fb6f3ec"},{"name":"Fetch Book By ID","id":"72f0e135-c94c-4aa2-aa01-e5428000e7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8002/books/:id","urlObject":{"path":["books",":id"],"host":["http://127.0.0.1:8002"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"d8947864-359d-47f1-8008-7d747a71f306","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8002/books/:id","protocol":"http","host":["127","0","0","1"],"port":"8002","path":["books",":id"],"variable":[{"key":"id","value":"20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:42:46 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"109"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 20,\n    \"title\": \"koyejo mo\",\n    \"author\": \"chimamanda\",\n    \"publisher\": \"Wiley\",\n    \"category\": \"fiction\",\n    \"available\": true\n}"}],"_postman_id":"72f0e135-c94c-4aa2-aa01-e5428000e7b8"},{"name":"Fetch Books","id":"3c7acd01-2a22-413b-a078-32ed733e30d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8002/books","urlObject":{"path":["books"],"host":["http://127.0.0.1:8002"],"query":[],"variable":[]}},"response":[{"id":"e113bdee-1cd4-4fb1-9bb6-ba18a9877774","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8002/books"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:42:14 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"111"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 20,\n        \"title\": \"koyejo mo\",\n        \"author\": \"chimamanda\",\n        \"publisher\": \"Wiley\",\n        \"category\": \"fiction\",\n        \"available\": true\n    }\n]"}],"_postman_id":"3c7acd01-2a22-413b-a078-32ed733e30d7"},{"name":"Borrow Book","id":"69454d6a-f1b6-4597-b5eb-d6c35f46d15e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"book_id\": 20,\n    \"user_id\": 3,\n    \"days\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8002/loans","urlObject":{"protocol":"http","port":"8002","path":["loans"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"00136e01-6d94-4516-a17f-138699849c1a","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"book_id\": 20,\n    \"user_id\": 3,\n    \"days\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8002/loans"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:43:51 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"114"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11,\n    \"borrow_date\": \"2025-02-19T11:43:52\",\n    \"returned\": false,\n    \"book_id\": 20,\n    \"user_id\": 3,\n    \"return_date\": \"2025-02-24\"\n}"},{"id":"8c3397ef-c9ba-43db-b532-5ac9c244aba5","name":"failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"book_id\": 20,\n    \"user_id\": 3,\n    \"days\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8002/loans"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:44:10 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"31"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Book not available\"\n}"}],"_postman_id":"69454d6a-f1b6-4597-b5eb-d6c35f46d15e"},{"name":"Filter by Publisher Or Category","id":"89593f7a-eb9b-445e-ac3a-be1d340d196b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8002/books/filter?publisher=wiley","urlObject":{"path":["books","filter"],"host":["http://127.0.0.1:8002"],"query":[{"key":"publisher","value":"wiley"}],"variable":[]}},"response":[{"id":"866a009f-6e40-4856-ab09-97bd253f0f13","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8002/books/filter?publisher=wiley","protocol":"http","host":["127","0","0","1"],"port":"8002","path":["books","filter"],"query":[{"key":"publisher","value":"wiley"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 19 Feb 2025 10:50:16 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"111"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 21,\n        \"title\": \"Star book\",\n        \"author\": \"chimamanda\",\n        \"publisher\": \"Wiley\",\n        \"category\": \"fiction\",\n        \"available\": true\n    }\n]"}],"_postman_id":"89593f7a-eb9b-445e-ac3a-be1d340d196b"}],"id":"cdf1b888-f504-4d3d-a9f0-eddfb6807b29","_postman_id":"cdf1b888-f504-4d3d-a9f0-eddfb6807b29","description":""}],"variable":[{"key":"admin-url","value":"http://127.0.0.1:8001","type":"default"},{"key":"frontend-api","value":"http://127.0.0.1:8002","type":"default"}]}