Senior
What would a request URL with filtering parameters look like?
sobes.tech AI
Answer from AI
A request URL with filter parameters usually contains the base resource address and a set of parameters after the question mark ?, where each parameter specifies a filter condition. For example:
https://api.example.com/products?category=electronics&price_min=100&price_max=1000&sort=price_asc
Here:
category=electronics— filter by product categoryprice_min=100andprice_max=1000— filter by price rangesort=price_asc— sort by price in ascending order
Parameters are separated by an ampersand &. This approach is widely used in REST APIs to pass filtering and sorting conditions.