My question:
Is it Mandatory when I POST some details, the response body should contain id in return?for eg:A contact
Details (like screenshots):
I would like to create a contact, get the contact details using an id, update a contact then delete the same contact. How should I automate it? I am Stuck up inbetween.
How I found the problem:
When I post a contact ,whatever I filled as firstname ,lasname,address is displayed in response body. But I am not able to get the generated id corresponding to the contact. After which each time I have to goto GET the list of contacts to see the newly created contact.Is there any way I can get the Contact id from the response body,So that i can use it in my next GET method
I’ve already tried:to find the path of id that displays in GET all contacts method using the JSON path locater. but it dint help. Is that the correct way? Please help