Issue 13815

Rethink how to map parameterized requests to list method

13815
Reporter: trobertson
Type: Bug
Summary: Rethink how to map parameterized requests to list method
Priority: Minor
Status: Open
Created: 2013-09-10 16:51:59.457
Updated: 2015-03-02 15:03:43.286
        
Description: See the @Get list methods on Dataset, Organization, etc, which have a spaghetti of if else statements.  Can this be cleaned up?  If so, make it so...

Worth a bit of research as this will become unmaintainable at some point.  It would be best if we could map to methods using the existence of parameters.  Are we sure we can't?  The following won't work, but something like that might be nice.  Only make changes if it makes things cleaner and doesn't introduce some crazy to understand layer of abstraction...

{code}
@Get
@Path("/?identifierType&identifier")
public List getByIdentifier
{code}
]]>