{"info":{"_postman_id":"14e74618-f5c2-4b22-b905-03bcde8802ea","name":"Digital Library","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"29367403","collectionId":"14e74618-f5c2-4b22-b905-03bcde8802ea","publishedId":"2sA3Bn7Cxq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-18T17:05:51.000Z"},"item":[{"name":"register the user","id":"5de7ea36-1a72-4216-af8a-661526d5eb1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Sarthak\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"sarthak@gmail.com\",\r\n    \"password\" : \"Sarthak@22042004\",\r\n    \"role\" : \"ADMIN\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2d451d40-38ad-4c54-b126-09311302a5cc","name":"first name is required","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\",\r\n    \"role\" : \"USER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:38:37 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"firstName\": \"First name is Required\"\n}"},{"id":"94e44479-97ba-4ae0-a745-1b3e2a145a6b","name":"lastname is required","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Ayush\",\r\n    \"lastName\" : \"\",\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\",\r\n    \"role\" : \"USER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:39:13 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"lastName\": \"lastname is required\"\n}"},{"id":"b72bbf28-9e37-4ac8-a003-e7b95771b640","name":"invalid email address","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Ayush\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"ayushcom\",\r\n    \"password\" : \"Rayush@22042004\",\r\n    \"role\" : \"USER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:39:35 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"Invalid email format\"\n}"},{"id":"c4d684b2-1447-4aee-b07b-c6127752d91b","name":"password should not be blank","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Ayush\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"\",\r\n    \"role\" : \"USER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:40:19 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"password\": \"must not be blank\"\n}"},{"id":"b5260637-77dd-4900-9ac8-57d56c5279a2","name":"role must be given","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Ayush\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\",\r\n    \"role\" : \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Wed, 17 Apr 2024 16:40:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"1b137eab-65a3-490c-89b8-e958d97be4c7","name":"succesful request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\" : \"Ayush\",\r\n    \"lastName\" : \"Rastogi\",\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\",\r\n    \"role\" : \"USER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:43:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": null,\n    \"message\": \"Check email for OTP\"\n}"}],"_postman_id":"5de7ea36-1a72-4216-af8a-661526d5eb1b"},{"name":"verify the user","id":"7a037a80-2fdb-432b-b445-7cc1ec8112d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"sarthak@gmail.com\",\r\n     \"otp\" : \"375468\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/verify","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"74df80d8-52b1-45ac-849e-1e8728b8d57e","name":"incorrect otp entered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"ayush@gmail.com\",\r\n     \"otp\" : \"277164\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/verify"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:44:00 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incorrect Otp entered\"\n}"},{"id":"b482619c-b63c-4f5e-8a2b-e7653f3c0948","name":"otp not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"\",\r\n     \"otp\" : \"277164\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/verify"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:44:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"OTP not found\"\n}"},{"id":"aba1621e-c120-4afe-8e4a-76851d3df6b9","name":"successfult verifcation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"ayush@gmail.com\",\r\n     \"otp\" : \"988172\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:44:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJheXVzaEBnbWFpbC5jb20iLCJpYXQiOjE3MTMzNzIyNzgsImV4cCI6MTcxMzQxNTQ3OH0.sz-J617pFbhpEhO2d054ZE8khvwIhSe_cfs03pR8Dww\",\n    \"message\": \"User registered successfully\"\n}"}],"_postman_id":"7a037a80-2fdb-432b-b445-7cc1ec8112d2"},{"name":"login the user","id":"8f35d545-49d2-4a96-a5ba-cec751a6e909","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8d0121d1-7900-444e-8fbe-5259ebc3b5c9","name":"user not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"ayushgmail.com\",\r\n    \"password\" : \"Ayush@22042004\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:48:03 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": null,\n    \"message\": \"User not found\"\n}"},{"id":"b7afb055-7cc4-4eb1-bf60-d473ea2d3b60","name":"invalid username and password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Ayush@22042004\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:49:23 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid username or password\"\n}"},{"id":"a0ed0ab9-6bd9-4a44-9108-b1d06b2d6ad0","name":"successfully loggedIn","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"ayush@gmail.com\",\r\n    \"password\" : \"Rayush@22042004\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:50:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJheXVzaEBnbWFpbC5jb20iLCJpYXQiOjE3MTMzNzI2MDcsImV4cCI6MTcxMzQxNTgwN30.yR2UizF8z91tQvhS-TdS8Mmdr528WvyjuphUqGTdSE4\",\n    \"message\": \"logged in successfully\"\n}"}],"_postman_id":"8f35d545-49d2-4a96-a5ba-cec751a6e909"},{"name":"create author","id":"4a1e5939-9906-488e-ab93-76556de354da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorName\":\"Yashwant Kanetkar\",\r\n    \"authorAddress\": \"Delhi, India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/author/createAuthor","urlObject":{"protocol":"http","port":"8080","path":["api","v1","author","createAuthor"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8f8f3962-6057-4114-a891-36380c6a9912","name":"only admin can create author","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorName\":\"Yashwant Kanetkar\",\r\n    \"authorAddress\": \"Delhi, India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/author/createAuthor"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:51:11 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only Admin can create author\",\n    \"authorId\": null,\n    \"authorName\": null,\n    \"authorAddress\": null\n}"},{"id":"7dcb4220-cef8-4152-b521-21aae68faec2","name":"author name can't be blank","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorName\":\"\",\r\n    \"authorAddress\": \"Delhi, India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/author/createAuthor"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:51:38 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"authorName\": \"author name can't be blank\"\n}"},{"id":"85a3a0fa-5f4a-4846-9143-f1d19cab5db5","name":"author address cant be blank","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorName\":\"Yashwant Kanetkar\",\r\n    \"authorAddress\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/author/createAuthor"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:51:51 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"authorAddress\": \"author address cant be blank\"\n}"},{"id":"547f5fc4-c9ab-4a2f-97fd-93dfaf401e08","name":"successfully author created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorName\":\"Yashwant Kanetkar\",\r\n    \"authorAddress\": \"Delhi, India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/author/createAuthor"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:52:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Author has been successfully created\",\n    \"authorId\": 1,\n    \"authorName\": \"Yashwant Kanetkar\",\n    \"authorAddress\": \"Delhi, India\"\n}"}],"_postman_id":"4a1e5939-9906-488e-ab93-76556de354da"},{"name":"get all aithors","id":"9acb83b4-a62b-4175-ab3f-de009ea9ad39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/author/getAllAuthors","urlObject":{"protocol":"http","port":"8080","path":["api","v1","author","getAllAuthors"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c58400ab-806f-432d-8fcc-6aa0335a7fe3","name":"get all aithors","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/author/getAllAuthors?page=0&size=10","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","author","getAllAuthors"],"query":[{"key":"page","value":"0"},{"key":"size","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 07:26:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"authorId\": 52,\n        \"authorName\": \"Yashwant Kanetkar\",\n        \"authorAddress\": \"Delhi, India\",\n        \"book\": [\n            {\n                \"bookId\": 102,\n                \"bookName\": \"Let us Java\",\n                \"publicationYear\": 2023,\n                \"bookPrice\": 59.99,\n                \"bookQuantity\": 100,\n                \"bookEdition\": \"Third Edition\",\n                \"author\": 52\n            },\n            {\n                \"bookId\": 152,\n                \"bookName\": \"Introduction to Algorithms\",\n                \"publicationYear\": 2021,\n                \"bookPrice\": 69.99,\n                \"bookQuantity\": 75,\n                \"bookEdition\": \"Fourth Edition\",\n                \"author\": 52\n            },\n            {\n                \"bookId\": 153,\n                \"bookName\": \"Clean Code\",\n                \"publicationYear\": 2008,\n                \"bookPrice\": 49.99,\n                \"bookQuantity\": 90,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 52\n            },\n            {\n                \"bookId\": 154,\n                \"bookName\": \"The Pragmatic Programmer\",\n                \"publicationYear\": 2019,\n                \"bookPrice\": 39.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"20th Anniversary Edition\",\n                \"author\": 52\n            },\n            {\n                \"bookId\": 155,\n                \"bookName\": \"Design Patterns: Elements of Reusable Object-Oriented Software\",\n                \"publicationYear\": 1994,\n                \"bookPrice\": 59.99,\n                \"bookQuantity\": 60,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 52\n            },\n            {\n                \"bookId\": 156,\n                \"bookName\": \"Head First Java\",\n                \"publicationYear\": 2005,\n                \"bookPrice\": 44.99,\n                \"bookQuantity\": 85,\n                \"bookEdition\": \"Second Edition\",\n                \"author\": 52\n            }\n        ]\n    },\n    {\n        \"authorId\": 102,\n        \"authorName\": \"Martin Fowler\",\n        \"authorAddress\": \"London, UK\",\n        \"book\": []\n    },\n    {\n        \"authorId\": 103,\n        \"authorName\": \"Robert C. Martin\",\n        \"authorAddress\": \"Massachusetts, USA\",\n        \"book\": [\n            {\n                \"bookId\": 157,\n                \"bookName\": \"Clean Architecture\",\n                \"publicationYear\": 2017,\n                \"bookPrice\": 59.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 103\n            },\n            {\n                \"bookId\": 161,\n                \"bookName\": \"The Clean Coder\",\n                \"publicationYear\": 2011,\n                \"bookPrice\": 34.99,\n                \"bookQuantity\": 70,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 103\n            },\n            {\n                \"bookId\": 162,\n                \"bookName\": \"Extreme Programming Explained\",\n                \"publicationYear\": 2004,\n                \"bookPrice\": 39.99,\n                \"bookQuantity\": 65,\n                \"bookEdition\": \"Second Edition\",\n                \"author\": 103\n            },\n            {\n                \"bookId\": 163,\n                \"bookName\": \"Clean Agile: Back to Basics\",\n                \"publicationYear\": 2019,\n                \"bookPrice\": 49.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 103\n            },\n            {\n                \"bookId\": 164,\n                \"bookName\": \"Agile Principles, Patterns, and Practices in C#\",\n                \"publicationYear\": 2006,\n                \"bookPrice\": 59.99,\n                \"bookQuantity\": 75,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 103\n            }\n        ]\n    },\n    {\n        \"authorId\": 104,\n        \"authorName\": \"Eric Evans\",\n        \"authorAddress\": \"Colorado, USA\",\n        \"book\": [\n            {\n                \"bookId\": 158,\n                \"bookName\": \"Refactoring\",\n                \"publicationYear\": 2018,\n                \"bookPrice\": 39.99,\n                \"bookQuantity\": 90,\n                \"bookEdition\": \"Second Edition\",\n                \"author\": 104\n            },\n            {\n                \"bookId\": 165,\n                \"bookName\": \"Introduction to Linear Algebra\",\n                \"publicationYear\": 2016,\n                \"bookPrice\": 59.99,\n                \"bookQuantity\": 100,\n                \"bookEdition\": \"Fifth Edition\",\n                \"author\": 104\n            },\n            {\n                \"bookId\": 166,\n                \"bookName\": \"Calculus: Early Transcendentals\",\n                \"publicationYear\": 2015,\n                \"bookPrice\": 69.99,\n                \"bookQuantity\": 90,\n                \"bookEdition\": \"Eighth Edition\",\n                \"author\": 104\n            },\n            {\n                \"bookId\": 167,\n                \"bookName\": \"Discrete Mathematics and Its Applications\",\n                \"publicationYear\": 2017,\n                \"bookPrice\": 49.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"Seventh Edition\",\n                \"author\": 104\n            },\n            {\n                \"bookId\": 168,\n                \"bookName\": \"Probability and Statistics for Engineers and Scientists\",\n                \"publicationYear\": 2019,\n                \"bookPrice\": 79.99,\n                \"bookQuantity\": 70,\n                \"bookEdition\": \"Ninth Edition\",\n                \"author\": 104\n            },\n            {\n                \"bookId\": 169,\n                \"bookName\": \"Number Theory\",\n                \"publicationYear\": 2016,\n                \"bookPrice\": 54.99,\n                \"bookQuantity\": 85,\n                \"bookEdition\": \"Fourth Edition\",\n                \"author\": 104\n            }\n        ]\n    },\n    {\n        \"authorId\": 105,\n        \"authorName\": \"Kent Beck\",\n        \"authorAddress\": \"California, USA\",\n        \"book\": [\n            {\n                \"bookId\": 159,\n                \"bookName\": \"Domain-Driven Design\",\n                \"publicationYear\": 2003,\n                \"bookPrice\": 69.99,\n                \"bookQuantity\": 70,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 105\n            },\n            {\n                \"bookId\": 170,\n                \"bookName\": \"The War of the Worlds\",\n                \"publicationYear\": 1898,\n                \"bookPrice\": 9.99,\n                \"bookQuantity\": 100,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 105\n            },\n            {\n                \"bookId\": 171,\n                \"bookName\": \"Frankenstein\",\n                \"publicationYear\": 1818,\n                \"bookPrice\": 7.99,\n                \"bookQuantity\": 90,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 105\n            },\n            {\n                \"bookId\": 172,\n                \"bookName\": \"Brave New World\",\n                \"publicationYear\": 1932,\n                \"bookPrice\": 11.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 105\n            },\n            {\n                \"bookId\": 173,\n                \"bookName\": \"Fahrenheit 451\",\n                \"publicationYear\": 1953,\n                \"bookPrice\": 10.99,\n                \"bookQuantity\": 85,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 105\n            }\n        ]\n    },\n    {\n        \"authorId\": 106,\n        \"authorName\": \"Joshua Bloch\",\n        \"authorAddress\": \"Washington, USA\",\n        \"book\": [\n            {\n                \"bookId\": 160,\n                \"bookName\": \"Test-Driven Development by Example\",\n                \"publicationYear\": 2003,\n                \"bookPrice\": 49.99,\n                \"bookQuantity\": 85,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 106\n            },\n            {\n                \"bookId\": 202,\n                \"bookName\": \"Man's Search for Meaning\",\n                \"publicationYear\": 1946,\n                \"bookPrice\": 12.99,\n                \"bookQuantity\": 100,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 106\n            },\n            {\n                \"bookId\": 252,\n                \"bookName\": \"The 7 Habits of Highly Effective People\",\n                \"publicationYear\": 1989,\n                \"bookPrice\": 14.99,\n                \"bookQuantity\": 90,\n                \"bookEdition\": \"Revised Edition\",\n                \"author\": 106\n            },\n            {\n                \"bookId\": 253,\n                \"bookName\": \"How to Win Friends and Influence People\",\n                \"publicationYear\": 1936,\n                \"bookPrice\": 11.99,\n                \"bookQuantity\": 80,\n                \"bookEdition\": \"Revised Edition\",\n                \"author\": 106\n            },\n            {\n                \"bookId\": 254,\n                \"bookName\": \"The Power of Now\",\n                \"publicationYear\": 1997,\n                \"bookPrice\": 13.99,\n                \"bookQuantity\": 70,\n                \"bookEdition\": \"First Edition\",\n                \"author\": 106\n            }\n        ]\n    }\n]"}],"_postman_id":"9acb83b4-a62b-4175-ab3f-de009ea9ad39"},{"name":"get author by id","id":"c0f73f00-0b2c-4d45-a261-12fe5060338c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/author/getAuthorById/5","urlObject":{"protocol":"http","port":"8080","path":["api","v1","author","getAuthorById","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2da5270a-bcd1-4099-87e4-c637a3fbb339","name":"get author by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/author/getAuthorById/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:53:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"authorId\": 1,\n    \"authorName\": \"Yashwant Kanetkar\",\n    \"authorAddress\": \"Delhi, India\",\n    \"book\": []\n}"},{"id":"5d2e656e-fa28-4e6b-8847-29f2496e967c","name":"author not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/author/getAuthorById/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:53:38 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"details\": \"Author not found with id2\"\n}"}],"_postman_id":"c0f73f00-0b2c-4d45-a261-12fe5060338c"},{"name":"delete author by id","id":"fb6fbfee-7dd7-45ec-a0c1-e7fc53c983e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/author/deleteAuthor/5","urlObject":{"protocol":"http","port":"8080","path":["api","v1","author","deleteAuthor","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7c3aac71-52d2-415e-b288-b2a1f729567b","name":"Author not found with id","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/author/deleteAuthor/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:53:56 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"details\": \"Author not found with id2\"\n}"},{"id":"44ded41b-68a8-41e7-941e-d6597eaafc5c","name":"successfully delete author by id","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/author/deleteAuthor/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:54:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Author has been successfully deleted, his details are as follows:\",\n    \"authorId\": 1,\n    \"authorName\": \"Yashwant Kanetkar\",\n    \"authorAddress\": \"Delhi, India\"\n}"},{"id":"9c87bb6d-1700-4fd6-9071-02f6c91e8832","name":"Only Admin can delete author","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/author/deleteAuthor/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 16:55:17 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only Admin can delete author\",\n    \"authorId\": null,\n    \"authorName\": null,\n    \"authorAddress\": null\n}"}],"_postman_id":"fb6fbfee-7dd7-45ec-a0c1-e7fc53c983e6"},{"name":"create a book","id":"0646d0b3-a97b-49da-b825-b8b3020b3e78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/books/create","urlObject":{"protocol":"http","port":"8080","path":["api","v1","books","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b0bc3f89-b5c1-4797-be15-34613b6eab14","name":"successfully book created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"bookName\": \"Let us Java\",\r\n    \"bookEdition\": \"Third Edition\",\r\n    \"publicationYear\": 2023,\r\n    \"bookPrice\": 59.99,\r\n    \"bookQuantity\": 100,\r\n    \"author\": {\r\n        \"authorId\": 52\r\n        }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/books/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 17:59:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"book created successfully and its details are:-\",\n    \"bookId\": 102,\n    \"bookName\": \"Let us Java\",\n    \"bookEdition\": \"Third Edition\",\n    \"publicationYear\": 2023,\n    \"bookPrice\": 59.99,\n    \"bookQuantity\": 100,\n    \"author\": {\n        \"authorId\": 52,\n        \"authorName\": \"Yashwant Kanetkar\",\n        \"authorAddress\": \"Delhi, India\"\n    }\n}"},{"id":"d0e7bb72-2390-4d44-b859-75fda1e4b045","name":"Book with the same name already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"bookName\": \"Let us Java\",\r\n    \"bookEdition\": \"Third Edition\",\r\n    \"publicationYear\": 2023,\r\n    \"bookPrice\": 59.99,\r\n    \"bookQuantity\": 100,\r\n    \"author\": {\r\n        \"authorId\": 52\r\n        }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/books/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 17:59:56 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"details\": \"Book with the same name already exists\"\n}"},{"id":"2809f89b-b38b-4f0e-8374-0cfef16c2405","name":"Author with id not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"bookName\": \"Let us C\",\r\n    \"bookEdition\": \"Third Edition\",\r\n    \"publicationYear\": 2023,\r\n    \"bookPrice\": 59.99,\r\n    \"bookQuantity\": 100,\r\n    \"author\": {\r\n        \"authorId\": 45\r\n        }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/books/create"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 18:02:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"details\": \"Author with id 45 not found\"\n}"}],"_postman_id":"0646d0b3-a97b-49da-b825-b8b3020b3e78"},{"name":"get book by id","id":"b4808676-8fde-45db-a575-a39e5cad14f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"40c13524-7f62-45b6-b7c9-34357eab4d99","name":"Book with id  not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/books/getBookById/103"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 18:18:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorResponse\": \"Book with id 103 not found\"\n}"},{"id":"3e469291-87b6-432e-b172-14baac1e9d6b","name":"found the book","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/books/getBookById/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 18:19:24 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"bookId\": 102,\n    \"bookName\": \"Let us Java\",\n    \"publicationYear\": 2023,\n    \"bookPrice\": 59.99,\n    \"bookQuantity\": 100,\n    \"bookEdition\": \"Third Edition\",\n    \"author\": {\n        \"authorId\": 52,\n        \"authorName\": \"Yashwant Kanetkar\",\n        \"authorAddress\": \"Delhi, India\"\n    }\n}"}],"_postman_id":"b4808676-8fde-45db-a575-a39e5cad14f5"},{"name":"get all books","id":"6e6996c5-0670-4790-b8d1-06664dfcb484","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"f494d515-4a03-4a38-b3e9-79b8d54036ab","name":"succesfully fetched all books","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/books/getAllBooks?page=1&size=10","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","books","getAllBooks"],"query":[{"key":"page","value":"1"},{"key":"size","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 07:24:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"bookId\": 161,\n        \"bookName\": \"The Clean Coder\",\n        \"bookEdition\": \"First Edition\",\n        \"publicationYear\": 2011,\n        \"bookPrice\": 34.99,\n        \"bookQuantity\": 70,\n        \"author\": \"Robert C. Martin\"\n    },\n    {\n        \"bookId\": 162,\n        \"bookName\": \"Extreme Programming Explained\",\n        \"bookEdition\": \"Second Edition\",\n        \"publicationYear\": 2004,\n        \"bookPrice\": 39.99,\n        \"bookQuantity\": 65,\n        \"author\": \"Robert C. Martin\"\n    },\n    {\n        \"bookId\": 163,\n        \"bookName\": \"Clean Agile: Back to Basics\",\n        \"bookEdition\": \"First Edition\",\n        \"publicationYear\": 2019,\n        \"bookPrice\": 49.99,\n        \"bookQuantity\": 80,\n        \"author\": \"Robert C. Martin\"\n    },\n    {\n        \"bookId\": 164,\n        \"bookName\": \"Agile Principles, Patterns, and Practices in C#\",\n        \"bookEdition\": \"First Edition\",\n        \"publicationYear\": 2006,\n        \"bookPrice\": 59.99,\n        \"bookQuantity\": 75,\n        \"author\": \"Robert C. Martin\"\n    },\n    {\n        \"bookId\": 165,\n        \"bookName\": \"Introduction to Linear Algebra\",\n        \"bookEdition\": \"Fifth Edition\",\n        \"publicationYear\": 2016,\n        \"bookPrice\": 59.99,\n        \"bookQuantity\": 100,\n        \"author\": \"Eric Evans\"\n    },\n    {\n        \"bookId\": 166,\n        \"bookName\": \"Calculus: Early Transcendentals\",\n        \"bookEdition\": \"Eighth Edition\",\n        \"publicationYear\": 2015,\n        \"bookPrice\": 69.99,\n        \"bookQuantity\": 90,\n        \"author\": \"Eric Evans\"\n    },\n    {\n        \"bookId\": 167,\n        \"bookName\": \"Discrete Mathematics and Its Applications\",\n        \"bookEdition\": \"Seventh Edition\",\n        \"publicationYear\": 2017,\n        \"bookPrice\": 49.99,\n        \"bookQuantity\": 80,\n        \"author\": \"Eric Evans\"\n    },\n    {\n        \"bookId\": 168,\n        \"bookName\": \"Probability and Statistics for Engineers and Scientists\",\n        \"bookEdition\": \"Ninth Edition\",\n        \"publicationYear\": 2019,\n        \"bookPrice\": 79.99,\n        \"bookQuantity\": 70,\n        \"author\": \"Eric Evans\"\n    },\n    {\n        \"bookId\": 169,\n        \"bookName\": \"Number Theory\",\n        \"bookEdition\": \"Fourth Edition\",\n        \"publicationYear\": 2016,\n        \"bookPrice\": 54.99,\n        \"bookQuantity\": 85,\n        \"author\": \"Eric Evans\"\n    },\n    {\n        \"bookId\": 170,\n        \"bookName\": \"The War of the Worlds\",\n        \"bookEdition\": \"First Edition\",\n        \"publicationYear\": 1898,\n        \"bookPrice\": 9.99,\n        \"bookQuantity\": 100,\n        \"author\": \"Kent Beck\"\n    }\n]"}],"_postman_id":"6e6996c5-0670-4790-b8d1-06664dfcb484"},{"name":"find books by author id","id":"7a6dfed4-9313-424d-b11c-c4b6c41fcb97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"1e33b37b-2c3d-4749-b217-bdb0427ea02c","name":"sucesfully found books by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/books/getBooksByAuthor/52"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 18:59:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"bookId\": 102,\n        \"bookName\": \"Let us Java\",\n        \"publicationYear\": 2023,\n        \"bookPrice\": 59.99,\n        \"bookQuantity\": 100,\n        \"bookEdition\": \"Third Edition\",\n        \"author\": {\n            \"authorId\": 52,\n            \"authorName\": \"Yashwant Kanetkar\",\n            \"authorAddress\": \"Delhi, India\",\n            \"book\": [\n                102,\n                {\n                    \"bookId\": 152,\n                    \"bookName\": \"Introduction to Algorithms\",\n                    \"publicationYear\": 2021,\n                    \"bookPrice\": 69.99,\n                    \"bookQuantity\": 75,\n                    \"bookEdition\": \"Fourth Edition\",\n                    \"author\": 52\n                },\n                {\n                    \"bookId\": 153,\n                    \"bookName\": \"Clean Code\",\n                    \"publicationYear\": 2008,\n                    \"bookPrice\": 49.99,\n                    \"bookQuantity\": 90,\n                    \"bookEdition\": \"First Edition\",\n                    \"author\": 52\n                },\n                {\n                    \"bookId\": 154,\n                    \"bookName\": \"The Pragmatic Programmer\",\n                    \"publicationYear\": 2019,\n                    \"bookPrice\": 39.99,\n                    \"bookQuantity\": 80,\n                    \"bookEdition\": \"20th Anniversary Edition\",\n                    \"author\": 52\n                },\n                {\n                    \"bookId\": 155,\n                    \"bookName\": \"Design Patterns: Elements of Reusable Object-Oriented Software\",\n                    \"publicationYear\": 1994,\n                    \"bookPrice\": 59.99,\n                    \"bookQuantity\": 60,\n                    \"bookEdition\": \"First Edition\",\n                    \"author\": 52\n                },\n                {\n                    \"bookId\": 156,\n                    \"bookName\": \"Head First Java\",\n                    \"publicationYear\": 2005,\n                    \"bookPrice\": 44.99,\n                    \"bookQuantity\": 85,\n                    \"bookEdition\": \"Second Edition\",\n                    \"author\": 52\n                }\n            ]\n        }\n    },\n    152,\n    153,\n    154,\n    155,\n    156\n]"},{"id":"f7a94d60-664f-4e64-921b-fec61a8ce829","name":"no books with this author id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/books/getBooksByAuthor/529"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 17 Apr 2024 19:00:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"7a6dfed4-9313-424d-b11c-c4b6c41fcb97"},{"name":"delete book by id","id":"bbaa2816-4a0f-435a-bed0-b94d110def58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"bbaa2816-4a0f-435a-bed0-b94d110def58"},{"name":"create loan","id":"219e58b1-4d52-44d2-b8c3-1c9e981f5825","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2024-04-18T00:00:00\",\r\n    \"endDate\": \"2024-05-18T00:00:00\",\r\n    \"book\": {\r\n               \"bookId\" : 157,\r\n               \"bookName\": \"Clean Architecture\"\r\n            },\r\n    \"user\": {\r\n               \"userId\": 2\r\n            },\r\n    \"isReturned\": false\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/loan/createLoan","urlObject":{"protocol":"http","port":"8080","path":["api","v1","loan","createLoan"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"217671ca-36fb-411a-a97d-844127eb7e17","name":"creating loan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2024-04-18T00:00:00\",\r\n    \"endDate\": \"2024-05-18T00:00:00\",\r\n    \"book\": {\r\n               \"bookId\" : 157,\r\n               \"bookName\": \"Clean Architecture\"\r\n            },\r\n    \"user\": {\r\n               \"userId\": 2\r\n            },\r\n    \"isReturned\": false\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/loan/createLoan"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 14:09:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"loanId\": 52,\n    \"startDate\": \"Thu Apr 18 05:30:00 IST 2024\",\n    \"endDate\": \"Sat May 18 05:30:00 IST 2024\",\n    \"isReturned\": false,\n    \"bookName\": \"Clean Architecture\",\n    \"userEmail\": \"ayush@gmail.com\"\n}"}],"_postman_id":"219e58b1-4d52-44d2-b8c3-1c9e981f5825"},{"name":"return book","id":"4e4d9c9f-f77e-4734-8d06-103fdc311f35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/api/v1/loan/returnBook/302","urlObject":{"protocol":"http","port":"8080","path":["api","v1","loan","returnBook","302"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"afea36ef-9ef7-4916-9ed7-ef18b8fb1dc6","name":"loan not found","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/v1/loan/returnBook/202"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 15:44:28 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorResponse\": \"Loan not found with ID: 202\"\n}"},{"id":"652c71b3-60a8-48d0-a1bb-d63f27b7a591","name":"successfully return book","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/v1/loan/returnBook/352"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 16:46:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"loanId\": 352,\n    \"bookName\": \"Clean Agile: Back to Basics\",\n    \"userEmail\": \"ayush@gmail.com\",\n    \"startDate\": \"2024-04-18 05:30:00.0\",\n    \"endDate\": \"2024-05-18 05:30:00.0\",\n    \"isReturned\": true\n}"}],"_postman_id":"4e4d9c9f-f77e-4734-8d06-103fdc311f35"},{"name":"get all loan","id":"20d6409e-bcac-4704-acb1-082b46a2ce34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/loan/getAllLoans","urlObject":{"protocol":"http","port":"8080","path":["api","v1","loan","getAllLoans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e610676b-3824-4158-9457-d3a3c94f0261","name":"fetched all loans","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/loan/getAllLoans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 16:46:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"loanId\": 302,\n        \"bookName\": \"Domain-Driven Design\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": true\n    },\n    {\n        \"loanId\": 352,\n        \"bookName\": \"Clean Agile: Back to Basics\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": false\n    },\n    {\n        \"loanId\": 353,\n        \"bookName\": \"Introduction to Linear Algebra\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": false\n    }\n]"}],"_postman_id":"20d6409e-bcac-4704-acb1-082b46a2ce34"},{"name":"get all loan by user","id":"8af2cc00-dd6a-4c98-aab8-d2ee719c9900","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"9f0ef5f1-e53a-43f6-8913-05ce7591d464","name":"get all loan by userId","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/loan/getLoansByUserId/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 16:52:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"loanId\": 302,\n        \"bookName\": \"Domain-Driven Design\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": true\n    },\n    {\n        \"loanId\": 353,\n        \"bookName\": \"Introduction to Linear Algebra\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": false\n    },\n    {\n        \"loanId\": 352,\n        \"bookName\": \"Clean Agile: Back to Basics\",\n        \"userEmail\": \"ayush@gmail.com\",\n        \"startDate\": \"2024-04-18 05:30:00.0\",\n        \"endDate\": \"2024-05-18 05:30:00.0\",\n        \"isReturned\": true\n    }\n]"},{"id":"302757f1-6d04-4ad1-bfdf-1fc732230cde","name":"no loan exist by userId","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/loan/getLoansByUserId/6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 18 Apr 2024 16:54:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"8af2cc00-dd6a-4c98-aab8-d2ee719c9900"},{"name":"save author using redis service","id":"4267d927-bce3-4df3-a6fd-490a19ab1b6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorId\":1,\r\n    \"authorName\":\"Tulsidas\",\r\n    \"authorAddress\": \"Nepal,India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/redis","urlObject":{"protocol":"http","port":"8080","path":["api","v1","redis"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"db28a1a7-0b44-4a8e-b7ef-70c199ca0632","name":"saved","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorId\":1,\r\n    \"authorName\":\"Tulsidas\",\r\n    \"authorAddress\": \"Nepal,India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/redis"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Tue, 23 Apr 2024 12:42:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4267d927-bce3-4df3-a6fd-490a19ab1b6f"},{"name":"get using redis service","id":"6ba04410-65a1-4632-bf8e-45b792a4f5bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/redis/1","urlObject":{"protocol":"http","port":"8080","path":["api","v1","redis","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2cea9150-060e-4e08-9527-353ce3903b65","name":"received author detials","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/redis/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 23 Apr 2024 12:42:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"authorId\": 1,\n    \"authorName\": \"Tulsidas\",\n    \"authorAddress\": \"Nepal,India\",\n    \"book\": []\n}"}],"_postman_id":"6ba04410-65a1-4632-bf8e-45b792a4f5bc"},{"name":"adding to list in rediscache","id":"3f86b8b3-5951-45fb-9a96-baa4b0d866c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorId\":1,\r\n    \"authorName\":\"Tulsidas\",\r\n    \"authorAddress\": \"Nepal,India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/redis/List","urlObject":{"protocol":"http","port":"8080","path":["api","v1","redis","List"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"720dfb3a-5f37-47a2-a994-d855a15a4846","name":"successfully added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"authorId\":1,\r\n    \"authorName\":\"Tulsidas\",\r\n    \"authorAddress\": \"Nepal,India\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/redis/List"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Tue, 23 Apr 2024 13:42:54 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3f86b8b3-5951-45fb-9a96-baa4b0d866c4"},{"name":"fetching the list","id":"96635518-a375-477d-b624-10ea6d1a6286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"dd7e80c9-f35d-4a60-b7d8-93f3df596f73","name":"fetching list","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/redis/getList/0/-1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 23 Apr 2024 13:54:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"authorId\": 1,\n        \"authorName\": \"Tulsidas\",\n        \"authorAddress\": \"Nepal,India\",\n        \"book\": []\n    },\n    {\n        \"authorId\": 1,\n        \"authorName\": \"Tulsidas\",\n        \"authorAddress\": \"Nepal,India\",\n        \"book\": []\n    },\n    {\n        \"authorId\": 1,\n        \"authorName\": \"Tulsidas\",\n        \"authorAddress\": \"Nepal,India\",\n        \"book\": []\n    },\n    {\n        \"authorId\": 1,\n        \"authorName\": \"Tulsidas\",\n        \"authorAddress\": \"Nepal,India\",\n        \"book\": []\n    }\n]"}],"_postman_id":"96635518-a375-477d-b624-10ea6d1a6286"}]}