All jobs / QA / manual tester / API Testing
QA / manual tester interview question · 0–1 years
What do GET, POST, PUT, PATCH and DELETE tell you before you write a single API test?
The strongest answer
What each one promises: GET reads without changing anything, POST creates, PUT replaces, PATCH changes part, DELETE removes — so my first tests check each keeps its promise
Why it works
Exactly — the method is a contract, and a GET that changes data or a DELETE that quietly does nothing is a real defect.
What a good answer covers
- The method is a promise.
- GET reads; POST creates.
- PUT replaces; PATCH updates part.
- Test that each promise holds.
Answers that fall short
- Close, but not the strongest: They are the actions the API supports, so I test that each endpoint does what its documentation says
Documentation is the start; the method itself sets expectations the spec often forgets to repeat. - Weak: They are interchangeable labels; teams pick whichever one they prefer for each endpoint
Clients, caches and proxies all act on the method, so choosing it badly has consequences. - Red flag: I do not care about the method as long as the response comes back as a 200
A 200 on an endpoint that did the wrong thing is the easiest defect in the world to miss.
Who gets asked this
More API Testing questions
- An endpoint returns 400 for one request and 500 for another. What does that difference tell you?
- The UI looks fine; the list API dropped a field the mobile app still needs. Who should have caught it?
- Which request and response headers do you actually look at when testing an API?
- Pay is a POST. What conceptual API check do you insist on?
- Your Postman collection is the only way anyone tests this API, and three people now want to use it. What do…
- Two clients consume one API. Where do you put the cheapest tests?
- You are asked to “test the API” and you will not write a framework in the room. What do you still cover?
- The OpenAPI file is stale. Tests use a different example. What do you do?