All jobs / Backend developer / API Development
Backend developer interview question · 5+ years
Your OpenAPI document lists every path and method and nothing else. A partner team says integrating still took them a week.
What is missing?
The strongest answer
What they actually integrate against: request and response schemas, the error bodies and status codes, the auth scheme, pagination and examples — plus a CI check that the document still matches the running code
Why it works
Right — and the CI check is the half most teams skip; a spec nobody verifies becomes fiction within a quarter.
What a good answer covers
- The spec is the contract.
- Schemas, errors, auth, pagination.
- Ship examples, not only paths.
- Check the spec against the code in CI.
Answers that fall short
- Close, but not the strongest: Response schemas and examples, so they can see the shape of the data they will get back
Those are the biggest two, but the week usually goes on auth and error handling, which the document still does not describe. - Weak: A published try-it-out page — once they can call the endpoints from a browser, the rest is self-explanatory
A try-it page over an empty spec has the same gaps; it makes the drift prettier, not smaller. - Red flag: Integration guides belong in the wiki; the spec only has to list the endpoints we expose
Two sources of truth is how a partner ends up coding against last year’s behaviour.
Who gets asked this
More API Development questions
- The interviewer asks: “You're building an internal platform API other teams will live on. What changes?”…
- The interviewer asks: “When do you use GET versus POST?” Strongest answer?
- The interviewer asks: “What's the difference between HTTP 401 and 403?” Strongest answer?
- The interviewer asks: “When is 404 the right status, and when is 400?” Strongest answer?
- The interviewer sketches /getOrder and /doDeleteUser. Strongest design?
- The interviewer asks: “Which HTTP methods are safe to retry, and why?” Strongest answer?
- The interviewer asks: “How do you send and read JSON on an HTTP API?” Strongest answer?
- The interviewer asks: “What status do you return when POST creates a resource?” Strongest answer?