All subjects

API Testing · Interview subject

API Testing Interview Questions

HTTP methods, status codes, auth, contracts and negative testing.

52 questions

Quick interview answer

PUT replaces the whole resource and is idempotent; PATCH applies a partial update. Both should be idempotent-safe, but PATCH bodies are diffs.

Detailed explanation

Test PUT by omitting a field and verifying it is reset/removed; test PATCH by verifying untouched fields are preserved. Also test repeated calls: two identical PUTs must leave the same state.

Real-world example

A PATCH bug where updating a phone number silently wiped the billing address was caught by asserting untouched fields.

Interview tip

Always mention the idempotency check — most candidates only recite definitions.

Next subjectPostman