{"info":{"_postman_id":"7dcde101-f3a6-4c52-b604-ebb30c56ed21","name":"day26(Assignment1)_Restful_booker","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23880231","collectionId":"7dcde101-f3a6-4c52-b604-ebb30c56ed21","publishedId":"2sA3JT4edV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-18T16:25:52.000Z"},"item":[{"name":"Task1 POSTIVE TESTCASE Copy","item":[{"name":"1. create token","event":[{"listen":"test","script":{"id":"f3dc0aff-773f-4d10-b63b-bd1a6d3a250c","exec":["tests[\"Response: \" + responseBody] = true;\r","\r","//tests[\"Request: \" + JSON.stringify(request)] = true;\r","\r","\r","\r","pm.test('Body matches string as token', function () {\r","    pm.expect(pm.response.text()).to.include('token');\r","})\r","pm.globals.get(\"variable_key\");\r","\r","\r","var delayInMilliseconds = 2000; //2 second\r","//internal code will run after 2second\r","setTimeout(function() {\r","  //your code to be executed after 2 second\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    //got javascript object by json \r","    var jasonResponse = pm.response.json();\r","        // pm.collectionVariables.set(\"token\", jasonResponse[\"token\"]);\r","    pm.collectionVariables.set(\"token\", jasonResponse.token);\r","});\r","\r","\r","pm.test('Content-Type is present', function () {\r","    pm.response.to.have.header('Content-Type');\r","})\r","\r","\r","\r","var schema = {\r","    '$schema': 'https://json-schema.org/draft/2019-09/schema',\r","    '$id': 'http://example.com/example.json',\r","    'type': 'object',\r","    'default': {},\r","    'title': 'Root Schema',\r","    'required': ['token'],\r","    'properties': {\r","        'token': {\r","            'type': 'string',\r","            'default': '',\r","            'title': 'The token Schema',\r","            'examples': ['abc123']\r","        }\r","    },\r","    'examples': [{ 'token': 'abc123' }]\r","};\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","})\r","\r","\r","\r","\r","\r","\r","}, delayInMilliseconds);\r","\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"3e38117f-4395-44ad-926a-bc8d00015ce7","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"method":"POST","header":[{"key":"content-type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"username\" :\"admin\",\r\n    \"password\" :\"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/auth","urlObject":{"protocol":"https","path":["auth"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e38117f-4395-44ad-926a-bc8d00015ce7"},{"name":"2..Create Booking","event":[{"listen":"test","script":{"id":"fdcff0b0-7cc9-4998-b60a-bfe282626726","exec":["pm.test('check status code', function () {\r","pm.globals.get(\"variable_key\");\r","    pm.response.to.have.status(200);\r","    pm.collectionVariables.set(\"bookingIdforupdate\",pm.response.json().bookingid);\r","    pm.environment.set(\"DeleteBookingId\",pm.response.json().bookingid);\r","})\r","\r","\r","    pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","    });\r","\r","\r","\r","\r","pm.test(\"Body matches string as bookgingid\", function () {\r","    pm.expect(pm.response.text()).to.include(\"bookingid\");\r","});\r","\r","\r","\r","\r","var schema = {\r","    '$schema': 'https://json-schema.org/draft/2019-09/schema',\r","    '$id': 'http://example.com/example.json',\r","    'title': 'Root Schema',\r","    'type': 'object',\r","    'default': {},\r","    'required': [\r","        'bookingid',\r","        'booking'\r","    ],\r","    'properties': {\r","        'bookingid': {\r","            'title': 'The bookingid Schema',\r","            'type': 'integer',\r","            'default': 0\r","        },\r","        'booking': {\r","            'title': 'The booking Schema',\r","            'type': 'object',\r","            'default': {},\r","            'required': [\r","                'firstname',\r","                'lastname',\r","                'totalprice',\r","                'depositpaid',\r","                'bookingdates',\r","                'additionalneeds'\r","            ],\r","            'properties': {\r","                'firstname': {\r","                    'title': 'The firstname Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                },\r","                'lastname': {\r","                    'title': 'The lastname Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                },\r","                'totalprice': {\r","                    'title': 'The totalprice Schema',\r","                    'type': 'integer',\r","                    'default': 0\r","                },\r","                'depositpaid': {\r","                    'title': 'The depositpaid Schema',\r","                    'type': 'boolean',\r","                    'default': false\r","                },\r","                'bookingdates': {\r","                    'title': 'The bookingdates Schema',\r","                    'type': 'object',\r","                    'default': {},\r","                    'required': [\r","                        'checkin',\r","                        'checkout'\r","                    ],\r","                    'properties': {\r","                        'checkin': {\r","                            'title': 'The checkin Schema',\r","                            'type': 'string',\r","                            'default': ''\r","                        },\r","                        'checkout': {\r","                            'title': 'The checkout Schema',\r","                            'type': 'string',\r","                            'default': ''\r","                        }\r","                    }\r","                },\r","                'additionalneeds': {\r","                    'title': 'The additionalneeds Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                }\r","            }\r","        }\r","    }\r","};\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","});\r","\r",""],"type":"text/javascript"}}],"id":"463e564d-86b8-41bf-9420-b57d882f1661","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"token","value":"token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"Jim\",\r\n    \"lastname\" : \"Brown\",\r\n    \"totalprice\" : 111,\r\n    \"depositpaid\" : true,\r\n    \"bookingdates\" : {\r\n        \"checkin\" : \"2018-01-01\",\r\n        \"checkout\" : \"2019-01-01\"\r\n    },\r\n    \"additionalneeds\" : \"Breakfast\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"463e564d-86b8-41bf-9420-b57d882f1661"},{"name":"3..Create Booking_500_internal_server_error Copy","event":[{"listen":"test","script":{"id":"fdcff0b0-7cc9-4998-b60a-bfe282626726","exec":["//when you donot supply the body but you say you have to fullfil the request to create booking so server will say it is internal server error ie the request which server cannot fullfill it will return with status code 500\r","pm.test('check status code', function () {\r","    pm.response.to.have.status(500);\r"," \r","})\r","\r","\r","    pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","    });\r","\r","\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"18cf8c7d-a2bb-4b10-9dd5-766656697b2a","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"token","value":"token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"18cf8c7d-a2bb-4b10-9dd5-766656697b2a"},{"name":"4.update booking name","event":[{"listen":"test","script":{"id":"87621f54-6a1a-48bb-89b1-afea85237670","exec":["pm.test('Status code is 200', function () {\r","    pm.response.to.have.status(200);\r","    \r","})\r","\r","pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","});\r","\r","\r","\r","\r","pm.test(\"Body matches string as name\", function () {\r","    pm.expect(pm.response.text()).to.include(\"firstname\");\r","});\r","\r","\r","\r","var schema = {\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"title\": \"Root Schema\",\r","    \"required\": [\r","        \"firstname\",\r","        \"lastname\",\r","        \"totalprice\",\r","        \"depositpaid\",\r","        \"bookingdates\"\r","    ],\r","    \"properties\": {\r","        \"firstname\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The firstname Schema\",\r","            \"examples\": [\r","                \"James\"\r","            ]\r","        },\r","        \"lastname\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The lastname Schema\",\r","            \"examples\": [\r","                \"Ericsson\"\r","            ]\r","        },\r","        \"totalprice\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The totalprice Schema\",\r","            \"examples\": [\r","                495\r","            ]\r","        },\r","        \"depositpaid\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The depositpaid Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"bookingdates\": {\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"title\": \"The bookingdates Schema\",\r","            \"required\": [\r","                \"checkin\",\r","                \"checkout\"\r","            ],\r","            \"properties\": {\r","                \"checkin\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The checkin Schema\",\r","                    \"examples\": [\r","                        \"2019-10-27\"\r","                    ]\r","                },\r","                \"checkout\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The checkout Schema\",\r","                    \"examples\": [\r","                        \"2023-03-06\"\r","                    ]\r","                }\r","            },\r","            \"examples\": [{\r","                \"checkin\": \"2019-10-27\",\r","                \"checkout\": \"2023-03-06\"\r","            }]\r","        }\r","    },\r","    \"examples\": [{\r","        \"firstname\": \"James\",\r","        \"lastname\": \"Ericsson\",\r","        \"totalprice\": 495,\r","        \"depositpaid\": true,\r","        \"bookingdates\": {\r","            \"checkin\": \"2019-10-27\",\r","            \"checkout\": \"2023-03-06\"\r","        }\r","    }]\r","}\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","});\r","\r",""],"type":"text/javascript"}}],"id":"0fe64588-ff21-40aa-9a48-7fc2a8e31d3b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"James\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fe64588-ff21-40aa-9a48-7fc2a8e31d3b"},{"name":"5.getBooking","event":[{"listen":"test","script":{"id":"9c3e80c3-e3c7-49ed-98a6-72d1156601de","exec":["/*\r","\r","pm.test(\"check firstname\",function(){\r","   var jason_data=pm.response.json();\r","   pm.expect(jason_data[\"firstname\"]).to.eql(\"sumit\");\r","});*/\r","\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","});\r","\r","\r","\r","\r","pm.test(\"Body matches string as name \", function () {\r","    pm.expect(pm.response.text()).to.include(\"firstname\");\r","});\r","\r","\r","var schema = {\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"title\": \"Root Schema\",\r","    \"required\": [\r","        \"firstname\",\r","        \"lastname\",\r","        \"totalprice\",\r","        \"depositpaid\",\r","        \"bookingdates\",\r","        \"additionalneeds\"\r","    ],\r","    \"properties\": {\r","        \"firstname\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The firstname Schema\",\r","            \"examples\": [\r","                \"Sally\"\r","            ]\r","        },\r","        \"lastname\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The lastname Schema\",\r","            \"examples\": [\r","                \"Brown\"\r","            ]\r","        },\r","        \"totalprice\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The totalprice Schema\",\r","            \"examples\": [\r","                111\r","            ]\r","        },\r","        \"depositpaid\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The depositpaid Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"bookingdates\": {\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"title\": \"The bookingdates Schema\",\r","            \"required\": [\r","                \"checkin\",\r","                \"checkout\"\r","            ],\r","            \"properties\": {\r","                \"checkin\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The checkin Schema\",\r","                    \"examples\": [\r","                        \"2013-02-23\"\r","                    ]\r","                },\r","                \"checkout\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The checkout Schema\",\r","                    \"examples\": [\r","                        \"2014-10-23\"\r","                    ]\r","                }\r","            },\r","            \"examples\": [{\r","                \"checkin\": \"2013-02-23\",\r","                \"checkout\": \"2014-10-23\"\r","            }]\r","        },\r","        \"additionalneeds\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The additionalneeds Schema\",\r","            \"examples\": [\r","                \"Breakfast\"\r","            ]\r","        }\r","    },\r","    \"examples\": [{\r","        \"firstname\": \"Sally\",\r","        \"lastname\": \"Brown\",\r","        \"totalprice\": 111,\r","        \"depositpaid\": true,\r","        \"bookingdates\": {\r","            \"checkin\": \"2013-02-23\",\r","            \"checkout\": \"2014-10-23\"\r","        },\r","        \"additionalneeds\": \"Breakfast\"\r","    }]\r","}\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","});"],"type":"text/javascript"}}],"id":"4cc4d0ac-a1a3-45a3-a3cd-b53bdf69f350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cc4d0ac-a1a3-45a3-a3cd-b53bdf69f350"}],"id":"1820e68b-8a3d-44e9-8e1d-99ffd906539b","_postman_id":"1820e68b-8a3d-44e9-8e1d-99ffd906539b","description":""},{"name":"Task2 POSTIVE TESTCASE","item":[{"name":"1.Delete User ,cookie or token used fo above bug of 201 intead , 200 should be","event":[{"listen":"test","script":{"id":"c84b7d43-3dad-4139-9dfa-7a2caf42c1c8","exec":["/*pm.test(\"check delete or not\",function(){\r","pm.expect(pm.response.text()).to.eql(\"User Delete Successfully\");\r","});\r","*/\r","//there is bug in the api b.z test in not passed adn created signal is comming instead of user deleted successfuly\r","\r","//this is bug\r","pm.test(\"check status 204\",function(){\r","//no content http status must come after deletion\r","pm.response.to.have.status(204);\r","});\r","\r","pm.test(\"check content-type\",function(){\r"," pm.response.to.have.header(\"Content-Type\");\r","})"],"type":"text/javascript"}}],"id":"eea7d76e-0d70-4c88-8dc0-73e233ef078d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"cookie","value":"token","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://restful-booker.herokuapp.com/booking/{{DeleteBookingId}}","urlObject":{"protocol":"https","path":["booking","{{DeleteBookingId}}"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eea7d76e-0d70-4c88-8dc0-73e233ef078d"},{"name":"2.getBooking","event":[{"listen":"test","script":{"id":"1e574552-8d8c-4d51-904b-87fd4ed53534","exec":["/*\r","\r","pm.test(\"check firstname\",function(){\r","   var jason_data=pm.response.json();\r","   pm.expect(jason_data[\"firstname\"]).to.eql(\"sumit\");\r","});*/\r","\r","\r","pm.test(\"Status code is 404 Not found\", function () {\r","    pm.response.to.have.status(404);\r","});\r","\r","pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","});\r","\r","\r","/*\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Body matches string as bookgingid\", function () {\r","    pm.expect(pm.response.text()).to.include(\"Jim\");\r","});\r","\r","\r","var schema = {\r","    \"firstname\": \"Sally\",\r","    \"lastname\": \"Brown\",\r","    \"totalprice\": 111,\r","    \"depositpaid\": true,\r","    \"bookingdates\": {\r","        \"checkin\": \"2013-02-23\",\r","        \"checkout\": \"2014-10-23\"\r","    },\r","    \"additionalneeds\": \"Breakfast\"\r","\r","\r","}\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","   // pm.expect(tv4.validate(data2, schema)).to.be.true;\r","});*/"],"type":"text/javascript"}}],"id":"281d1966-b26a-462d-84ec-fb63ad6ede3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking/{{DeleteBookingId}}","urlObject":{"protocol":"https","path":["booking","{{DeleteBookingId}}"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"281d1966-b26a-462d-84ec-fb63ad6ede3d"}],"id":"8abfdd2e-8ae3-4805-be69-4e3d032b52dd","_postman_id":"8abfdd2e-8ae3-4805-be69-4e3d032b52dd","description":""},{"name":"Task3 POSTIVE TESTCASE","item":[{"name":"1.Getting all booking id","event":[{"listen":"test","script":{"id":"c80d0429-02a9-4e84-b234-34479fc1832f","exec":["\r","\r","//you can see there is the square brackets so as the body jason array is comming \r","//now iniside that curly brackets ie the jason object. itr is \r","/*\r","pm.test(\"global variable store \",function(){\r","var json_data=pm.response.json();\r","var bookingid =json_data[0].bookingid;\r","\r","pm.globals.unset(\"newbookingid\");\r","pm.collectionVariables.unset(\"newbookingid\");\r","//variable scope to the collections\r","pm.globals.set(\"newbookingid\",+bookingid);\r","//+ sign will convert the booking id(string) into the number  \r","\r","});\r","*/\r","\r","\r","\r","// no token or cookie required\r","pm.test(\"check status 200\",function(){\r","    pm.response.to.have.status(200);\r","     pm.collectionVariables.set(\"bookingid2\",  pm.response.json()[0].bookingid);\r","})\r","\r","pm.test(\"check Content-Type\",function(){\r","  pm.response.to.have.header(\"Content-Type\");\r","})\r","\r","var schema = {\r","pm.collectionVariables.set(\"variable_key\", \"variable_value\");\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"type\": \"array\",\r","    \"default\": [],\r","    \"title\": \"Root Schema\",\r","    \"items\": {\r","        \"type\": \"object\",\r","        \"title\": \"A Schema\",\r","        \"required\": [\r","            \"bookingid\"\r","        ],\r","        \"properties\": {\r","            \"bookingid\": {\r","                \"type\": \"integer\",\r","                \"title\": \"The bookingid Schema\",\r","                \"examples\": [\r","                    1,\r","                    2,\r","                    3,\r","                    4\r","                ]\r","            }\r","        },\r","        \"examples\": [{\r","            \"bookingid\": 1\r","        },\r","        {\r","            \"bookingid\": 2\r","        },\r","        {\r","            \"bookingid\": 3\r","        },\r","        {\r","            \"bookingid\": 4\r","        }]\r","    },\r","    \"examples\": [\r","        [{\r","            \"bookingid\": 1\r","        },\r","        {\r","            \"bookingid\": 2\r","        },\r","        {\r","            \"bookingid\": 3\r","        },\r","        {\r","            \"bookingid\": 4\r","        }]\r","    ]\r","};\r","\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","   \r","});\r","\r","\r","pm.test(\"body matches string bookingid \",function(){\r","    pm.expect(pm.response.text()).to.include(\"bookingid\")\r","})\r","\r","\r",""],"type":"text/javascript"}}],"id":"b8547230-fcef-46f8-9149-13c4db62c66e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8547230-fcef-46f8-9149-13c4db62c66e"},{"name":"2.update the booking","event":[{"listen":"test","script":{"id":"52d2480e-c1a3-4c5f-868d-05a386e5e31d","exec":["/*var name = pm.globals.get(\"name\");;\r","\r","console.log(name);\r","\r","pm.test(\"to check patch\", function () {\r"," var jason_data=pm.response.json();\r","    pm.expect(jason_data.firstname).to.eql(name);\r","});*/\r","\r","pm.test(\"status code\",function(){\r","    pm.response.to.have.status(200);\r","})\r","\r","var schema={\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"title\": \"Root Schema\",\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"required\": [\r","        \"firstname\",\r","        \"lastname\",\r","        \"totalprice\",\r","        \"depositpaid\",\r","        \"bookingdates\",\r","        \"additionalneeds\"\r","    ],\r","    \"properties\": {\r","        \"firstname\": {\r","            \"title\": \"The firstname Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        },\r","        \"lastname\": {\r","            \"title\": \"The lastname Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        },\r","        \"totalprice\": {\r","            \"title\": \"The totalprice Schema\",\r","            \"type\": \"integer\",\r","            \"default\": 0\r","        },\r","        \"depositpaid\": {\r","            \"title\": \"The depositpaid Schema\",\r","            \"type\": \"boolean\",\r","            \"default\": false\r","        },\r","        \"bookingdates\": {\r","            \"title\": \"The bookingdates Schema\",\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"required\": [\r","                \"checkin\",\r","                \"checkout\"\r","            ],\r","            \"properties\": {\r","                \"checkin\": {\r","                    \"title\": \"The checkin Schema\",\r","                    \"type\": \"string\",\r","                    \"default\": \"\"\r","                },\r","                \"checkout\": {\r","                    \"title\": \"The checkout Schema\",\r","                    \"type\": \"string\",\r","                    \"default\": \"\"\r","                }\r","            }\r","        },\r","        \"additionalneeds\": {\r","            \"title\": \"The additionalneeds Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        }\r","    }\r","}\r","\r","pm.test(\"check schema\",function(){\r","    pm.expect(tv4.validate(pm.response.json(),schema)).to.be.true;\r","})\r","\r","\r","pm.test(\"check content-type\",function(){\r","    pm.response.to.have.header(\"Content-Type\");\r","})\r","\r","pm.test(\"check string firstname\",function(){\r","    pm.expect(pm.response.text()).to.include(\"firstname\");\r","})"],"type":"text/javascript"}}],"id":"26494dba-cc17-4e30-b63d-e673e3eeee14","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"cookie","value":"token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"sumit\",\r\n    \"lastname\" : \"Brown\",\r\n    \"totalprice\" : 111,\r\n    \"depositpaid\" : true,\r\n    \"bookingdates\" : {\r\n        \"checkin\" : \"2018-01-01\",\r\n        \"checkout\" : \"2019-01-01\"\r\n    },\r\n    \"additionalneeds\" : \"Breakfast\"\r\n}"},"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"26494dba-cc17-4e30-b63d-e673e3eeee14"},{"name":"3.get id","event":[{"listen":"test","script":{"id":"107a36cb-a1a9-45d5-a070-caf11015e8ff","exec":["/*var name = pm.globals.get(\"name\");\r","console.log(name);\r","console.log( pm.globals.get(\"name\"));\r","\r","pm.test(\"Your test name\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.firstname).to.eql(name);\r","});*/\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","});\r","\r","\r","\r","\r","pm.test(\"Body matches string as bookgingid\", function () {\r","    pm.expect(pm.response.text()).to.include(\"firstname\");\r","});\r","\r","\r","var schema ={\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"title\": \"Root Schema\",\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"required\": [\r","        \"firstname\",\r","        \"lastname\",\r","        \"totalprice\",\r","        \"depositpaid\",\r","        \"bookingdates\",\r","        \"additionalneeds\"\r","    ],\r","    \"properties\": {\r","        \"firstname\": {\r","            \"title\": \"The firstname Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        },\r","        \"lastname\": {\r","            \"title\": \"The lastname Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        },\r","        \"totalprice\": {\r","            \"title\": \"The totalprice Schema\",\r","            \"type\": \"integer\",\r","            \"default\": 0\r","        },\r","        \"depositpaid\": {\r","            \"title\": \"The depositpaid Schema\",\r","            \"type\": \"boolean\",\r","            \"default\": false\r","        },\r","        \"bookingdates\": {\r","            \"title\": \"The bookingdates Schema\",\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"required\": [\r","                \"checkin\",\r","                \"checkout\"\r","            ],\r","            \"properties\": {\r","                \"checkin\": {\r","                    \"title\": \"The checkin Schema\",\r","                    \"type\": \"string\",\r","                    \"default\": \"\"\r","                },\r","                \"checkout\": {\r","                    \"title\": \"The checkout Schema\",\r","                    \"type\": \"string\",\r","                    \"default\": \"\"\r","                }\r","            }\r","        },\r","        \"additionalneeds\": {\r","            \"title\": \"The additionalneeds Schema\",\r","            \"type\": \"string\",\r","            \"default\": \"\"\r","        }\r","    }\r","}\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","   // pm.expect(tv4.validate(data2, schema)).to.be.true;\r","});"],"type":"text/javascript"}}],"id":"90f6b1f4-f343-4fed-a6e2-b4bb9f236077","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"90f6b1f4-f343-4fed-a6e2-b4bb9f236077"}],"id":"0bac09d9-2de6-4b92-9193-c053430ad7e4","_postman_id":"0bac09d9-2de6-4b92-9193-c053430ad7e4","description":""},{"name":"Task4 POSITIVE TESTCASE","item":[{"name":"1.create booking","event":[{"listen":"test","script":{"id":"e1394353-f9f4-4d58-a0a4-d8def47dff68","exec":["pm.test('status code 200', function () {\r","    pm.response.to.have.status(200);\r","    pm.collectionVariables.set('deleted_bookingid', pm.response.json().bookingid);\r","})\r","\r","pm.test('check content-type', function () {\r","    pm.response.to.have.header('Content-Type');\r","})\r","\r","pm.test('check String booking id ', function () {\r","    pm.expect(pm.response.text()).to.include('bookingid');\r","})\r","\r","var schema = {\r","    '$schema': 'https://json-schema.org/draft/2019-09/schema',\r","    '$id': 'http://example.com/example.json',\r","    'title': 'Root Schema',\r","    'type': 'object',\r","    'default': {},\r","    'required': [\r","        'bookingid',\r","        'booking'\r","    ],\r","    'properties': {\r","        'bookingid': {\r","            'title': 'The bookingid Schema',\r","            'type': 'integer',\r","            'default': 0\r","        },\r","        'booking': {\r","            'title': 'The booking Schema',\r","            'type': 'object',\r","            'default': {},\r","            'required': [\r","                'firstname',\r","                'lastname',\r","                'totalprice',\r","                'depositpaid',\r","                'bookingdates',\r","                'additionalneeds'\r","            ],\r","            'properties': {\r","                'firstname': {\r","                    'title': 'The firstname Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                },\r","                'lastname': {\r","                    'title': 'The lastname Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                },\r","                'totalprice': {\r","                    'title': 'The totalprice Schema',\r","                    'type': 'integer',\r","                    'default': 0\r","                },\r","                'depositpaid': {\r","                    'title': 'The depositpaid Schema',\r","                    'type': 'boolean',\r","                    'default': false\r","                },\r","                'bookingdates': {\r","                    'title': 'The bookingdates Schema',\r","                    'type': 'object',\r","                    'default': {},\r","                    'required': [\r","                        'checkin',\r","                        'checkout'\r","                    ],\r","                    'properties': {\r","                        'checkin': {\r","                            'title': 'The checkin Schema',\r","                            'type': 'string',\r","                            'default': ''\r","                        },\r","                        'checkout': {\r","                            'title': 'The checkout Schema',\r","                            'type': 'string',\r","                            'default': ''\r","                        }\r","                    }\r","                },\r","                'additionalneeds': {\r","                    'title': 'The additionalneeds Schema',\r","                    'type': 'string',\r","                    'default': ''\r","                }\r","            }\r","        }\r","    }\r","};\r","\r","pm.test('schema check',function (){\r","    pm.expect(tv4.validate(pm.response.json(),schema)).to.be.true;\r","})\r","\r",""],"type":"text/javascript"}}],"id":"4481ed24-7088-4e33-b459-0684b552b6dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"pritam\",\r\n    \"lastname\" : \"sharma\",\r\n    \"totalprice\" : 1018,\r\n    \"depositpaid\" : true,\r\n    \"bookingdates\" : {\r\n        \"checkin\" : \"2018-01-01\",\r\n        \"checkout\" : \"2019-01-01\"\r\n    },\r\n    \"additionalneeds\" : \"Breakfast\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4481ed24-7088-4e33-b459-0684b552b6dc"},{"name":"2.Delete bookingid bug of 201 instead 200  should be","event":[{"listen":"test","script":{"id":"c637819b-7241-4845-aa51-261993f4828d","exec":["/*pm.test(\"check booking id deleted\",function(){\r","pm.expect(pm.response.text()).to.eql(\"User Delete Successfully\");\r","});*/\r","\r","//there is bug in api b/z it responds with the created signal.\r","\r","//this is bug\r","pm.test(\"check status\",function(){\r","    //no content http status must come after deletion\r","    pm.response.to.have.status(204);\r","})"],"type":"text/javascript"}}],"id":"728744c6-abdf-4b3f-8a81-6d2c2fa2c2c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"cookie","value":"token","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"728744c6-abdf-4b3f-8a81-6d2c2fa2c2c2"}],"id":"e4f4e72a-765a-4a63-9a2f-4d36b130776f","_postman_id":"e4f4e72a-765a-4a63-9a2f-4d36b130776f","description":""},{"name":"Task5 NEGATIVE TESTCASE","item":[{"name":"1. create token","event":[{"listen":"test","script":{"id":"16605661-335f-4ab0-807b-add1552d1873","exec":["tests[\"Response: \" + responseBody] = true;\r","\r","\r","var delayInMilliseconds = 2000; //1 second\r","\r","setTimeout(function() {\r","  //your code to be executed after 1 second\r","  //internal code will run after 1second\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","   //got javascript object by json \r","   var jasonResponse=pm.response.json();\r","   // pm.collectionVariables.set(\"token\", jasonResponse[\"token\"]);\r","     pm.collectionVariables.set(\"token\", jasonResponse.token);\r","});\r","\r","\r","\r","    pm.test(\"Content-Type is present\", function () {\r","        pm.response.to.have.header(\"Content-Type\");\r","    });\r","\r","\r","\r","\r","pm.test(\"Body matches string as token\", function () {\r","    pm.expect(pm.response.text()).to.include(\"token\");\r","});\r","\r","\r","\r","var schema = {\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"title\": \"Root Schema\",\r","    \"required\": [\r","        \"token\"\r","    ],\r","    \"properties\": {\r","        \"token\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The token Schema\",\r","            \"examples\": [\r","                \"abc123\"\r","            ]\r","        }\r","    },\r","    \"examples\": [{\r","        \"token\": \"abc123\"\r","    }]\r","}\r","\r","//var data1 = [true, false];\r","//var data2 = [true, 123];\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","    //pm.expect(tv4.validate(data1, schema)).to.be.true;\r","   // pm.expect(tv4.validate(data2, schema)).to.be.true;\r","});\r","\r","\r","}, delayInMilliseconds);\r","\r","\r","\r","\r","\r","\r","\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"7b9803da-ee6f-42b5-b52d-6adc097faf50","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"method":"POST","header":[{"key":"content-type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"username\" :\"admin\",\r\n    \"password\" :\"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restful-booker.herokuapp.com/auth","urlObject":{"protocol":"https","path":["auth"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b9803da-ee6f-42b5-b52d-6adc097faf50"},{"name":"2.wrong payload Creation of Booking","event":[{"listen":"test","script":{"id":"4b2c4128-34e5-4747-89df-f4c038e5a6cd","exec":["pm.test(\"wrong payload \",function(){\r","    pm.response.to.have.status(500);\r","})"],"type":"text/javascript"}}],"id":"a3647d20-141a-4b57-a7c0-0b6afce75a14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"text/plain","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"token","value":"{{resfulbookerToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"Olin\",\r\n    \"lastname\" : \"Dutta\",\r\n    \"totalprice\" : 966,\r\n    \"depositpaid\" : false,\r\n    \"bookingdates\" : {\r\n        \"checkin\" : \"Wed May 06 2026 11:14:49 GMT+0000 (Coordinated Universal Time)\",\r\n        \"checkout\" : \"2022-01-01\"\r\n    },\r\n    \"additionalneeds\" : \"Lunch\"\r\n}\r\n//now we maintain the body datat in text foramt instead of jason( ie wrong payload)","options":{"raw":{"language":"text"}}},"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3647d20-141a-4b57-a7c0-0b6afce75a14"}],"id":"bdabe217-7212-4588-85b2-28543815bd21","_postman_id":"bdabe217-7212-4588-85b2-28543815bd21","description":""},{"name":"Task6  NEGATIVE TESTCASE","item":[{"name":"1.Getting all booking id","event":[{"listen":"test","script":{"id":"c01333a8-c10f-4450-b561-b222e74979d6","exec":["\r","\r","//you can see there is the square brackets so as the body jason array is comming \r","//now iniside that curly brackets ie the jason object. itr is \r","/*\r","pm.test(\"global variable store \",function(){\r","var json_data=pm.response.json();\r","var bookingid =json_data[0].bookingid;\r","\r","pm.globals.unset(\"newbookingid\");\r","pm.collectionVariables.unset(\"newbookingid\");\r","//variable scope to the collections\r","pm.globals.set(\"newbookingid\",+bookingid);\r","//+ sign will convert the booking id(string) into the number  \r","\r","});\r","*/\r","\r","pm.test(\"check status 200\",function(){\r","    pm.response.to.have.status(200);\r","    pm.response.to.have.header(\"Content-Type\");\r","    pm.collectionVariables.set(\"bookingid2\",  pm.response.json()[0].bookingid);\r","})\r","\r","pm.test(\"check Content-Type\",function(){\r","  \r","    pm.response.to.have.header(\"Content-Type\");\r","})\r","\r","var schema ={\r","    \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\r","    \"$id\": \"http://example.com/example.json\",\r","    \"type\": \"array\",\r","    \"default\": [],\r","    \"title\": \"Root Schema\",\r","    \"items\": {\r","        \"type\": \"object\",\r","        \"title\": \"A Schema\",\r","        \"required\": [\r","            \"bookingid\"\r","        ],\r","        \"properties\": {\r","            \"bookingid\": {\r","                \"type\": \"integer\",\r","                \"title\": \"The bookingid Schema\",\r","                \"examples\": [\r","                    1,\r","                    2,\r","                    3,\r","                    4\r","                ]\r","            }\r","        },\r","        \"examples\": [{\r","            \"bookingid\": 1\r","        },\r","        {\r","            \"bookingid\": 2\r","        },\r","        {\r","            \"bookingid\": 3\r","        },\r","        {\r","            \"bookingid\": 4\r","        }]\r","    },\r","    \"examples\": [\r","        [{\r","            \"bookingid\": 1\r","        },\r","        {\r","            \"bookingid\": 2\r","        },\r","        {\r","            \"bookingid\": 3\r","        },\r","        {\r","            \"bookingid\": 4\r","        }]\r","    ]\r","};\r","\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(pm.response.json(), schema)).to.be.true;\r","   \r","});\r","\r","\r","pm.test(\"body matches string bookingid \",function(){\r","    pm.expect(pm.response.text()).to.include(\"bookingid\")\r","})\r","\r","\r",""],"type":"text/javascript"}}],"id":"8dcd3323-4247-484b-b888-6bbe40df1c66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking","urlObject":{"protocol":"https","path":["booking"],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dcd3323-4247-484b-b888-6bbe40df1c66"},{"name":"2.Delete bookingid bug of 201, instead 200 should come","event":[{"listen":"test","script":{"id":"c637819b-7241-4845-aa51-261993f4828d","exec":["/*pm.test(\"check booking id deleted\",function(){\r","pm.expect(pm.response.text()).to.eql(\"User Delete Successfully\");\r","});*/\r","\r","//there is bug in api b/z it responds with the created signal.\r","\r","//this is bug\r","pm.test(\"check status\",function(){\r","    pm.response.to.have.status(200);\r","})"],"type":"text/javascript"}}],"id":"c6885fff-3f6e-4fb0-9cb1-b106f7132b69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"cookie","value":"token","type":"text"}],"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6885fff-3f6e-4fb0-9cb1-b106f7132b69"},{"name":"2.update the booking Copy","event":[{"listen":"test","script":{"id":"1a97a8ba-c7fe-41cb-8f26-6c86f5f1b1a6","exec":["/*var name = pm.globals.get(\"name\");;\r","\r","console.log(name);\r","\r","pm.test(\"to check patch\", function () {\r"," var jason_data=pm.response.json();\r","    pm.expect(jason_data.firstname).to.eql(name);\r","});*/\r","\r","pm.test(\"status code\",function(){\r","    pm.response.to.have.status(405);\r","})"],"type":"text/javascript"}}],"id":"4b08bf2b-66bd-455c-aa70-16739f683cf5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"cookie","value":"token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"sumit\",\r\n    \"lastname\" : \"Brown\",\r\n    \"totalprice\" : 111,\r\n    \"depositpaid\" : true,\r\n    \"bookingdates\" : {\r\n        \"checkin\" : \"2018-01-01\",\r\n        \"checkout\" : \"2019-01-01\"\r\n    },\r\n    \"additionalneeds\" : \"Breakfast\"\r\n}"},"url":"https://restful-booker.herokuapp.com/booking/","urlObject":{"protocol":"https","path":["booking",""],"host":["restful-booker","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b08bf2b-66bd-455c-aa70-16739f683cf5"}],"id":"3f73384e-3d61-4736-a8dc-92754225e88e","_postman_id":"3f73384e-3d61-4736-a8dc-92754225e88e","description":""}],"event":[{"listen":"prerequest","script":{"id":"3d2466d0-d8e7-4376-a500-0966027f0279","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2f9170b9-1d8c-480e-9397-f8ba069c1030","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":""},{"key":"bookingId","value":"","disabled":true},{"key":"bookingid","value":""},{"key":"bookingid2","value":""},{"key":"deleted_bookingid","value":""},{"key":"bookingIdforupdate","value":""}]}