I am following the tutorial and would like for the GET to filter on “id” and “name”.
Is the below code correct? And what should the url be to make that request?
http://localhost:8080/restdemo/services/customers?id=0&Name=”xx”
@GET
@Path(“{id}”)
public Customer getCustomer(@PathParam(“id”) int cId,
@PathParam(“name”) String cName) {
return customerMap.get(cId);
}