-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ApiVersioning is not working #900
Comments
I guess your code and your error are not linked.
|
I opened a new project and added a new brandcontroller under the Host/Catalog/v2. this code |
API Versioning will change with V2 Release. |
I created a new brand controller and put it under the v2 folder.
I wrote the following code and when swagger runs I get an error
Am I making a mistake?
[ApiVersion("2.0")]
public class BrandsController : VersionedApiController
{
[MapToApiVersion("2.0")]
[HttpPost("search")]
[MustHavePermission(FSHAction.Search, FSHResource.Brands)]
[OpenApiOperation("Search brands using available filters.", "")]
public Task<PaginationResponse> SearchAsync(SearchBrandsRequest request)
{
return Mediator.Send(request);
}
}
result error : The method 'get' on path '/api/tenants' is registered multiple times.
The text was updated successfully, but these errors were encountered: