{"action":"created","issue":{"url":"https://api.github.com/repos/tomkuijsten/restup/issues/57","repository_url":"https://api.github.com/repos/tomkuijsten/restup","labels_url":"https://api.github.com/repos/tomkuijsten/restup/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/tomkuijsten/restup/issues/57/comments","events_url":"https://api.github.com/repos/tomkuijsten/restup/issues/57/events","html_url":"https://github.com/tomkuijsten/restup/issues/57","id":148680364,"number":57,"title":"Controller can't handle more than 2 GET methods","user":{"login":"EddyRubens","id":12241354,"avatar_url":"https://avatars.githubusercontent.com/u/12241354?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyRubens","html_url":"https://github.com/EddyRubens","followers_url":"https://api.github.com/users/EddyRubens/followers","following_url":"https://api.github.com/users/EddyRubens/following{/other_user}","gists_url":"https://api.github.com/users/EddyRubens/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyRubens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyRubens/subscriptions","organizations_url":"https://api.github.com/users/EddyRubens/orgs","repos_url":"https://api.github.com/users/EddyRubens/repos","events_url":"https://api.github.com/users/EddyRubens/events{/privacy}","received_events_url":"https://api.github.com/users/EddyRubens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T14:47:22Z","updated_at":"2016-04-15T15:52:04Z","closed_at":null,"body":"I have a Controller that has 3 GET methods. Each of those methods has a different number of parameters. Here are the UriFormat definitions of the methods:\r\n\r\n[UriFormat(\"/api/collections/{collectionName}/artists/{artistName}\")]\r\n[UriFormat(\"/api/collections/{collectionName}\")]\r\n[UriFormat(\"/api/collections\")]\r\n\r\nThe first method never gets called. Is this 'by design'? "},"comment":{"url":"https://api.github.com/repos/tomkuijsten/restup/issues/comments/210517380","html_url":"https://github.com/tomkuijsten/restup/issues/57#issuecomment-210517380","issue_url":"https://api.github.com/repos/tomkuijsten/restup/issues/57","id":210517380,"user":{"login":"Jark","id":754147,"avatar_url":"https://avatars.githubusercontent.com/u/754147?v=3","gravatar_id":"","url":"https://api.github.com/users/Jark","html_url":"https://github.com/Jark","followers_url":"https://api.github.com/users/Jark/followers","following_url":"https://api.github.com/users/Jark/following{/other_user}","gists_url":"https://api.github.com/users/Jark/gists{/gist_id}","starred_url":"https://api.github.com/users/Jark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jark/subscriptions","organizations_url":"https://api.github.com/users/Jark/orgs","repos_url":"https://api.github.com/users/Jark/repos","events_url":"https://api.github.com/users/Jark/events{/privacy}","received_events_url":"https://api.github.com/users/Jark/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T15:52:04Z","updated_at":"2016-04-15T15:52:04Z","body":"I think what @EddyRubens is highlighting is that given the following code:\r\n\r\n```\r\npublic class SomeController\r\n{\r\n    [UriFormat(\"/collections/{collectionName}/artists/{artistName}\")]\r\n    public IGetResponse Get(string collectionName, string artistName)\r\n    {\r\n        return new GetResponse(GetResponse.ResponseStatus.OK);\r\n    }\r\n\r\n    [UriFormat(\"/collections/{collectionName}\")]\r\n    public IGetResponse Get(string collectionName)\r\n    {\r\n        return new GetResponse(GetResponse.ResponseStatus.OK);\r\n    }\r\n\r\n    [UriFormat(\"/collections\")]\r\n    public IGetResponse Get()\r\n    {\r\n        return new GetResponse(GetResponse.ResponseStatus.OK);\r\n    }            \r\n}\r\n```\r\n\r\nHe would expect all three calls to be mapped correctly based on how specific your url is.\r\n\r\nImho it would be nice to support this, but if we explicitly don't want to support this than we should document this somewhere and add a unit test to prove this doesn't work."}}