API Design · Junior · Question 74 of 75

How can a client fetch several users by ID in one request in a REST API?

Explanation

Batch reads reduce round trips. Large ID lists may need POST /users:batchGet with a body because URLs have length limits.

Further reading

Problem with a question

API Design · Junior · question 74

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