I'd say /resources/foo,bar,baz
(separator may vary depending on IDs' nature and your aesthetic preferences, "foo+bar+baz
", "foo:bar:baz
", etc.). Looks a bit "semantically" neater than foo/bar/baz
("baz of bar of foo"?)
If resource IDs are numeric, maybe, even with a range shortcut like /resources/1,3,5-9,12
Or, if you need to query not exactly on resources with specifical IDs, but on group of resources having specific properties, maybe something like /resources/state=complete/size>1GiB/!active/
...