Commit 82a9b681 authored by Rakesh Mareddy's avatar Rakesh Mareddy Committed by Administrator

Appvance Commit [skip ci] - [adding ApiTesting/POST_Create_Booking.api]

parent 97e77b0e
{"id":"8ff1ab76-cad8-450c-a1e7-f6d1ab1fdcdc","version":"1.0","type":"Composite","block_type":"composite","blocks":[{"id":"65d96050-f876-44b6-9e09-fa81f11604f7","type":"Foundation","block_type":"rest_request","version":"1.0","inputs":{"headers":{"Content-Type":"application/json","Accept":"application/json"},"url_parametrization":{},"method":"POST","body_parametrization":{},"body_type":"RAW","body_form":[],"params":{},"body":"{\n \"firstname\" : \"Nisum\",\n \"lastname\" : \"Hackathon\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2023-08-06\",\n \"checkout\" : \"2023-05-08\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}","url":"https://restful-booker.herokuapp.com/booking"},"output":"response1"},{"id":"202443c9-895d-4c95-95c3-948ecb8d286a","type":"Foundation","block_type":"validation","version":"1.0","rules":[{"actual":"response1.code","expected":"200","name":"validate","type":"Integer","message":"In correct error response code returned","relation":"equals to"}],"output":"validate1"},{"id":"73a8cdbd-60de-4d8f-ab8e-24db1f056353","type":"Foundation","block_type":"rest_request","version":"1.0","inputs":{"headers":{"Accept":"application/json"},"url_parametrization":{"bookingId":"response1.body.bookingid"},"method":"GET","body_parametrization":{},"body_type":"NONE","body_form":[],"params":{},"body":"","url":"https://restful-booker.herokuapp.com/booking/{bookingId}"},"output":"response2"},{"id":"cc3efbcc-2ac1-465a-9d43-0fdd423142f3","type":"Foundation","block_type":"validation","version":"1.0","rules":[{"actual":"response1.code","expected":"200","name":"validate","type":"Integer","message":"","relation":"equals to"}],"output":"validate3"},{"id":"880e715d-a73d-4591-9769-0a9be915e22e","type":"Foundation","block_type":"validation","version":"1.0","rules":[{"actual":"response2.body","expected":"200","name":"validate","type":"Empty","message":"Empty Reponses 2 has returned which shouldn't be!","relation":"is not"}],"output":"validate2"}]}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment