I have a PATCH request containing the following request body
Based on status, all the details present under that ID will be deleted.
Only if the status is drafted, all details will be deleted. Response shows true if deleted or else a message saying “Status is not drafted,So can’t delete”. The status is identified with a status ID which we get only using “getDetailsByID” endpoint. Am actually stuck on how to write a test for this case? I want to check the status id and validate that the right Id with draft status has been deleted. But statusID for particular sopDetailsId is retrieved in the getDetailsByID endpoint only if that id is given in the request.