Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
According to the controller definition provided, the Get request cannot pass such a complex URL, and the URL itself has a length limit. Perhaps this interface should use [HttpPost]?
|
[HttpGet] |
|
[Route("is-granted")] |
|
public virtual Task<ListResultDto<IsGrantedResponse>> IsGrantedAsync(List<IsGrantedRequest> input) |
|
{ |
|
return PermissionIntegrationService.IsGrantedAsync(input); |
|
} |
Describe the solution you'd like
[RemoteService(Name = PermissionManagementRemoteServiceConsts.RemoteServiceName)]
[Area(PermissionManagementRemoteServiceConsts.ModuleName)]
[ControllerName("PermissionIntegration")]
[Route("integration-api/permission-management/permissions")]
public class PermissionIntegrationController: AbpControllerBase, IPermissionIntegrationService
{
protected IPermissionIntegrationService PermissionIntegrationService { get; }
public PermissionIntegrationController(IPermissionIntegrationService permissionIntegrationService)
{
PermissionIntegrationService = permissionIntegrationService;
}
[HttpPost] // Use HttpPost
[Route("is-granted")]
public virtual Task<ListResultDto<IsGrantedResponse>> IsGrantedAsync(List<IsGrantedRequest> input)
{
return PermissionIntegrationService.IsGrantedAsync(input);
}
}
Additional context
No response
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
According to the controller definition provided, the Get request cannot pass such a complex URL, and the URL itself has a length limit. Perhaps this interface should use
[HttpPost]?abp/modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi/Volo/Abp/PermissionManagement/Integration/PermissionIntegrationController.cs
Lines 23 to 28 in 0cd6b7b
Describe the solution you'd like
Additional context
No response