You can use like below;
get/user/{userID}/report/[year/{year1}/week/{week1},year/{year2}/week/{week2}
or
use each path param once but seperate data inside with some seperator char like comma and parse it in your java class to obtain it. This way it will be cleaner and unlimited dynamic number of same params can be passed to.
get/user/{userID}/report/[year/{year1}/week/{week1}
where {year} is 2000,2001,2002
and {week} is 2,5,6,7
EDIT 1: Sample code
So something like:
@RequestMapping(value="/test/{tests}", method=RequestMethod.GET)
@ResponseBody
public String test(@PathVariable String tests)
{
String[] test= tests.split(",");
return "sth";
}
You'd pass in:
http://localhost:8080/test/1,3,4,50,xxx,yyy,ddd