- ABP Framework version: v4.4
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): / no
- Exception message and stack trace:
ERR] An unhandled exception has occurred while executing the request.
Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Conflicting method/path combination "GET api/app/nordigens" for actions - Life.Controllers.Nordigens.NordigenController.GetListAsync (Life.HttpApi),Life.Controllers.Nordigens.NordigenController.BanksAsync (Life.HttpApi). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession ...
Ive followed the same process to add a api endpoint from before and its not working. can you point me at the document to help me with this please?
- Steps to reproduce the issue:"
8 Answer(s)
-
0
Conflicting method/path combination "GET api/app/nordigens" for actions - Life.Controllers.Nordigens.NordigenController.GetListAsync (Life.HttpApi),Life.Controllers.Nordigens.NordigenController.BanksAsync (Life.HttpApi). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround
hi
Can you share the code of
NordigenController
? -
0
whats your github ill share the project
-
0
https://github.com/maliming
-
0
added you
-
0
Can you try this?
[HttpGet] [Route("banks")] public virtual Task<string> BanksAsync() { return _nordigensAppService.BanksAsync(); }
-
0
in which file should this be?
-
0
Found it, all sorted now. thanks
-
0
https://github.com/jhallam3/Life/blob/c96807bfefd4d112be5589b454d595cf46b6ee58/aspnet-core/src/Life.HttpApi/Controllers/Nordigens/NordigenController.cs#L31