Lesson 11 Put and Patch Method

Опубликовано: 16 Июль 2026
на канале: optumus
27
1

/*
Given
https://jsonplaceholder.typicode.com/...

And
{
"userId":21,
"title":"Wash the dishes",
"completed":false

}
When
I send PUT request to the url

Then
Status code is 200

And
Response body like
{
userId:21,
"title":"Wash the dishes",
"completed":false
}

*/

/*
Given
https://jsonplaceholder.typicode.com/...

And
{
"title":"Wash the dishes"
}

When
User send Put request

Then
Status code is 200

and
Response body should be like

{
"userId": 10,
"id": 198,
"title": "quis eius est sint explicabo",
"completed": true
}

*/