I understand the main difference between the two,
@RequestParam is used for query parameters, and can have few more attributes,
while @PathVariable has one attribute and is for a path parameter.
but I couldn't find any info about when there's a preference to use either query param or path param.
I assume that in some cases in which I want a default value or some other attribute that @RequestParam has, It's probably better to use it. but is there any big difference other than that? any time that @PathVariable is preferred?