{"collection":{"info":{"_postman_id":"580b3f7f-f39a-43a7-be1b-73ab07d5fc99","name":"Postman Library API v2","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2024-05-04T05:04:06.000Z","updatedAt":"2024-05-04T06:28:59.000Z","lastUpdatedBy":"12440627","uid":"12440627-580b3f7f-f39a-43a7-be1b-73ab07d5fc99"},"item":[{"name":"get books","id":"bd792702-b307-4437-ab48-5df87b09cd1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/books","host":["{{baseUrl}}"],"path":["books"]}},"response":[],"createdAt":"2024-05-04T05:05:06.000Z","updatedAt":"2024-05-04T05:11:59.000Z","uid":"12440627-bd792702-b307-4437-ab48-5df87b09cd1d"},{"name":"get fiction books","id":"34f554cb-bb18-495b-88d9-a7146943cf3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/books?genre=fiction&checkedOut=false","host":["{{baseUrl}}"],"path":["books"],"query":[{"key":"genre","value":"fiction"},{"key":"checkedOut","value":"false"}]}},"response":[],"createdAt":"2024-05-04T05:15:53.000Z","updatedAt":"2024-05-04T05:18:02.000Z","uid":"12440627-34f554cb-bb18-495b-88d9-a7146943cf3d"},{"name":"get book by id","id":"d079ab5a-defc-4481-8abb-caa64e5b2f55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/books/:id","host":["{{baseUrl}}"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89"}]}},"response":[],"createdAt":"2024-05-04T05:23:44.000Z","updatedAt":"2024-05-04T05:24:32.000Z","uid":"12440627-d079ab5a-defc-4481-8abb-caa64e5b2f55"},{"name":"add book","event":[{"listen":"test","script":{"id":"d3eeddd0-0c68-49ac-a077-38d493b99b60","exec":["// save the value of the \"id\" value from the API JSON response to a const variable named \"id\"\r","const id = pm.response.json().id\r","// set the value of the \"id\" variable to a collection variable also called \"id\".\r","pm.collectionVariables.set(\"id\", id)"],"type":"text/javascript"}}],"id":"02105cdb-473a-4635-8536-ce15e46666ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"To Kill a Mockingbird\",\r\n  \"author\": \"Harper Lee\",\r\n  \"genre\": \"fiction\",\r\n  \"yearPublished\": 1960\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/books","host":["{{baseUrl}}"],"path":["books"]}},"response":[],"createdAt":"2024-05-04T05:33:03.000Z","updatedAt":"2024-05-04T06:05:35.000Z","uid":"12440627-02105cdb-473a-4635-8536-ce15e46666ac"},{"name":"checkout a book","id":"0bd9921e-5a56-4427-b3a8-4ecfb1efa6d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":{"raw":"{{baseUrl}}/books/:id","host":["{{baseUrl}}"],"path":["books",":id"],"variable":[{"key":"id","value":"{{id}}"}]}},"response":[],"createdAt":"2024-05-04T06:15:24.000Z","updatedAt":"2024-05-04T06:17:14.000Z","uid":"12440627-0bd9921e-5a56-4427-b3a8-4ecfb1efa6d3"},{"name":"New Request","id":"698b3847-f5c3-47ef-ac1b-6480ab611467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/books/:id","host":["{{baseUrl}}"],"path":["books",":id"],"variable":[{"key":"id","value":"{{id}}"}]}},"response":[],"createdAt":"2024-05-04T06:18:33.000Z","updatedAt":"2024-05-04T06:19:02.000Z","uid":"12440627-698b3847-f5c3-47ef-ac1b-6480ab611467"},{"name":"skill check","event":[{"listen":"test","script":{"id":"f2e90b05-7559-40b5-a5dc-646ff85187a0","exec":["// save the value of the \"id\" value from the API JSON response to a const variable named \"id\"\r","const favoriteActor = pm.response.json().favoriteActor\r","// set the value of the \"id\" variable to a collection variable also called \"id\".\r","pm.collectionVariables.set(\"favoriteActor\", favoriteActor)"],"type":"text/javascript"}}],"id":"3032dab4-0a2f-41c9-a1da-a8b397f1240d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":[{"key":"value","value":"skillcheck","type":"string"},{"key":"key","value":"student-expert","type":"string"}]},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"actorName\": \"Yash\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{skillcheckBaseUrl}}/post?movieName=Ladakh","host":["{{skillcheckBaseUrl}}"],"path":["post"],"query":[{"key":"movieName","value":"Ladakh"}]}},"response":[],"createdAt":"2024-05-04T06:24:15.000Z","updatedAt":"2024-05-04T06:28:57.000Z","uid":"12440627-3032dab4-0a2f-41c9-a1da-a8b397f1240d"}],"auth":{"type":"apikey","apikey":[{"key":"value","value":"postmanrulz","type":"string"},{"key":"key","value":"api-key","type":"string"}]},"event":[{"listen":"prerequest","script":{"id":"6e325eb5-2e90-48da-8a74-0a9921d06a47","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"51d41fdb-f9e0-4229-8f05-582075581fa8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://library-api.postmanlabs.com"},{"key":"id","value":""},{"key":"skillcheckBaseUrl","value":"https://postman-echo.com"},{"key":"favoriteActor","value":""}]}}