Question: what is the difference between path parameter and query parameter?
Answer: URI parameter (Path Param) is basically used to identify a specific resource or resources whereas Query Parameter is used to sort/filter those resources. ... Take another example where you want to filter the employee on the basis of designation, and in that case, you will be using Query Parameter.