According to the RESTful API best practice research I've been doing, a URI should uniquely identify a resource or list of resources. Because of this, I would like to create endpoints that use arbitrary path key/value pairs like:
GET /customers/status/enrolled
instead of like this:
GET /customers?status=enrolled
Similarly, I would like to setup an unlimited number of identity partitions like this:
GET /customers/{attribute1Name}/{attribute1Value}/{attribute2Name}/{attribute2Value
Is it possible with SpringMVC to create a RequestMapping with an arbitrary set of path key/value pairs and with an unlimited number of them?