API Design · Junior · Question 61 of 75

Should an API expose internal database IDs and table structure directly?

Explanation

Mirroring the schema couples clients to internal details. Response models give you freedom to refactor.

Further reading

Problem with a question

API Design · Junior · question 61

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz