Path Parameters Vs Query Parameters, The @PathVariable annotation is used for data passed in the URI (e.