Code: Select all
Feature: Put demo
Background:
* url 'https://restful-booker.herokuapp.com'
Scenario: update booking
Given path 'booking','1'
And header Accept = 'application/json'
And header Content-Type = 'application/json'
And request
"""
{
"firstname" : "James",
"lastname" : "Brown",
"totalprice" : 111,
"depositpaid" : true,
"bookingdates" : {
"checkin" : "2018-01-01",
"checkout" : "2019-01-01"
},
"additionalneeds" : "Breakfast"
}
"""
When method PUT
Then status 200