I am building REST API using SpringBoot, this REST API accept more than one data from consumer like e.g. empId, empName, empDept. In my current code I am using @RequestParam annotation for accessing the query parameter values from the request. But I see we can also use the @PathVariable to get the data from placeholder of URI.
Wanted to know what is the best practice to get the multiple input request using @PathVariable @RequestParam OR something else?