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.