Overview
Day 73 focuses on advanced Express routing concepts. Today's goal: understand route parameters, query parameters, and build a small CRUD‑style API without using a database. Focused on how to extract dynamic values from the URL and how to manage in‑memory data.
What I Learned Today
- How to use route parameters (req.params)
- How to use query parameters (req.query)
- Creating a mini CRUD API using an array
- Difference between params, query, and body
- Structuring routes in a clean way
Key Concepts
Route Parameters
- Used for dynamic routes
- Example:
/users/123
- Access with
req.params.id
Query Parameters
- Used for filtering/search
- Example:
/search?name=john
- Access with
req.query.name
Request Body