API Design · Middle · Question 17 of 75

How should sort parameters usually look?

Explanation

Allow only indexed fields, and validate input to avoid injection into queries.

Further reading

Problem with a question

API Design · Middle · question 17

Test yourself

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

Take this quiz