Cascadiq

Product Search API

project · Level 2 · 45 min

Description

You're building a product search API for an e-commerce platform. Users need to search for products by name, filter by category and price range, and sort results.

Requirements

  • Accept search queries with optional filters (category, minPrice, maxPrice)
  • Support sorting by price and relevance
  • Return paginated results
  • Handle edge cases and invalid input

Constraints

Use TypeScript/JavaScript. No database required—use in-memory data. Return JSON.

Deliverables

Code for your API endpoint(s) and a short note on how you'd scale this.

Tags

APIBackendSearch