{"action":"created","issue":{"url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/460","repository_url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore","labels_url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/460/comments","events_url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/460/events","html_url":"https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/460","id":390893099,"node_id":"MDU6SXNzdWUzOTA4OTMwOTk=","number":460,"title":"AmbiguousActionException with 2.1.500 in RequestMiddleware","user":{"login":"Dillie-O","id":991466,"node_id":"MDQ6VXNlcjk5MTQ2Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/991466?v=4","gravatar_id":"","url":"https://api.github.com/users/Dillie-O","html_url":"https://github.com/Dillie-O","followers_url":"https://api.github.com/users/Dillie-O/followers","following_url":"https://api.github.com/users/Dillie-O/following{/other_user}","gists_url":"https://api.github.com/users/Dillie-O/gists{/gist_id}","starred_url":"https://api.github.com/users/Dillie-O/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dillie-O/subscriptions","organizations_url":"https://api.github.com/users/Dillie-O/orgs","repos_url":"https://api.github.com/users/Dillie-O/repos","events_url":"https://api.github.com/users/Dillie-O/events{/privacy}","received_events_url":"https://api.github.com/users/Dillie-O/received_events","type":"User","site_admin":false},"labels":[{"id":687132912,"node_id":"MDU6TGFiZWw2ODcxMzI5MTI=","url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/labels/question","name":"question","color":"f9d0c4","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-13T22:44:30Z","updated_at":"2018-12-14T00:16:42Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nI recently scaffold up a fresh .Net Core 2.1.500 WebAPI project and then followed the basic installation directions on the site. I'm using the default \"ValuesController\" that comes with the project. After going through the required steps, I'm seeing the following error when I attempt to call my `Values` GetAll endpoint (as well as similar ones for `Values/5`) I get the following error\r\n\r\n```\r\nMicrosoft.AspNetCore.Mvc.Internal.AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied:\r\n\r\nivp_webapi.Controllers.ValuesController.GetAll (ivp-webapi)\r\nivp_webapi.Controllers.ValuesController.GetAsync (ivp-webapi)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ActionSelector.SelectBestCandidate(RouteContext context, IReadOnlyList`1 candidates)\r\n   at Microsoft.AspNetCore.Mvc.Internal.MvcAttributeRouteHandler.RouteAsync(RouteContext context)\r\n   at Microsoft.AspNetCore.Routing.Tree.TreeRouter.RouteAsync(RouteContext context)\r\n   at Microsoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context)\r\n   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)\r\n   at JsonApiDotNetCore.Middleware.RequestMiddleware.Invoke(HttpContext context, IJsonApiContext jsonApiContext) in C:\\projects\\jsonapidotnetcore\\src\\JsonApiDotNetCore\\Middleware\\RequestMiddleware.cs:line 28\r\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)\r\n```\r\n\r\nI've tried a couple of things such as annotating the route differently but things don't seem to work. Is there a simple update I need to make? I notice that the sample code uses .Net 2.1.0 and I've even tried to restructure my controller/startup to use similar code to no avail.\r\n\r\nAny idea on how to get the middleware to resolve properly (or ignore GetAsync?)\r\n\r\n## Environment\r\n\r\n- JsonApiDotNetCore Version: 3.0.0\r\n- Other Relevant Package Versions: .Net Core 2.1.500"},"comment":{"url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/comments/447168483","html_url":"https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/460#issuecomment-447168483","issue_url":"https://api.github.com/repos/json-api-dotnet/JsonApiDotNetCore/issues/460","id":447168483,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE2ODQ4Mw==","user":{"login":"jaredcnance","id":13851721,"node_id":"MDQ6VXNlcjEzODUxNzIx","avatar_url":"https://avatars2.githubusercontent.com/u/13851721?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredcnance","html_url":"https://github.com/jaredcnance","followers_url":"https://api.github.com/users/jaredcnance/followers","following_url":"https://api.github.com/users/jaredcnance/following{/other_user}","gists_url":"https://api.github.com/users/jaredcnance/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredcnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredcnance/subscriptions","organizations_url":"https://api.github.com/users/jaredcnance/orgs","repos_url":"https://api.github.com/users/jaredcnance/repos","events_url":"https://api.github.com/users/jaredcnance/events{/privacy}","received_events_url":"https://api.github.com/users/jaredcnance/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T00:16:42Z","updated_at":"2018-12-14T00:16:42Z","author_association":"MEMBER","body":"So, I'm not sure what you're trying to do. If you want this to be a JSON:API controller, try removing all of the methods (`JsonApiController` defines the default ones for you). You can also override any of the base methods if you need to add/change some behavior. You can also inherit from `BaseJsonApiController` instead.\r\n\r\nTake a look at these two classes:\r\n\r\n- [JsonApiController](https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/c633c71aab7fcef023bb20aba5d41c420ad8a3cb/src/JsonApiDotNetCore/Controllers/JsonApiController.cs#L39)\r\n- [BaseJsonApiController](https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/c633c71aab7fcef023bb20aba5d41c420ad8a3cb/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs#L39)\r\n"}}
{"actor":{"display_login":"jaredcnance"}}