abp
abp copied to clipboard
HideAbpEndpoints also hides endpoints when I use v{version:apiVersion} in route
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
When I use api versioning, the apis can't show in swagger ui,like this:
[ApiController]
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/[controller]")]
public class MyController : ControllerBase {}
I guess it is beacause AbpSwashbuckleDocumentFilter.RemoveRouteParameterConstraints, it transform api/v{version:apiVersion}/my to api/v{version}/my, rather than api/v1/my、api/v2/my and etc.
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.1
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
Windows (Default)
Other information
https://github.com/abpframework/abp/issues/15712
hi
- Steps needed to reproduce the problem.
Reopen if you still have this problem.
Same issue