Convert QueryParam to PathParam