Commit 97e77b0e authored by Rakesh Mareddy's avatar Rakesh Mareddy Committed by Administrator

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

parent 58d05883
{"id":"9075f1c0-a173-468a-8671-b4c5758f837b","version":"1.0","type":"Composite","block_type":"composite","blocks":[{"id":"459fc17e-8d53-4922-a1cd-3ce76a0ea645","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 \"username\" : \"admin\",\n \"password\" : \"password123\"\n}","url":"https://restful-booker.herokuapp.com/auth"},"output":"response1"},{"id":"b9dc5647-3847-4649-bc98-4a7a2aa2521a","type":"Foundation","block_type":"validation","version":"1.0","rules":[{"actual":"response1.code","expected":"200","name":"validate","type":"Integer","message":"In correct response code returned","relation":"equals to"}],"output":"validate1"},{"id":"a3b366f5-826d-46f4-9ab4-f4e32625e9ac","type":"Foundation","block_type":"validation","version":"1.0","rules":[{"actual":"response1.body.token","expected":"","name":"validate","type":"Empty","message":"Empty Token has received ","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