I want to display info about Subdepartments using multiple id's provided.This is what I have. Now, what would an example of url with multiple parameters? I tried comma, slash but didnt work
@Path( "{id: .*}" )
@GET
public Collection< SubDepartmentDTO > findMultiple ( @PathParam ( "id" ) List<Integer> idList ) {
Map< Integer, SubDepartmentDTO > subList = new LinkedHashMap<>();
int index = 0;
while( index < idList.size() ){
subList.put( idList.get(index), SubDepartmentDAO.findOne ( idList.get(index) ) );
index++;
}
return subList.values();
}