Complete the code to add a query parameter for filtering users by age.
GET /users?age=[1]The query parameter 'age=30' filters users who are 30 years old.
Complete the code to limit the number of results returned by the API.
GET /products?[1]=10
The 'limit' parameter restricts the number of results returned to 10.
Fix the error in the query parameter to sort users by name ascending.
GET /users?sort=[1]Using 'name' sorts users by name in ascending order. A leading '-' would sort descending.
Fill both blanks to filter products by category and sort by price descending.
GET /products?[1]=electronics&[2]=-price
'category=electronics' filters products in the electronics category, and 'sort=-price' sorts them by price descending.
Fill all three blanks to create a query that filters users by active status, limits results to 5, and sorts by signup date ascending.
GET /users?[1]=true&[2]=5&[3]=signup_date
'active=true' filters active users, 'limit=5' restricts results to 5 users, and 'sort=signup_date' sorts by signup date ascending.