{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/JsonPatch/issues/25","repository_url":"https://api.github.com/repos/aspnet/JsonPatch","labels_url":"https://api.github.com/repos/aspnet/JsonPatch/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/JsonPatch/issues/25/comments","events_url":"https://api.github.com/repos/aspnet/JsonPatch/issues/25/events","html_url":"https://github.com/aspnet/JsonPatch/issues/25","id":157542510,"number":25,"title":"Multiple actions matched","user":{"login":"zygimantas","id":102076,"avatar_url":"https://avatars.githubusercontent.com/u/102076?v=3","gravatar_id":"","url":"https://api.github.com/users/zygimantas","html_url":"https://github.com/zygimantas","followers_url":"https://api.github.com/users/zygimantas/followers","following_url":"https://api.github.com/users/zygimantas/following{/other_user}","gists_url":"https://api.github.com/users/zygimantas/gists{/gist_id}","starred_url":"https://api.github.com/users/zygimantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zygimantas/subscriptions","organizations_url":"https://api.github.com/users/zygimantas/orgs","repos_url":"https://api.github.com/users/zygimantas/repos","events_url":"https://api.github.com/users/zygimantas/events{/privacy}","received_events_url":"https://api.github.com/users/zygimantas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T18:28:41Z","updated_at":"2016-05-30T18:28:41Z","closed_at":null,"body":"Is it possible to have multiple controller actions which has a different signature?\r\n\r\n    [HttpPatch(\"items/{id}\")]\r\n    public IActionResult PatchAsync(string id, [FromBody]JsonPatchDocument<Document1> document1)\r\n    {\r\n    }\r\n\r\n    [HttpPatch(\"items/{id}\")]\r\n    public IActionResult PatchAsync(string id, [FromBody]JsonPatchDocument<Document2> document2)\r\n    {\r\n    }\r\n\r\nI am getting the \"Microsoft.AspNetCore.Mvc.Internal.AmbiguousActionException: Multiple actions matched.\" exception. Should I use a custom constraint in such case or JsonPatch has something built-in for such scenario?\r\n        "}}
{"actor":{"display_login":"zygimantas"}}