abp icon indicating copy to clipboard operation
abp copied to clipboard

HideAbpEndpoints also hides endpoints when I use v{version:apiVersion} in route

Open xiaoxiaotank opened this issue 1 year ago • 1 comments

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/myapi/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

xiaoxiaotank avatar Apr 28 '24 05:04 xiaoxiaotank

hi

  • Steps needed to reproduce the problem.

maliming avatar Apr 29 '24 02:04 maliming

Reopen if you still have this problem.

maliming avatar May 16 '24 02:05 maliming

Same issue

MernaMustafa avatar Jul 04 '24 12:07 MernaMustafa