SpinTheMic
Pro

Interview practice question

Designing a search endpoint

System Design · APIs and Communication · Beginner

Design a REST endpoint for searching products with filters for category, price range and sorting.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • GET /products with query parameters.
  • category, min_price, max_price, sort, q.
  • Pagination params.
  • Validate and whitelist sort fields.
  • Return total/next cursor.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics