Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Web, API & dataMiddleCommonTheory

What HTTP method properties matter when designing API tests?

Answer

Check the operation's intended semantics, safety and idempotency, not only its name. Repeated PUT or DELETE requests should have predictable effects, while POST commonly creates or triggers work and may not be idempotent without an explicit key.

Strong answer includes

  • safety and idempotency
  • repeat-request behaviour
  • tests observable side effects

Practical example

Testing a payment API, a tester sends the same POST /payments request twice without an idempotency key and confirms the customer gets charged twice — a real bug. After the team adds an Idempotency-Key header requirement, the tester retests by sending the identical request twice with the same key and verifies only one charge occurs, while a PUT /orders/123/address update is confirmed to produce the same end state no matter how many times it's repeated.

Sources

DOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topics